On 10/7/2021 4:48 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.

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 <tho...@monjalon.net>
Reviewed-by: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>
---
v2: use RTE_BIT32 in enums
v3: rebase on main
v4: keep enums untouched
---
  lib/ethdev/rte_ethdev.c |  16 ++---
  lib/ethdev/rte_ethdev.h | 129 ++++++++++++++++++++--------------------
  lib/ethdev/rte_flow.c   |   4 +-
  lib/ethdev/rte_flow.h   |   6 +-
  4 files changed, 78 insertions(+), 77 deletions(-)


Is 'ETH_RSS_L4_CHKSUM' left unchanged intentionally?

#define ETH_RSS_L4_CHKSUM          (1ULL << 35)

Reply via email to