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

2021-01-27 Thread Andrew Boyer
> On Jan 27, 2021, at 12:22 PM, Ferruh Yigit 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 > > There is already 'RTE_DIM' macro for it (in > 'lib/librte_eal/include/rte_common.h'), what do yo

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

2021-01-27 Thread Ferruh Yigit
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 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?

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

2021-01-18 Thread Andrew Boyer
Using the IONIC_ARRAY_SIZE() macro makes the code clearer. Signed-off-by: Andrew Boyer --- drivers/net/ionic/ionic_dev.c| 10 -- drivers/net/ionic/ionic_ethdev.c | 3 +-- drivers/net/ionic/ionic_lif.c| 9 +++-- drivers/net/ionic/ionic_main.c | 32 +++--