[dpdk-dev] [PATCH v3] ethdev: replace bit shifts with macros
Thomas Monjalon
thomas at monjalon.net
Thu Oct 7 16:11:35 CEST 2021
07/10/2021 15:26, 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.
According to this report:
http://mails.dpdk.org/archives/test-report/2021-October/224792.html
Ubuntu 18.04 does not accept this change:
rte_tm.h:181:2: error: enumerator value for ‘RTE_TM_UPDATE_NODE_ADD_DELETE’
is not an integer constant
RTE_TM_UPDATE_NODE_ADD_DELETE = RTE_BIT32(2),
Anybody understands why?
More information about the dev
mailing list