From: Jun Dong <junx.dong@intel.com>
To: junx.dong@intel.com
Cc: dts@dpdk.org
Subject: [dts] [PATCH V1 3/6] framework/*: update framework after removed fm10k
Date: Tue, 15 Jun 2021 18:46:10 +0800 [thread overview]
Message-ID: <20210615104613.14658-3-junx.dong@intel.com> (raw)
In-Reply-To: <20210615104613.14658-1-junx.dong@intel.com>
1. update framework/dut,remove fm10k related description.
2. update framework/project_dpdk,remove fm10k related build option.
3. update framework/settings,remove fm10k related NICs.
4. update framework/test_capabilities,remove fm10k.
5. update framework/test_case,remove redrockcanyou branch from function.
Signed-off-by: Jun Dong <junx.dong@intel.com>
---
framework/dut.py | 2 +-
framework/project_dpdk.py | 3 +--
framework/settings.py | 11 +----------
framework/test_capabilities.py | 2 +-
framework/test_case.py | 2 --
5 files changed, 4 insertions(+), 16 deletions(-)
diff --git a/framework/dut.py b/framework/dut.py
index ca1c9089..f5481d06 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -459,7 +459,7 @@ class Dut(Crb):
def stop_ports(self):
"""
- After all execution done, some special nic like fm10k should be stop
+ After all execution done, the nic should be stop
"""
for (pci_bus, pci_id) in self.pci_devices_info:
driver = settings.get_nic_driver(pci_id)
diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index f7946664..31827991 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -203,8 +203,7 @@ class DPDKdut(Dut):
'RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC': 'n'})
elif mode == 'novector':
self.set_build_options({'RTE_IXGBE_INC_VECTOR': 'n',
- 'RTE_LIBRTE_I40E_INC_VECTOR': 'n',
- 'RTE_LIBRTE_FM10K_INC_VECTOR': 'n'})
+ 'RTE_LIBRTE_I40E_INC_VECTOR': 'n'})
elif mode == 'avx512':
self.logger.warning(RED('*********AVX512 is not supported by makefile!!!********'))
else:
diff --git a/framework/settings.py b/framework/settings.py
index 23eb0075..9ceffe2e 100644
--- a/framework/settings.py
+++ b/framework/settings.py
@@ -83,24 +83,20 @@ NICS = {
'fortville_eagle': '8086:1572',
'fortville_spirit': '8086:1583',
'fortville_spirit_single': '8086:1584',
- 'redrockcanyou': '8086:15a4',
'fortpark': '8086:374c',
'fortpark_1g': '8086:37d1',
'fortpark_TLV': '8086:37d0',
'fortpark_BASE-T': '8086:37d2',
'fortpark_TLV_vf': '8086:37cd',
'fvl10g_vf': '8086:154c',
- 'atwood': '8086:15d5',
'ConnectX3_MT4103': '15b3:1007',
'ConnectX4_MT4115': '15b3:1013',
'ConnectX4_LX_MT4117': '15b3:1015',
'ConnectX5_MT4119': '15b3:1017',
'ConnectX5_MT4121': '15b3:1019',
- 'boulderrapid': '8086:15d0',
'fortville_25g': '8086:158b',
'cavium_a034': '177d:a034',
'cavium_0011': '177d:0011',
- 'hi1822': '19e5:1822',
'fortvile_bdw_de': '8086:15ac',
'cavium_a063': '177d:a063',
'cavium_a064': '177d:a064',
@@ -151,24 +147,20 @@ DRIVERS = {
'fortville_eagle': 'i40e',
'fortville_spirit': 'i40e',
'fortville_spirit_single': 'i40e',
- 'redrockcanyou': 'fm10k',
'fortpark': 'i40e',
'fortpark_1g': 'i40e',
'fortpark_TLV': 'i40e',
'fortpark_BASE-T': 'i40e',
'fortpark_TLV_vf': 'i40evf',
'fvl10g_vf': 'i40evf',
- 'atwood': 'fm10k',
'ConnectX3_MT4103': 'mlx4_core',
'ConnectX4_MT4115': 'mlx5_core',
'ConnectX4_LX_MT4117': 'mlx5_core',
'ConnectX5_MT4119': 'mlx5_core',
'ConnectX5_MT4121': 'mlx5_core',
- 'boulderrapid': 'fm10k',
'fortville_25g': 'i40e',
'cavium_a034': 'thunder-nicvf',
'cavium_0011': 'thunder-nicvf',
- 'hi1822': 'hinic',
'fortvile_bdw_de': 'ixgbe',
'cavium_a063': 'octeontx2-nicpf',
'cavium_a064': 'octeontx2-nicvf',
@@ -295,9 +287,8 @@ def get_nic_driver(pci_id):
"""
Return linux driver for specified pci device
"""
- driverlist = dict(list(zip(list(NICS.values()), list(DRIVERS.keys()))))
try:
- driver = DRIVERS[driverlist[pci_id]]
+ driver = DRIVERS[{NICS[key]:key for key in NICS}[pci_id]]
except Exception as e:
driver = None
return driver
diff --git a/framework/test_capabilities.py b/framework/test_capabilities.py
index 79a6dee6..350e7ee3 100644
--- a/framework/test_capabilities.py
+++ b/framework/test_capabilities.py
@@ -3,7 +3,7 @@
Dict used to skip parts of tests if NIC is known not to support them
"""
DRIVER_TEST_LACK_CAPA = {
- 'sctp_tx_offload' : ['thunder-nicvf', 'fm10k', 'qede']
+ 'sctp_tx_offload' : ['thunder-nicvf', 'qede']
}
diff --git a/framework/test_case.py b/framework/test_case.py
index 3347adad..98b716b9 100644
--- a/framework/test_case.py
+++ b/framework/test_case.py
@@ -507,8 +507,6 @@ class TestCase(object):
bitrate *= 10
elif nic == 'fortpark_TLV':
bitrate *= 10
- elif nic == 'redrockcanyou':
- bitrate *= 40
elif driver == 'thunder-nicvf':
bitrate *= 10
elif nic == 'fortville_25g':
--
2.27.0
next prev parent reply other threads:[~2021-06-15 10:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 10:46 [dts] [PATCH V1 1/6] dts/*: remove fm10k related modules and patch Jun Dong
2021-06-15 10:46 ` [dts] [PATCH V1 2/6] conf/test_case_checklist: update test case checklist after removed fm10k Jun Dong
2021-06-15 10:46 ` Jun Dong [this message]
2021-06-15 10:46 ` [dts] [PATCH V1 4/6] nics/net_device: update NetDevice class " Jun Dong
2021-06-15 10:46 ` [dts] [PATCH V1 5/6] test_plans/*: update test plan " Jun Dong
2021-06-15 10:46 ` [dts] [PATCH V1 6/6] tests/*: update test suits " Jun Dong
[not found] ` <BN9PR11MB527491B1E7491772751169B7EA0F9@BN9PR11MB5274.namprd11.prod.outlook.com>
[not found] ` <BN9PR11MB5274CA2BE703D61510E11755EA0F9@BN9PR11MB5274.namprd11.prod.outlook.com>
2021-06-18 6:51 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210615104613.14658-3-junx.dong@intel.com \
--to=junx.dong@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).