Update DPDK version from 19.11 to 20.11 and also support hns3 PMD for Kunpeng 920 and Kunpeng 930. Signed-off-by: speech_white <humin29@huawei.com>
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 8f2285bfc5a77da72ddaec4faccfbbdef91cd4a8 Mon Sep 17 00:00:00 2001
|
|
From: Chengwen Feng <fengchengwen@huawei.com>
|
|
Date: Mon, 10 May 2021 21:38:11 +0800
|
|
Subject: [PATCH 163/189] net/hns3: fix secondary process request start/stop
|
|
Rx/Tx
|
|
|
|
This secondary process should not send request to start/stop Rx/Tx,
|
|
this patch fixes it.
|
|
|
|
Fixes: 23d4b61fee5d ("net/hns3: support multiple process")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
|
|
Signed-off-by: Min Hu (Connor) <humin29@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 ed2567a..7d85de3 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.7.4
|
|
|