]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix setting number of EQs of SFs
authorShay Drory <shayd@nvidia.com>
Tue, 14 Sep 2021 07:13:02 +0000 (10:13 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 21:07:56 +0000 (14:07 -0700)
commit8a0380fa898fcb4144fa4492fee81d242825d843
treefbc36895bd33691e8318b6ff7c86c5ea5a1fe1d7
parenta239db29c9c30ddfc302a181cea209ecb52362b2
net/mlx5: Fix setting number of EQs of SFs

When setting number of completion EQs of the SF, consider number of
online CPUs.
Without this consideration, when number of online cpus are less than 8,
unnecessary 8 completion EQs are allocated.

Fixes: b18d77d71442 ("net/mlx5: Round-Robin EQs over IRQs")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c