[dts] [PATCH V1 2/2] framework/dut: replace "-w" with "-a"
Haiyang Zhao
haiyangx.zhao at intel.com
Wed Dec 23 09:24:22 CET 2020
replace "-w" with "-a" when config is empty.
Signed-off-by: Haiyang Zhao <haiyangx.zhao at intel.com>
---
framework/dut.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/framework/dut.py b/framework/dut.py
index db0d7df6..c4301df3 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -208,11 +208,12 @@ class Dut(Crb):
+ blank + no_pci \
+ blank + vdev
else:
+ allow_option = '-a' if self.dpdk_version > '20.11.0-rc3' or self.dpdk_version == '20.11.0' else '-w'
# get pci from ports_info
pci_list = []
if len(self.ports_info) != 0:
for port_info in self.ports_info:
- pci_list.append('-w %s' % port_info['pci'])
+ pci_list.append('%s %s' % (allow_option, port_info['pci']))
self.logger.info(pci_list)
pci_str = ' '.join(pci_list)
# default cores '1S/2C/1T'
--
2.17.1
More information about the dts
mailing list