]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/hns3/hns3_intr.c
net/hns3: use existing macro to get array size
[dpdk.git] / drivers / net / hns3 / hns3_intr.c
index ba6a04432399ca2ce2d5dd00f5b2c4533b438c52..b743b415749b03d9c919be97f3d3deecb1d52b96 100644 (file)
@@ -2206,8 +2206,8 @@ hns3_handle_type_reg_error_data(struct hns3_hw *hw,
        type_id = err_info->type_id & HNS3_ERR_TYPE_MASK;
        is_ras = err_info->type_id >> HNS3_ERR_TYPE_IS_RAS_OFFSET;
 
-       total_module = ARRAY_SIZE(hns3_hw_module_name);
-       total_type = ARRAY_SIZE(hns3_hw_error_type);
+       total_module = RTE_DIM(hns3_hw_module_name);
+       total_type = RTE_DIM(hns3_hw_error_type);
 
        hns3_err(hw, "total_module:%u, total_type:%u",
                 total_module, total_type);