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

2021-10-07 Thread Ferruh Yigit
On 9/23/2021 10:39 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. The API of rte_mtr and rte_tm is using enums

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

2021-10-07 Thread Andrew Rybchenko
On 9/23/21 12:39 PM, 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. > > The API of rte_mtr and rte_tm is usi

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

2021-10-05 Thread Thomas Monjalon
23/09/2021 11:39, 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. > > The API of rte_mtr and rte_tm is using enums

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

2021-09-23 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. The API of rte_mtr and rte_tm is using enums for 64-bit variables. As they are enums, RTE_BI