From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0BC40A0C45 for ; Thu, 10 Jun 2021 14:07:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06AE8410F0; Thu, 10 Jun 2021 14:07:24 +0200 (CEST) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) by mails.dpdk.org (Postfix) with ESMTP id 7A91E4003C for ; Thu, 10 Jun 2021 14:07:22 +0200 (CEST) Received: from 2.general.paelzer.uk.vpn ([10.172.196.173] helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lrJT0-00005v-AK; Thu, 10 Jun 2021 12:07:22 +0000 From: Christian Ehrhardt To: Chengwen Feng Cc: Min Hu , dpdk stable Date: Thu, 10 Jun 2021 14:06:07 +0200 Message-Id: <20210610120641.885862-19-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210610120641.885862-1-christian.ehrhardt@canonical.com> References: <20210610120641.885862-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/hns3: fix secondary process request start/stop Rx/Tx' has been queued to stable release 19.11.9 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.9 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/12/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/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/cb46f4c8f1120ceae875f8732042a1a183682190 Thanks. Christian Ehrhardt --- >From cb46f4c8f1120ceae875f8732042a1a183682190 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Mon, 10 May 2021 21:38:11 +0800 Subject: [PATCH] net/hns3: fix secondary process request start/stop Rx/Tx [ 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 Signed-off-by: Min Hu (Connor) --- 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 ecfba447a2..649f896de2 100644 --- a/drivers/net/hns3/hns3_mp.c +++ b/drivers/net/hns3/hns3_mp.c @@ -132,7 +132,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.31.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-06-10 14:04:58.971849483 +0200 +++ 0019-net-hns3-fix-secondary-process-request-start-stop-Rx.patch 2021-06-10 14:04:58.042024466 +0200 @@ -1 +1 @@ -From db6a165adc460810555f56aa2a3ebf8284c4de62 Mon Sep 17 00:00:00 2001 +From cb46f4c8f1120ceae875f8732042a1a183682190 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit db6a165adc460810555f56aa2a3ebf8284c4de62 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index ac0b5a0235..cab784f42a 100644 +index ecfba447a2..649f896de2 100644 @@ -22 +23 @@ -@@ -130,7 +130,7 @@ mp_req_on_rxtx(struct rte_eth_dev *dev, enum hns3_mp_req_type type) +@@ -132,7 +132,7 @@ mp_req_on_rxtx(struct rte_eth_dev *dev, enum hns3_mp_req_type type)