diff options
author | Maxim Mikityanskiy <maximmi@nvidia.com> | 2021-04-12 19:10:17 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-08-02 19:26:25 -0700 |
commit | 3ac90dec3a01226ce7f546a511b7fb56464e0686 (patch) | |
tree | f9a753b56a3734fa0e963b1635a9076412cf89c2 /drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h | |
parent | 43ec0f41fa73cc4d4f8a67e56fb398eff6881841 (diff) | |
download | linux-stable-3ac90dec3a01226ce7f546a511b7fb56464e0686.tar.gz linux-stable-3ac90dec3a01226ce7f546a511b7fb56464e0686.tar.bz2 linux-stable-3ac90dec3a01226ce7f546a511b7fb56464e0686.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h b/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h index 0092ee80a2cf..934e41a0761f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.h @@ -9,8 +9,6 @@ #include "tir.h" #include "fs.h" -#define MLX5E_MAX_NUM_CHANNELS (MLX5E_INDIR_RQT_SIZE / 2) - struct mlx5e_rx_res; struct mlx5e_channels; |