Re: [dpdk-dev] [PATCH 17/49] net/ice/base: use macro instead of magic 8

2019-06-05 Thread Maxime Coquelin
On 6/4/19 7:42 AM, Leyi Rong wrote: Replace the use of the magic number 8 by BITS_PER_BYTE when calculating the number of bits from the number of bytes. Signed-off-by: Bruce Allan Signed-off-by: Paul M Stillwell Jr Signed-off-by: Leyi Rong --- drivers/net/ice/base/ice_flex_pipe.c | 4 +-

[dpdk-dev] [PATCH 17/49] net/ice/base: use macro instead of magic 8

2019-06-03 Thread Leyi Rong
Replace the use of the magic number 8 by BITS_PER_BYTE when calculating the number of bits from the number of bytes. Signed-off-by: Bruce Allan Signed-off-by: Paul M Stillwell Jr Signed-off-by: Leyi Rong --- drivers/net/ice/base/ice_flex_pipe.c | 4 +- drivers/net/ice/base/ice_flow.c | 7