Re: [dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common header endianness

2020-11-08 Thread Bing Zhao
gt; >> From: Ferruh Yigit > >> Sent: Friday, November 6, 2020 7:20 PM > >> To: Bing Zhao ; Slava Ovsiienko > >> ; Matan Azrad > >> Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > >> ; sta...@dpdk.org > >> Subject: Re: [dpdk-dev] [PATCH] net/m

Re: [dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common header endianness

2020-11-06 Thread Ferruh Yigit
Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common header endianness External email: Use caution opening links or attachments On 11/3/2020 5:41 AM, Bing Zhao wrote: The input header of a RTE flow item is with network byte order. In the host with little endian, the bit field order are

Re: [dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common header endianness

2020-11-06 Thread Bing Zhao
t: Re: [dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common > header endianness > > External email: Use caution opening links or attachments > > > On 11/3/2020 5:41 AM, Bing Zhao wrote: > > The input header of a RTE flow item is with network byte order. In > the > >

Re: [dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common header endianness

2020-11-06 Thread Ferruh Yigit
On 11/3/2020 5:41 AM, Bing Zhao wrote: The input header of a RTE flow item is with network byte order. In the host with little endian, the bit field order are the same as the byte order. When checking the an eCPRI message type, the wrong field will be selected. Right now, since the whole u32 is b

Re: [dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common header endianness

2020-11-05 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Bing Zhao > Sent: Tuesday, November 3, 2020 7:42 AM > To: Slava Ovsiienko ; Matan Azrad > > Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > ; sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix the eCPRI common header endianness > > The input header of a RTE

[dpdk-dev] [PATCH] net/mlx5: fix the eCPRI common header endianness

2020-11-02 Thread Bing Zhao
The input header of a RTE flow item is with network byte order. In the host with little endian, the bit field order are the same as the byte order. When checking the an eCPRI message type, the wrong field will be selected. Right now, since the whole u32 is being checked and for all types, the follo