]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix return value from timeout recover function
authorAya Levin <ayal@mellanox.com>
Mon, 17 Jun 2019 09:01:45 +0000 (12:01 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Jul 2019 18:45:03 +0000 (11:45 -0700)
commit1d59336ddf3185e2a399f43e3036d6c032c0e8fd
tree1f6a6092041963eb914599e7a1139d4f64f95b2d
parent0929cf6f387ff53085cc68472b4a973c6128daa0
net/mlx5e: Fix return value from timeout recover function

Fix timeout recover function to return a meaningful return value.
When an interrupt was not sent by the FW, return IO error instead of
'true'.

Fixes: 0ac26ca7b933 ("net/mlx5e: Fix return status of TX reporter timeout recover")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c