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 276b4938cbe55ec5deba5d140a6a53f46ea4f399 Mon Sep 17 00:00:00 2001
|
|
From: Huisong Li <lihuisong@huawei.com>
|
|
Date: Sat, 17 Apr 2021 17:54:56 +0800
|
|
Subject: [PATCH 125/189] net/hns3: fix DCB mode check
|
|
|
|
Currently, "ONLY DCB" and "DCB+RSS" mode are both supported by HNS3
|
|
PF driver. But the driver verifies only the "DCB+RSS" multiple queues
|
|
mode.
|
|
|
|
Fixes: 62e3ccc2b94c ("net/hns3: support flow control")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Huisong Li <lihuisong@huawei.com>
|
|
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_ethdev.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_ethdev.c b/drivers/net/hns3/hns3_ethdev.c
|
|
index c75aa9c..7492708 100644
|
|
--- a/drivers/net/hns3/hns3_ethdev.c
|
|
+++ b/drivers/net/hns3/hns3_ethdev.c
|
|
@@ -2239,7 +2239,7 @@ hns3_check_mq_mode(struct rte_eth_dev *dev)
|
|
return -EINVAL;
|
|
}
|
|
|
|
- if (rx_mq_mode == ETH_MQ_RX_DCB_RSS) {
|
|
+ if (rx_mq_mode & ETH_MQ_RX_DCB_FLAG) {
|
|
if (dcb_rx_conf->nb_tcs > pf->tc_max) {
|
|
hns3_err(hw, "nb_tcs(%u) > max_tc(%u) driver supported.",
|
|
dcb_rx_conf->nb_tcs, pf->tc_max);
|
|
--
|
|
2.7.4
|
|
|