net/mlx5: Tolerate irq_set_affinity_hint() failures
authorTariq Toukan <tariqt@mellanox.com>
Thu, 18 May 2017 10:34:43 +0000 (13:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:50:09 +0000 (19:50 +0200)
commit4f58c2e97cf347121220f9c0a12eb910196e50eb
tree13dd3efeb3930a1025b0b889ed297f2adddfd3b1
parentd5367b8982446d191d60e57f1335726958c6242f
net/mlx5: Tolerate irq_set_affinity_hint() failures

[ Upstream commit b665d98edc9ab295169be2fc5bb4e89a46de0a1a ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c