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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2019 06:28:35 +0000 (08:28 +0200)
commitd5596ded2ec330e3e72f5c541fc2e9eb4437275a
tree9d0473e770532ec61c3674ec03cc3f32dd7434e6
parent2260ec46cd26dd98eabd16b3be183b33dde12017
net/mlx5e: Fix return value from timeout recover function

[ Upstream commit 39825350ae2a52f8513741b36e42118bd80dd689 ]

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: c7981bea48fb ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c