[dpdk-dev] [PATCH 04/13] net/ionic: add an array-size macro

Andrew Boyer aboyer at pensando.io
Wed Jan 27 18:40:06 CET 2021



> On Jan 27, 2021, at 12:22 PM, Ferruh Yigit <ferruh.yigit at intel.com> wrote:
> 
> On 1/18/2021 8:34 PM, Andrew Boyer wrote:
>> Using the IONIC_ARRAY_SIZE() macro makes the code clearer.
>> Signed-off-by: Andrew Boyer <aboyer at pensando.io>
> 
> There is already 'RTE_DIM' macro for it (in 'lib/librte_eal/include/rte_common.h'), what do you think using it instead of creating a new one?
> 

Ah, I got fooled by NICVF_ARRAY_SIZE(), EFX_ARRAY_SIZE(), and friends. Will happily switch to RTE_DIM().

-Andrew


More information about the dev mailing list