net/mlx5e: Fix error flow of CQE recovery on tx reporter
authorAya Levin <ayal@mellanox.com>
Tue, 6 Aug 2019 12:19:19 +0000 (15:19 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 8 Aug 2019 20:01:20 +0000 (13:01 -0700)
commit276d197e70bcc47153592f4384675b51c7d83aba
tree4200d0046654352fd4013c6eedabe9fbac61b5cc
parentd9a2fcf53c76a7edb2bcf99e94507935561a83d5
net/mlx5e: Fix error flow of CQE recovery on tx reporter

CQE recovery function begins with test and set of recovery bit. Add an
error flow which ensures clearing of this bit when leaving the recovery
function, to allow further recoveries to take place. This allows removal
of clearing recovery bit on sq activate.

Fixes: de8650a82071 ("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
drivers/net/ethernet/mellanox/mlx5/core/en_main.c