mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
net/mlx5e: Do not recover from a non-fatal syndrome
[ Upstream commit 187a9830c921d92c4a9a8e2921ecc4b35a97532c ]
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: 8276ea1353 ("net/mlx5e: Report and recover from CQE with error on RQ")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f94d69e5f6
commit
74f554af84
1 changed files with 1 additions and 2 deletions
|
|
@ -10,8 +10,7 @@
|
|||
|
||||
static inline bool cqe_syndrome_needs_recover(u8 syndrome)
|
||||
{
|
||||
return syndrome == MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR ||
|
||||
syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR ||
|
||||
return syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR ||
|
||||
syndrome == MLX5_CQE_SYNDROME_LOCAL_PROT_ERR ||
|
||||
syndrome == MLX5_CQE_SYNDROME_WR_FLUSH_ERR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue