drivers/net: redefine array size macros
authorAndrew Boyer <aboyer@pensando.io>
Fri, 29 Jan 2021 22:44:32 +0000 (14:44 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 22 Feb 2021 17:08:08 +0000 (18:08 +0100)
commita3c9a11ab2d667c9eca001a50c79d8ddab707578
tree95c51722847806b7d43cad45587d3c93f09b0f6d
parenta954b37a4c8015a7db0877563f07de7eb8f5ed74
drivers/net: redefine array size macros

Replace copies of size(arr)/size(arr[0]) with RTE_DIM().
Eventually all of these macro definitions should be removed.

Signed-off-by: Andrew Boyer <aboyer@pensando.io>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/atlantic/atl_hw_regs.h
drivers/net/axgbe/axgbe_common.h
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/elink.h
drivers/net/ena/ena_ethdev.c
drivers/net/enic/base/vnic_devcmd.h
drivers/net/hns3/hns3_ethdev.h
drivers/net/i40e/base/i40e_osdep.h
drivers/net/nfp/nfpcore/nfp-common/nfp_platform.h
drivers/net/thunderx/base/nicvf_hw.h