[dpdk-stable] patch 'net/hns3: fix secondary process request start/stop Rx/Tx' has been queued to stable release 20.11.2

Xueming Li xuemingl at nvidia.com
Sat Jun 12 01:03:40 CEST 2021


Hi,

FYI, your patch has been queued to stable release 20.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/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/steevenlee/dpdk

This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/edd8521ace0ee77e997238125257c03a2e05ffd1

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From edd8521ace0ee77e997238125257c03a2e05ffd1 Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Mon, 10 May 2021 21:38:11 +0800
Subject: [PATCH] net/hns3: fix secondary process request start/stop Rx/Tx
Cc: Luca Boccassi <bluca at debian.org>

[ upstream commit db6a165adc460810555f56aa2a3ebf8284c4de62 ]

This secondary process should not send request to start/stop Rx/Tx,
this patch fixes it.

Fixes: 23d4b61fee5d ("net/hns3: support multiple process")

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
---
 drivers/net/hns3/hns3_mp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/hns3/hns3_mp.c b/drivers/net/hns3/hns3_mp.c
index 568ddc2a3c..77c1a100ce 100644
--- a/drivers/net/hns3/hns3_mp.c
+++ b/drivers/net/hns3/hns3_mp.c
@@ -130,7 +130,7 @@ mp_req_on_rxtx(struct rte_eth_dev *dev, enum hns3_mp_req_type type)
 	int ret;
 	int i;
 
-	if (!hw->secondary_cnt)
+	if (rte_eal_process_type() == RTE_PROC_SECONDARY || !hw->secondary_cnt)
 		return;
 	if (type != HNS3_MP_REQ_START_RXTX && type != HNS3_MP_REQ_STOP_RXTX) {
 		hns3_err(hw, "port %u unknown request (req_type %d)",
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-06-12 06:53:59.815332200 +0800
+++ 0126-net-hns3-fix-secondary-process-request-start-stop-Rx.patch	2021-06-12 06:53:56.530000000 +0800
@@ -1 +1 @@
-From db6a165adc460810555f56aa2a3ebf8284c4de62 Mon Sep 17 00:00:00 2001
+From edd8521ace0ee77e997238125257c03a2e05ffd1 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Luca Boccassi <bluca at debian.org>
+
+[ upstream commit db6a165adc460810555f56aa2a3ebf8284c4de62 ]
@@ -10 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +21 @@
-index ac0b5a0235..cab784f42a 100644
+index 568ddc2a3c..77c1a100ce 100644


More information about the stable mailing list