]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix false negative indication on tx reporter CQE recovery
authorAya Levin <ayal@mellanox.com>
Wed, 7 Aug 2019 12:59:06 +0000 (15:59 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 8 Aug 2019 20:01:20 +0000 (13:01 -0700)
commit7cdc69642bc4a7caa4a77dffdc44e06237057f62
tree8c19035754899622a09da9bb0692fba7725a7b48
parent96e20f712b0f5047af154b6592382e178b5751ce
net/mlx5e: Fix false negative indication on tx reporter CQE recovery

Remove wrong error return value when SQ is not in error state.
CQE recovery on TX reporter queries the sq state. If the sq is not in
error state, the sq is either in ready or reset state. Ready state is
good state which doesn't require recovery and reset state is a temporal
state which ends in ready state. With this patch, CQE recovery in this
scenario is successful.

Fixes: d67460ad091c ("net/mlx5e: Add tx reporter support")
Signed-off-by: Aya Levin <ayal@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