Re: [dpdk-dev] [PATCH v2 2/5] net/hns3: use unsigned types for bit operator

2020-11-09 Thread oulijun
在 2020/11/7 0:38, Ferruh Yigit 写道: On 11/6/2020 3:51 AM, Lijun Ou wrote: From: Hongbo Zheng According to bit operator reliability style, variables in the right expression participating int bit operation cannot be of unsigned type. Assuming this is talking about BIT() ("#define BIT(nr) (1U

Re: [dpdk-dev] [PATCH v2 2/5] net/hns3: use unsigned types for bit operator

2020-11-09 Thread oulijun
在 2020/11/7 0:38, Ferruh Yigit 写道: On 11/6/2020 3:51 AM, Lijun Ou wrote: From: Hongbo Zheng According to bit operator reliability style, variables in the right expression participating int bit operation cannot be of unsigned type. Assuming this is talking about BIT() ("#define BIT(nr) (1U

Re: [dpdk-dev] [PATCH v2 2/5] net/hns3: use unsigned types for bit operator

2020-11-06 Thread Ferruh Yigit
On 11/6/2020 3:51 AM, Lijun Ou wrote: From: Hongbo Zheng According to bit operator reliability style, variables in the right expression participating int bit operation cannot be of unsigned type. Assuming this is talking about BIT() ("#define BIT(nr) (1UL << (nr))"), is this description says,

[dpdk-dev] [PATCH v2 2/5] net/hns3: use unsigned types for bit operator

2020-11-05 Thread Lijun Ou
From: Hongbo Zheng According to bit operator reliability style, variables in the right expression participating int bit operation cannot be of unsigned type. Signed-off-by: Hongbo Zheng Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_ethdev_vf.c | 2 +- drivers/net/hns3/hns3_rxtx_vec_n