[dts] [PATCH V2 6/9] framework/pmd_output: optimize methods to adapt to MEV testing
Jiale Song
songx.jiale at intel.com
Fri Aug 25 17:28:22 CEST 2023
optimize methods to adapt to MEV testing.
Signed-off-by: Jiale Song <songx.jiale 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..d51c3a9b 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.25.1
More information about the dts
mailing list