diff mbox series

[V1] tests/veb_switch use different cores for 2 vfs

Message ID 20201109152952.17279-1-qinx.sun@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/veb_switch use different cores for 2 vfs | expand

Commit Message

Sun, QinX Nov. 9, 2020, 3:29 p.m. UTC
When several testpmd are started at the same time, different cores should be used

Signed-off-by: sunqin <qinx.sun@intel.com>
---
 tests/TestSuite_veb_switch.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Comments

Sun, QinX Nov. 9, 2020, 7:07 a.m. UTC | #1
Tested-by: Sun, QinX <qinx.sun@intel.com>
 
Regards,
Sun Qin

> -----Original Message-----
> From: sunqin <qinx.sun@intel.com>
> Sent: Monday, November 9, 2020 11:30 PM
> To: dts@dpdk.org
> Cc: Sun, QinX <qinx.sun@intel.com>
> Subject: [dts] [PATCH V1] tests/veb_switch use different cores for 2 vfs
Tu, Lijuan Nov. 11, 2020, 6:30 a.m. UTC | #2
> When several testpmd are started at the same time, different cores should
> be used
> 
> Signed-off-by: sunqin <qinx.sun@intel.com>

Applied
diff mbox series

Patch

diff --git a/tests/TestSuite_veb_switch.py b/tests/TestSuite_veb_switch.py
index f51a8d3..8189478 100644
--- a/tests/TestSuite_veb_switch.py
+++ b/tests/TestSuite_veb_switch.py
@@ -239,11 +239,13 @@  class TestVEBSwitching(TestCase):
         the packets. Check Inter VF-VF MAC switch.
         """
         self.setup_env(driver='default')
-        self.pmdout.start_testpmd("Default", prefix="test1", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac)
+        self.dut.init_reserved_core()
+        cores_vf1 = self.dut.get_reserved_core('2C',0)
+        self.pmdout.start_testpmd(cores_vf1, prefix="test1", ports=[self.sriov_vfs_port[0].pci], param="--eth-peer=0,%s" % self.vf1_mac)
         self.dut.send_expect("set fwd txonly", "testpmd>")
         self.dut.send_expect("set promisc all off", "testpmd>")
-
-        self.pmdout_2.start_testpmd("Default", prefix="test2", ports=[self.sriov_vfs_port[1].pci])
+        cores_vf2 = self.dut.get_reserved_core('2C',0)
+        self.pmdout_2.start_testpmd(cores_vf2, prefix="test2", ports=[self.sriov_vfs_port[1].pci])
         self.session_secondary.send_expect("set fwd rxonly", "testpmd>")
         self.session_secondary.send_expect("set promisc all off", "testpmd>")
         self.session_secondary.send_expect("start", "testpmd>", 5)