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

Ferruh Yigit ferruh.yigit at intel.com
Wed Oct 13 13:29:23 CEST 2021


On 10/13/2021 8:52 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.
> 
> 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 at monjalon.net>
> Reviewed-by: Andrew Rybchenko<andrew.rybchenko at oktetlabs.ru>
> ---
> v2: use RTE_BIT32 in enums
> v3: rebase on main
> v4: keep enums untouched
> v5: convert new flag ETH_RSS_L4_CHKSUM

Hi Thomas,

Thanks for the update, but a recent commit [1] in ethdev is added a few
more '<<', can you please rebase on the latest next-net.

[1]
Commit c4f4884b654b ("ethdev: negotiate delivery of packet metadata from HW to PMD")



More information about the dev mailing list