net/mlx5e: Allocate the array of channels according to the real max_nch
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Mon, 12 Apr 2021 16:10:17 +0000 (19:10 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 3 Aug 2021 02:26:25 +0000 (19:26 -0700)
commit3ac90dec3a01226ce7f546a511b7fb56464e0686
treef9a753b56a3734fa0e963b1635a9076412cf89c2
parent43ec0f41fa73cc4d4f8a67e56fb398eff6881841
net/mlx5e: Allocate the array of channels according to the real max_nch

The channels array in struct mlx5e_rx_res is converted to a dynamic one,
which will use the dynamic value of max_nch instead of
implementation-defined maximum of MLX5E_MAX_NUM_CHANNELS.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c
drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h