Re: [dpdk-dev] [PATCH] ethdev: replace bit shifts with macros

2021-09-16 Thread Andrew Rybchenko
On 9/16/21 11:55 AM, Thomas Monjalon wrote: > 16/09/2021 08:52, Andrew Rybchenko: >> On 9/16/21 12:04 AM, Thomas Monjalon wrote: >>> The macros RTE_BIT32 and RTE_BIT64 are used to replace bit shifts. >>> The macro UINT64C is also used to replace remaining occurrences of ULL. >>> >>> Only bit shifts

Re: [dpdk-dev] [PATCH] ethdev: replace bit shifts with macros

2021-09-16 Thread Thomas Monjalon
16/09/2021 08:52, Andrew Rybchenko: > On 9/16/21 12:04 AM, Thomas Monjalon wrote: > > The macros RTE_BIT32 and RTE_BIT64 are used to replace bit shifts. > > The macro UINT64C is also used to replace remaining occurrences of ULL. > > > > Only bit shifts of ETH_RSS_LEVEL_* are kept for aesthetic rea

Re: [dpdk-dev] [PATCH] ethdev: replace bit shifts with macros

2021-09-15 Thread Andrew Rybchenko
On 9/16/21 12:04 AM, Thomas Monjalon wrote: > The macros RTE_BIT32 and RTE_BIT64 are used to replace bit shifts. > The macro UINT64C is also used to replace remaining occurrences of ULL. > > Only bit shifts of ETH_RSS_LEVEL_* are kept for aesthetic reason. > > Signed-off-by: Thomas Monjalon Goo

[dpdk-dev] [PATCH] ethdev: replace bit shifts with macros

2021-09-15 Thread Thomas Monjalon
The macros RTE_BIT32 and RTE_BIT64 are used to replace bit shifts. The macro UINT64C is also used to replace remaining occurrences of ULL. Only bit shifts of ETH_RSS_LEVEL_* are kept for aesthetic reason. Signed-off-by: Thomas Monjalon --- lib/ethdev/rte_ethdev.c | 16 ++--- lib/ethdev/rte_eth