test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH v1] tests/kernelpf_iavf: support eal_param -a to avoid running containers conflict
Date: Wed, 31 May 2023 13:26:20 +0000	[thread overview]
Message-ID: <20230531132620.198471-1-weiyuanx.li@intel.com> (raw)

Support eal_param -a to avoid running containers conflict.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 49d82545..bde556ea 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -756,7 +756,9 @@ class TestKernelpfIavf(TestCase):
         # start l3fwd-power
         l3fwd_app = self.dut.apps_name["l3fwd-power"]
 
-        cmd = l3fwd_app + " -l 6,7 -n 4 -- -p 0x3 --config " + "'(0,0,6),(1,0,7)'"
+        vf_pci_id_0 = self.dut.ports_info[self.used_dut_port_0]["sriov_vfs_pci"][0]
+        vf_pci_id_1 = self.dut.ports_info[self.used_dut_port_1]["sriov_vfs_pci"][0]
+        cmd = l3fwd_app + f" -l 6,7 -n 4 -a {vf_pci_id_0} -a {vf_pci_id_1} -- -p 0x3 --config " + "'(0,0,6),(1,0,7)'"
         self.dut.send_expect(cmd, "POWER", timeout=40)
         out = self.dut.get_session_output()
         print(out)
-- 
2.34.1


             reply	other threads:[~2023-05-31  5:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31 13:26 Weiyuan Li [this message]
2023-06-07  7:57 ` lijuan.tu

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=20230531132620.198471-1-weiyuanx.li@intel.com \
    --to=weiyuanx.li@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).