Skip to content

Commit 187a983

Browse files
ayalevin123Saeed Mahameed
authored andcommitted
net/mlx5e: Do not recover from a non-fatal syndrome
For non-fatal syndromes like LOCAL_LENGTH_ERR, recovery shouldn't be triggered. In these scenarios, the RQ is not actually in ERR state. This misleads the recovery flow which assumes that the RQ is really in error state and no more completions arrive, causing crashes on bad page state. Fixes: 8276ea1 ("net/mlx5e: Report and recover from CQE with error on RQ") Signed-off-by: Aya Levin <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent e239c6d commit 187a983

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en

1 file changed

+1
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/health.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
static inline bool cqe_syndrome_needs_recover(u8 syndrome)
1212
{
13-
return syndrome == MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR ||
14-
syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR ||
13+
return syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR ||
1514
syndrome == MLX5_CQE_SYNDROME_LOCAL_PROT_ERR ||
1615
syndrome == MLX5_CQE_SYNDROME_WR_FLUSH_ERR;
1716
}

0 commit comments

Comments
 (0)