]> 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)
commitef69a943941b3bfab42bcc3465f34ff36ab3b840
treefbc36895bd33691e8318b6ff7c86c5ea5a1fe1d7
parenta81084bbc4670bfaf560cc75b26b8c2cd8d4dc13
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: fda284f73f09 ("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