[dpdk-dev] [PATCH v2] ethdev: replace bit shifts with macros
Thomas Monjalon
thomas at monjalon.net
Tue Oct 5 21:18:47 CEST 2021
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 for 64-bit variables.
> As they are enums, RTE_BIT32 is used.
> The corresponding struct members should be converted to 32-bit.
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---
> v2: use RTE_BIT32 in enums
Ping for review.
Earlier it is merged, more patches will adopt the same syntax for their bits.
More information about the dev
mailing list