[V1,1/2] tests/ice_iavf_fdir: support eal_param -a to avoid running containers conflict

Message ID 20230609101020.23747-1-hongbox.li@intel.com (mailing list archive)
State Accepted
Headers
Series [V1,1/2] tests/ice_iavf_fdir: support eal_param -a to avoid running containers conflict |

Commit Message

Li, HongboX June 9, 2023, 10:10 a.m. UTC
  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(-)
  

Patch

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