]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix error print in case of IRQ request failed
authorShay Drory <shayd@nvidia.com>
Wed, 24 Nov 2021 21:10:57 +0000 (23:10 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 23 Dec 2021 04:38:47 +0000 (20:38 -0800)
commit4a817fd844e37bcf1f7ee7581aee8eef2bd7f954
tree043e46276b3c1191f358f0eb7c0275d13ff2ddb3
parentfec9bb737e45e23b0f36cfc2175d6a07e5157a09
net/mlx5: Fix error print in case of IRQ request failed

In case IRQ layer failed to find or to request irq, the driver is
printing the first cpu of the provided affinity as part of the error
print. Empty affinity is a valid input for the IRQ layer, and it is
an error to call cpumask_first() on empty affinity.

Remove the first cpu print from the error message.

Fixes: fda284f73f09 ("net/mlx5: Round-Robin EQs over IRQs")
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