]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ee9d681d44944387a22188f94a726f6168349d6
tree4200d0046654352fd4013c6eedabe9fbac61b5cc
parent38542fb19518d575e34d56bae0b75aae1d665bca
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: f9154a205e65 ("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