Re: [dpdk-dev] [PATCH] net/mlx5: fix bit field compiling error

2020-11-01 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Ferruh Yigit > Sent: Thursday, October 29, 2020 4:28 PM > To: Raslan Darawsheh ; Bing Zhao > ; viachesl...@mellanox.com; ma...@mellanox.com > Cc: dev@dpdk.org; Ori Kam ; Andrey Vesnovaty > > Subject: Re: [dpdk-dev] [PATCH]

Re: [dpdk-dev] [PATCH] net/mlx5: fix bit field compiling error

2020-10-29 Thread Ferruh Yigit
On 10/26/2020 6:07 PM, Raslan Darawsheh wrote: Hi, -Original Message- From: Bing Zhao Sent: Monday, October 26, 2020 7:25 PM To: viachesl...@mellanox.com; ma...@mellanox.com Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh ; Andrey Vesnovaty Subject: [PATCH] net/mlx5: fix bit field compi

Re: [dpdk-dev] [PATCH] net/mlx5: fix bit field compiling error

2020-10-26 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Bing Zhao > Sent: Monday, October 26, 2020 7:25 PM > To: viachesl...@mellanox.com; ma...@mellanox.com > Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > ; Andrey Vesnovaty > Subject: [PATCH] net/mlx5: fix bit field compiling error > > Some old compilers a

[dpdk-dev] [PATCH] net/mlx5: fix bit field compiling error

2020-10-26 Thread Bing Zhao
Some old compilers and old specification will not support bit field with other types except integer or unsigned integer. Since the next and previous items are 64b and/or 32b aligned, bit field with "unsigned char" type will not save any space and the compiler will complain. Changing it to "unsigned