Blame SOURCES/0166-netdrv-net-mlx5e-Do-not-recover-from-a-non-fatal-syn.patch

d8f823
From fb32c890e6cf38a3f6f2b848154c88049e42f051 Mon Sep 17 00:00:00 2001
d8f823
From: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Date: Tue, 12 May 2020 10:54:36 -0400
d8f823
Subject: [PATCH 166/312] [netdrv] net/mlx5e: Do not recover from a non-fatal
d8f823
 syndrome
d8f823
d8f823
Message-id: <20200512105530.4207-71-ahleihel@redhat.com>
d8f823
Patchwork-id: 306943
d8f823
Patchwork-instance: patchwork
d8f823
O-Subject: [RHEL8.3 BZ 1789382 070/124] net/mlx5e: Do not recover from a non-fatal syndrome
d8f823
Bugzilla: 1789382
d8f823
RH-Acked-by: Tony Camuso <tcamuso@redhat.com>
d8f823
RH-Acked-by: Kamal Heib <kheib@redhat.com>
d8f823
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
d8f823
d8f823
Bugzilla: http://bugzilla.redhat.com/1789382
d8f823
Upstream: v5.6
d8f823
d8f823
commit 187a9830c921d92c4a9a8e2921ecc4b35a97532c
d8f823
Author: Aya Levin <ayal@mellanox.com>
d8f823
Date:   Thu Mar 19 13:25:17 2020 +0200
d8f823
d8f823
    net/mlx5e: Do not recover from a non-fatal syndrome
d8f823
d8f823
    For non-fatal syndromes like LOCAL_LENGTH_ERR, recovery shouldn't be
d8f823
    triggered. In these scenarios, the RQ is not actually in ERR state.
d8f823
    This misleads the recovery flow which assumes that the RQ is really in
d8f823
    error state and no more completions arrive, causing crashes on bad page
d8f823
    state.
d8f823
d8f823
    Fixes: 8276ea1353a4 ("net/mlx5e: Report and recover from CQE with error on RQ")
d8f823
    Signed-off-by: Aya Levin <ayal@mellanox.com>
d8f823
    Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
d8f823
    Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
d8f823
d8f823
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
d8f823
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
d8f823
---
d8f823
 drivers/net/ethernet/mellanox/mlx5/core/en/health.h | 3 +--
d8f823
 1 file changed, 1 insertion(+), 2 deletions(-)
d8f823
d8f823
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/health.h b/drivers/net/ethernet/mellanox/mlx5/core/en/health.h
d8f823
index d3693fa547ac..e54f70d9af22 100644
d8f823
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/health.h
d8f823
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/health.h
d8f823
@@ -10,8 +10,7 @@
d8f823
 
d8f823
 static inline bool cqe_syndrome_needs_recover(u8 syndrome)
d8f823
 {
d8f823
-	return syndrome == MLX5_CQE_SYNDROME_LOCAL_LENGTH_ERR ||
d8f823
-	       syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR ||
d8f823
+	return syndrome == MLX5_CQE_SYNDROME_LOCAL_QP_OP_ERR ||
d8f823
 	       syndrome == MLX5_CQE_SYNDROME_LOCAL_PROT_ERR ||
d8f823
 	       syndrome == MLX5_CQE_SYNDROME_WR_FLUSH_ERR;
d8f823
 }
d8f823
-- 
d8f823
2.13.6
d8f823