OSDN Git Service

net/mlx5e: Allow profile-specific limitation on max num of channels
authorTariq Toukan <tariqt@nvidia.com>
Wed, 29 Sep 2021 14:29:24 +0000 (17:29 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 22 Dec 2021 03:08:57 +0000 (19:08 -0800)
commit473baf2e9e8c5b3240f443658e9b59dabba9eb9e
tree56d263ad228d18fc77b99497c24921ad11c95f2d
parent0246a57ab5174ea6fe260e946900d5d3d5483dbf
net/mlx5e: Allow profile-specific limitation on max num of channels

Let SF/VF representor's netdev use profile-specific limitation on
max_nch to reduce its memory and HW resources consumption.

This is particularly important for environments with limited memory
and high number of SFs.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Vu Pham <vuhuong@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Parav Pandit <parav@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_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c