test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts]  [PATCH V1] tests/veb_switch use different cores for 2 vfs
@ 2020-11-09 15:29 sunqin
  2020-11-09  7:07 ` Sun, QinX
  2020-11-11  6:30 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: sunqin @ 2020-11-09 15:29 UTC (permalink / raw)
  To: dts; +Cc: sunqin

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

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


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

end of thread, other threads:[~2020-11-11  6:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 15:29 [dts] [PATCH V1] tests/veb_switch use different cores for 2 vfs sunqin
2020-11-09  7:07 ` Sun, QinX
2020-11-11  6:30 ` Tu, Lijuan

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