net/hns3: use existing macro to get array size
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 30 Apr 2021 06:28:47 +0000 (14:28 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 May 2021 16:02:14 +0000 (18:02 +0200)
commit77d1f6b1afc8a685c5685141e14d866fe2434e99
tree66304bbc1ebaf8719f76657662c087092b71571b
parent2aca65258eb68cafc2238df56b8d36b0e8410f4c
net/hns3: use existing macro to get array size

This patch uses RTE_DIM() instead of ARRAY_SIZE().

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_cmd.c
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_flow.c
drivers/net/hns3/hns3_intr.c