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

Ferruh Yigit ferruh.yigit at intel.com
Wed Oct 20 19:48:47 CEST 2021


On 10/20/2021 3:55 PM, Ferruh Yigit wrote:
> From: Thomas Monjalon <thomas at monjalon.net>
> 
> 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>

Applied to dpdk-next-net/main, thanks.



More information about the dev mailing list