]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5bdfe91f18e2df10d8c5870a1025d5c6dc57b60
tree56d263ad228d18fc77b99497c24921ad11c95f2d
parent5a940d8f682a3a5c35604f446087fdf11d810964
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