test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1 1/2] tests/ice_iavf_fdir: support eal_param -a to avoid running containers conflict
@ 2023-06-09 10:10 Hongbo Li
  2023-06-09 10:10 ` [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers Hongbo Li
  0 siblings, 1 reply; 3+ messages in thread
From: Hongbo Li @ 2023-06-09 10:10 UTC (permalink / raw)
  To: dts; +Cc: Hongbo Li

support eal_param -a to avoid running containers conflict

Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---
 tests/TestSuite_ice_iavf_fdir.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py
index ba231915..a24355f5 100644
--- a/tests/TestSuite_ice_iavf_fdir.py
+++ b/tests/TestSuite_ice_iavf_fdir.py
@@ -8701,6 +8701,9 @@ class TestICEIAVFFdir(TestCase):
                     vf_port.bind_driver(self.vf_driver)
                 for vf_port in self.sriov_vfs_pf1:
                     vf_port.bind_driver(self.vf_driver)
+            self.eal_param_a = ""
+            for sriov_vf in self.sriov_vfs_pf0:
+                self.eal_param_a += " -a {}".format(sriov_vf.pci)
 
         except Exception as e:
             self.destroy_env()
@@ -10486,7 +10489,9 @@ class TestICEIAVFFdir(TestCase):
             "ip link set {} vf {} mac 00:11:22:33:44:55".format(self.pf0_intf, nex_cnt),
             "#",
         )
-        command = self.path + " -c f -n 6 -- -i --rxq=16 --txq=16"
+        command = self.path + " -c f -n 6 %s -- -i --rxq=16 --txq=16" % (
+            self.eal_param_a
+        )
         self.dut.send_expect(command, "testpmd> ", 360)
         self.config_testpmd()
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers
  2023-06-09 10:10 [dts][PATCH V1 1/2] tests/ice_iavf_fdir: support eal_param -a to avoid running containers conflict Hongbo Li
@ 2023-06-09 10:10 ` Hongbo Li
  2023-06-14  2:13   ` lijuan.tu
  0 siblings, 1 reply; 3+ messages in thread
From: Hongbo Li @ 2023-06-09 10:10 UTC (permalink / raw)
  To: dts; +Cc: Hongbo Li

support eal_param -a to avoid running containers conflict

Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---
 tests/TestSuite_iavf_package_driver_error_handle.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_iavf_package_driver_error_handle.py b/tests/TestSuite_iavf_package_driver_error_handle.py
index a3e4e9a9..af6560e6 100644
--- a/tests/TestSuite_iavf_package_driver_error_handle.py
+++ b/tests/TestSuite_iavf_package_driver_error_handle.py
@@ -320,10 +320,14 @@ class Testiavf_package_and_driver_check(TestCase):
 
         for port in self.sriov_vfs_port:
             port.bind_driver("vfio-pci")
+        self.eal_param_a = ""
+        for sriov_vf in self.sriov_vfs_port:
+            self.eal_param_a += " -a {}".format(sriov_vf.pci)
 
-        testpmdcmd = (
-            self.dut.apps_name["test-pmd"]
-            + "-l 6-9 -n 4  --file-prefix=vf -- -i --rxq=4 --txq=4  --nb-cores=2"
+        testpmdcmd = self.dut.apps_name[
+            "test-pmd"
+        ] + "-l 6-9 -n 4 %s --file-prefix=vf -- -i --rxq=4 --txq=4  --nb-cores=2" % (
+            self.eal_param_a
         )
         self.dut_testpmd.execute_cmd(testpmdcmd)
         out = self.dut_testpmd.execute_cmd(
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers
  2023-06-09 10:10 ` [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers Hongbo Li
@ 2023-06-14  2:13   ` lijuan.tu
  0 siblings, 0 replies; 3+ messages in thread
From: lijuan.tu @ 2023-06-14  2:13 UTC (permalink / raw)
  To: dts, Hongbo Li; +Cc: Hongbo Li

On Fri,  9 Jun 2023 18:10:20 +0800, Hongbo Li <hongbox.li@intel.com> wrote:
> support eal_param -a to avoid running containers conflict
> 
> Signed-off-by: Hongbo Li <hongbox.li@intel.com>


Series applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-14  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-09 10:10 [dts][PATCH V1 1/2] tests/ice_iavf_fdir: support eal_param -a to avoid running containers conflict Hongbo Li
2023-06-09 10:10 ` [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers Hongbo Li
2023-06-14  2:13   ` lijuan.tu

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).