[dpdk-stable] patch 'net/hns3: increase VF reset retry maximum' has been queued to stable release 20.11.3

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Jul 12 15:04:55 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/14/21. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/6b38d23ef19a44cd42edb6344e42e5b0d3b91743

Thanks.

Luca Boccassi

---
>From 6b38d23ef19a44cd42edb6344e42e5b0d3b91743 Mon Sep 17 00:00:00 2001
From: Hongbo Zheng <zhenghongbo3 at huawei.com>
Date: Sun, 13 Jun 2021 10:31:51 +0800
Subject: [PATCH] net/hns3: increase VF reset retry maximum

[ upstream commit b25987fa7e25b3ba852f9433d22761c006884205 ]

When the device is very busy, VF reset may have to be
retried many times to succeed, leading to the current
max reset fail retry count not enough.

Modify max reset fail retry count to 30 to enhance
the reliability of reset function.

Fixes: 2790c6464725 ("net/hns3: support device reset")

Signed-off-by: Hongbo Zheng <zhenghongbo3 at huawei.com>
Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
---
 drivers/net/hns3/hns3_intr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/hns3/hns3_intr.c b/drivers/net/hns3/hns3_intr.c
index 0bba3abb84..0fa21e4824 100644
--- a/drivers/net/hns3/hns3_intr.c
+++ b/drivers/net/hns3/hns3_intr.c
@@ -1947,7 +1947,7 @@ hns3_clear_reset_level(struct hns3_hw *hw, uint64_t *levels)
 static bool
 hns3_reset_err_handle(struct hns3_adapter *hns)
 {
-#define MAX_RESET_FAIL_CNT 5
+#define MAX_RESET_FAIL_CNT 30
 
 	struct hns3_hw *hw = &hns->hw;
 
@@ -2041,7 +2041,7 @@ hns3_reset_pre(struct hns3_adapter *hns)
 static int
 hns3_reset_post(struct hns3_adapter *hns)
 {
-#define TIMEOUT_RETRIES_CNT	5
+#define TIMEOUT_RETRIES_CNT	30
 	struct hns3_hw *hw = &hns->hw;
 	struct timeval tv_delta;
 	struct timeval tv;
-- 
2.30.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-07-12 13:41:39.782428215 +0100
+++ 0060-net-hns3-increase-VF-reset-retry-maximum.patch	2021-07-12 13:41:36.494122694 +0100
@@ -1 +1 @@
-From b25987fa7e25b3ba852f9433d22761c006884205 Mon Sep 17 00:00:00 2001
+From 6b38d23ef19a44cd42edb6344e42e5b0d3b91743 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b25987fa7e25b3ba852f9433d22761c006884205 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 6bdb17f622..0b307fdd1d 100644
+index 0bba3abb84..0fa21e4824 100644
@@ -26 +27 @@
-@@ -2582,7 +2582,7 @@ hns3_clear_reset_level(struct hns3_hw *hw, uint64_t *levels)
+@@ -1947,7 +1947,7 @@ hns3_clear_reset_level(struct hns3_hw *hw, uint64_t *levels)
@@ -35 +36 @@
-@@ -2676,7 +2676,7 @@ hns3_reset_pre(struct hns3_adapter *hns)
+@@ -2041,7 +2041,7 @@ hns3_reset_pre(struct hns3_adapter *hns)


More information about the stable mailing list