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>
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
From 3674253a345d4f953044369ca906212af2f04819 Mon Sep 17 00:00:00 2001
|
|
From: Huisong Li <lihuisong@huawei.com>
|
|
Date: Wed, 14 Apr 2021 11:02:05 +0800
|
|
Subject: [PATCH 176/189] app/testpmd: fix bitmap of link speeds when force
|
|
speed
|
|
|
|
Currently, when the user sets force link speed through 'link_speeds',
|
|
bit(0) of 'link_speeds' is not set to 1(ETH_LINK_SPEED_FIXED),
|
|
which conflicts with the definition.
|
|
|
|
Fixes: 88fbedcd5e5a ("app/testpmd: move speed and duplex parsing in a function")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Huisong Li <lihuisong@huawei.com>
|
|
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
|
|
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
|
|
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
|
|
---
|
|
app/test-pmd/cmdline.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
|
|
index 2ccbaa0..8446ecc 100644
|
|
--- a/app/test-pmd/cmdline.c
|
|
+++ b/app/test-pmd/cmdline.c
|
|
@@ -1521,6 +1521,9 @@ parse_and_check_speed_duplex(char *speedstr, char *duplexstr, uint32_t *speed)
|
|
}
|
|
}
|
|
|
|
+ if (*speed != ETH_LINK_SPEED_AUTONEG)
|
|
+ *speed |= ETH_LINK_SPEED_FIXED;
|
|
+
|
|
return 0;
|
|
}
|
|
|
|
--
|
|
2.7.4
|
|
|