From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V2 6/9] framework/pmd_output: optimize methods to adapt to MEV testing
Date: Fri, 25 Aug 2023 15:28:22 +0000 [thread overview]
Message-ID: <20230825152825.2831565-7-songx.jiale@intel.com> (raw)
In-Reply-To: <20230825152825.2831565-1-songx.jiale@intel.com>
optimize methods to adapt to MEV testing.
Signed-off-by: Jiale Song <songx.jiale@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
next prev parent reply other threads:[~2023-08-25 7:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-25 15:28 [dts] [PATCH V2 0/9] add functions to test MEV Jiale Song
2023-08-25 8:01 ` David Marchand
2023-08-25 15:28 ` [dts] [PATCH V2 1/9] conf/crbs: add parameters Jiale Song
2023-08-25 15:28 ` [dts] [PATCH V2 2/9] execution: add parameters and parameter comments Jiale Song
2023-08-25 15:28 ` [dts] [PATCH V2 3/9] framework/config: obtain and save the acc and imc configurations of MEV Jiale Song
2023-08-25 15:28 ` [dts] [PATCH V2 4/9] framework/dts: add global variables Jiale Song
2023-08-25 15:28 ` [dts] [PATCH V2 5/9] framework/dut: add and modify methods to adapt to MEV testing Jiale Song
2023-08-25 15:28 ` Jiale Song [this message]
2023-08-25 15:28 ` [dts] [PATCH V2 7/9] framework/project_dpdk: optimize " Jiale Song
2023-08-25 15:28 ` [dts] [PATCH V2 8/9] framework/settings: add drivers and NICs for mev Jiale Song
2023-08-25 15:28 ` [dts] [PATCH V2 9/9] framework/tester: optimize scripts Jiale Song
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=20230825152825.2831565-7-songx.jiale@intel.com \
--to=songx.jiale@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).