test suite reviews and discussions
 help / color / Atom feed
* Re: [dts] [PATCH V1] tests/veb_switch use different cores for 2 vfs
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Sun, QinX @ 2020-11-09  7:07 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 311 bytes --]

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

[-- Attachment #2: TestVEBSwitching.log --]
[-- Type: application/octet-stream, Size: 6474 bytes --]

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

* [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

* Re: [dts] [PATCH V1] tests/veb_switch use different cores for 2 vfs
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-11-11  6:30 UTC (permalink / raw)
  To: Sun, QinX, dts; +Cc: Sun, QinX

> When several testpmd are started at the same time, different cores should
> be used
> 
> Signed-off-by: sunqin <qinx.sun@intel.com>

Applied

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

end of thread, back to index

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

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox