]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe71436c96f3e1abc472d63586347468e62bdd0c
treef9a753b56a3734fa0e963b1635a9076412cf89c2
parenta1df0496d35969a9172e2619691897aa6211639c
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