]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Use first online CPU instead of hard coded CPU
authorShay Drory <shayd@nvidia.com>
Tue, 26 Oct 2021 05:25:19 +0000 (08:25 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 23 Dec 2021 04:38:46 +0000 (20:38 -0800)
commitfec9bb737e45e23b0f36cfc2175d6a07e5157a09
tree64148d57103586852dbfb460a15e0be86253b6c3
parent13819aabe901196b032a15f292eaa3ea8c3b02a4
net/mlx5: Use first online CPU instead of hard coded CPU

Hard coded CPU (0 in our case) might be offline. Hence, use the first
online CPU instead.

Fixes: 67b8f99e536b ("net/mlx5: Enable single IRQ for PCI Function")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c