]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Tolerate irq_set_affinity_hint() failures
authorTariq Toukan <tariqt@mellanox.com>
Thu, 18 May 2017 10:34:43 +0000 (13:34 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 23 May 2017 13:23:32 +0000 (16:23 +0300)
commit65358b8d9d8cb01c3294b4424ff440b8e3066b1e
tree6ae433a8ce37a29fc4de3a5b7c12d42d2b9789ed
parentc34ffd2378aa229199cf61ea3b424302116d6e61
net/mlx5: Tolerate irq_set_affinity_hint() failures

Add tolerance to failures of irq_set_affinity_hint().
Its role is to give hints that optimizes performance,
and should not block the driver load.

In non-SMP systems, functionality is not available as
there is a single core, and all these calls definitely
fail.  Hence, do not call the function and avoid the
warning prints.

Fixes: f8c2524744b2 ("net/mlx5_core: Set irq affinity hints")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c