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)
commitb665d98edc9ab295169be2fc5bb4e89a46de0a1a
tree6ae433a8ce37a29fc4de3a5b7c12d42d2b9789ed
parent73dd3a4839c1d27c36d4dcc92e1ff44225ecbeb7
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: db058a186f98 ("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