ethdev: replace bit shifts with macros
authorThomas Monjalon <thomas@monjalon.net>
Wed, 20 Oct 2021 14:55:17 +0000 (15:55 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Oct 2021 17:34:24 +0000 (19:34 +0200)
commite1823e084255869680322e515b9dcb1c18bcb798
tree5b7d759fde55f3a2e01433f991ad0010bb76af96
parentfebc855b358e3579f0eb44c76c329b623f87a376
ethdev: replace bit shifts with macros

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.

The 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, unsigned bit cannot be used.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
lib/ethdev/rte_ethdev.c
lib/ethdev/rte_ethdev.h
lib/ethdev/rte_flow.c
lib/ethdev/rte_flow.h