diff options
author | Aya Levin <ayal@mellanox.com> | 2019-08-08 14:55:48 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-08-08 22:01:20 +0200 |
commit | a4e508cab623951dc4754f346e5673714f3bbade (patch) | |
tree | 991dafb4e9e51d438a82dd0765e407f0acda7f83 | |
parent | net/mlx5e: Fix error flow of CQE recovery on tx reporter (diff) | |
download | linux-a4e508cab623951dc4754f346e5673714f3bbade.tar.xz linux-a4e508cab623951dc4754f346e5673714f3bbade.zip |
net/mlx5e: Remove redundant check in CQE recovery flow of tx reporter
Remove check of recovery bit, in the beginning of the CQE recovery
function. This test is already performed right before the reporter
is invoked, when CQE error is detected.
Fixes: de8650a82071 ("net/mlx5e: Add tx reporter support")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c index b91814ecfbc9..c7f86453c638 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c @@ -76,9 +76,6 @@ static int mlx5e_tx_reporter_err_cqe_recover(struct mlx5e_txqsq *sq) u8 state; int err; - if (!test_bit(MLX5E_SQ_STATE_RECOVERING, &sq->state)) - return 0; - err = mlx5_core_query_sq_state(mdev, sq->sqn, &state); if (err) { netdev_err(dev, "Failed to query SQ 0x%x state. err = %d\n", |