net/mlx5: Use one completion vector if eth is disabled
authorEli Cohen <elic@nvidia.com>
Tue, 3 Jan 2023 07:37:23 +0000 (09:37 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 24 Mar 2023 23:04:30 +0000 (16:04 -0700)
commitb637ac5db0d0fd00cbe88469999ba2985355ac95
treeb3da25af421648da34c1bae5a8214332798fb44b
parent1dc85133c207831dbaa91941a98f6c488411927a
net/mlx5: Use one completion vector if eth is disabled

If eth is disabled by devlink, use only a single completion vector to
have minimum performance of all users of completion vectors. This also
affects Infiniband performance.

The rest of the vectors can be used by other consumers on a first come
first served basis.

mlx5_vdpa will make use of this to allocate dedicated vectors for its
own use.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c
drivers/net/ethernet/mellanox/mlx5/core/devlink.h
drivers/net/ethernet/mellanox/mlx5/core/eq.c