net/mlx5e: Use array_size() helper
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 28 Sep 2021 21:54:10 +0000 (16:54 -0500)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 23:19:02 +0000 (16:19 -0700)
commit51984c9ee01e784ff578e583678958709b18f7b7
treefa0c70ba159ae5c62feb905c10a1ac0a426366b1
parentab9ace34158f48e65024e21994ed83d065e2ce6e
net/mlx5e: Use array_size() helper

Use array_size() helper to aid in 2-factor allocation instances.

Link: https://github.com/KSPP/linux/issues/160
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c