[DTS][PATCH V1 07/10] framework/pmd_output: optimize function start_testpmd
Jin Ling
jin.ling at intel.com
Sun Jul 16 11:07:51 CEST 2023
add code to create cmdline for running testpmd
Signed-off-by: Jin Ling <jin.ling at intel.com>
---
framework/pmd_output.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index c8e8b50f..865476ea 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -135,6 +135,7 @@ class PmdOutput:
config["ports"] = [
self.dut.ports_info[i]["pci"] for i in range(len(self.dut.ports_info))
]
+ config["ports"]=list(set(config["ports"]))
all_eal_param = self.dut.create_eal_parameters(
fixed_prefix=fixed_prefix, socket=socket, **config
)
@@ -145,6 +146,8 @@ class PmdOutput:
if self.session != self.dut:
self.session.send_expect("cd %s" % self.dut.base_dir, "# ")
out = self.session.send_expect(command, expected, timeout)
+ if self.dut.test_mev == "true":
+ self.dut.mev_config_rx_port(out=out)
self.command = command
# wait 10s to ensure links getting up before test start.
sleep(10)
--
2.34.1
More information about the dts
mailing list