]> 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)
commit8b25aa707af70f51879e779104eedfa4346e7156
tree64148d57103586852dbfb460a15e0be86253b6c3
parent1b43e623cc51446bf847e3477e69e17b4c60611f
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: 489c3e555619 ("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