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)
commit26a7993c93a74a3fee83a37b46e00e69e49e57c2
tree64148d57103586852dbfb460a15e0be86253b6c3
parent624bf42c2e3930acca9fcfc340b2fa38e712da84
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: f891b7cdbdcd ("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