[dts] [PATCH V1] framework/dut: fix issue of ports config in eal params
lihong
lihongx.ma at intel.com
Thu Dec 5 22:54:24 CET 2019
Signed-off-by: lihong <lihongx.ma at intel.com>
---
framework/dut.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/framework/dut.py b/framework/dut.py
index f26b081..6e4b1e5 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -143,9 +143,9 @@ class Dut(Crb):
else:
if config.has_key('port_options') and port in config['port_options'].keys():
port_option = config['port_options'][port]
- w_pci_list.append('-w %s,%s' % (self.ports_info[config['ports'].index(port)]['pci'], port_option))
+ w_pci_list.append('-w %s,%s' % (port, port_option))
else:
- w_pci_list.append('-w %s' % self.ports_info[config['ports'].index(port)]['pci'])
+ w_pci_list.append('-w %s' % port)
w_pci_str = ' '.join(w_pci_list)
# deal with black ports
--
2.7.4
More information about the dts
mailing list