test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector
  2020-11-12  7:25 [dts] [PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector Zhou Jun
@ 2020-11-12  7:23 ` Zhou, JunX W
  2020-11-18  3:20 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhou, JunX W @ 2020-11-12  7:23 UTC (permalink / raw)
  To: Zhou, JunX W, dts

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

Tested-by: Zhou, Jun <junx.w.zhou@intel.com>

-----Original Message-----
From: Zhou Jun [mailto:junx.w.zhou@intel.com] 
Sent: Thursday, November 12, 2020 3:25 PM
To: dts@dpdk.org
Cc: Zhou, JunX W <junx.w.zhou@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector

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

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

* [dts] [PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector
@ 2020-11-12  7:25 Zhou Jun
  2020-11-12  7:23 ` Zhou, JunX W
  2020-11-18  3:20 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Zhou Jun @ 2020-11-12  7:25 UTC (permalink / raw)
  To: dts; +Cc: Zhou Jun

adapt start testpmd with novector

Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_qinq_filter.py | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.py
index 91a2d7a5..2d4defde 100644
--- a/tests/TestSuite_qinq_filter.py
+++ b/tests/TestSuite_qinq_filter.py
@@ -72,8 +72,6 @@ class TestQinqFilter(TestCase):
         
         cores = self.dut.get_core_list('1S/2C/1T')
         self.coreMask = utils.create_mask(cores)
-        self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'n'})
-        self.dut.build_install_dpdk(self.target)
         self.path=self.dut.apps_name['test-pmd']
         
     def vlan_send_packet(self, vlans):
@@ -143,9 +141,10 @@ class TestQinqFilter(TestCase):
         Enable receipt of dual VLAN packets
         """
         
-        self.dut.send_expect(r'%s -c %s -n 4 -- -i \
+        eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T')
+        self.dut.send_expect(r'%s %s -- -i \
                                --portmask=%s --port-topology=loop \
-                               --rxq=4 --txq=4  --disable-rss' % (self.path, self.coreMask, self.portMask),
+                               --rxq=4 --txq=4  --disable-rss' % (self.path, eal_para, self.portMask),
                                "testpmd> ", 30)
         self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("vlan set strip on %s" % dutRxPortId, "testpmd> ")
@@ -165,9 +164,10 @@ class TestQinqFilter(TestCase):
         """
         qinq filter packet received by assign PF queues
         """
-        self.dut.send_expect(r'%s -c %s -n 4 -- -i \
+        eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T')
+        self.dut.send_expect(r'%s %s -- -i \
                                --portmask=%s --port-topology=loop \
-                               --rxq=4 --txq=4  --disable-rss' % (self.path, self.coreMask, self.portMask),
+                               --rxq=4 --txq=4  --disable-rss' % (self.path, eal_para, self.portMask),
                                "testpmd> ", 30)
         self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("set fwd rxonly", "testpmd> ")
@@ -201,10 +201,10 @@ class TestQinqFilter(TestCase):
         vf0_session = self.dut.new_session('qinq_filter')
         vf1_session = self.dut.new_session('qinq_filter')
 
-        self.dut.send_expect(r'%s -c %s -n 4  \
-                               --socket-mem=1024,1024 --file-prefix=pf -w %s -- -i --port-topology=loop \
+        eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T', prefix='pf', ports=[self.dut.ports_info[dutRxPortId]['pci']])
+        self.dut.send_expect(r'%s %s -- -i --port-topology=loop \
                                --rxq=4 --txq=4  --disable-rss' 
-                               % (self.path, self.coreMask, self.dut.ports_info[dutRxPortId]['pci']),
+                               % (self.path, eal_para),
                                "testpmd> ", 30)
         self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("set fwd rxonly", "testpmd> ")
@@ -270,10 +270,10 @@ class TestQinqFilter(TestCase):
         vf0_session = self.dut.new_session('qinq_filter')
         vf1_session = self.dut.new_session('qinq_filter')
 
-        self.dut.send_expect(r'%s -c %s -n 4 \
-                               --socket-mem=1024,1024 --file-prefix=pf -w %s -- -i --port-topology=loop \
+        eal_para = self.dut.create_eal_parameters(cores='1S/2C/1T', prefix='pf', ports=[self.dut.ports_info[dutRxPortId]['pci']])
+        self.dut.send_expect(r'%s %s -- -i --port-topology=loop \
                                --rxq=4 --txq=4  --disable-rss' 
-                               % (self.path, self.coreMask, self.dut.ports_info[dutRxPortId]['pci']),
+                               % (self.path, eal_para),
                                "testpmd> ", 30)
         self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("set fwd rxonly", "testpmd> ")
@@ -348,5 +348,4 @@ class TestQinqFilter(TestCase):
         """
         Run after each test suite.
         """
-        self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'y'})
-        self.dut.build_install_dpdk(self.target)
+        pass
-- 
2.17.1


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

* Re: [dts] [PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector
  2020-11-12  7:25 [dts] [PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector Zhou Jun
  2020-11-12  7:23 ` Zhou, JunX W
@ 2020-11-18  3:20 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-11-18  3:20 UTC (permalink / raw)
  To: Zhou, JunX W, dts; +Cc: Zhou, JunX W

> adapt start testpmd with novector
> 
> Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>

Applied

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

end of thread, other threads:[~2020-11-18  3:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12  7:25 [dts] [PATCH V1] tests/TestSuite_qinq_filter: adapt start testpmd with novector Zhou Jun
2020-11-12  7:23 ` Zhou, JunX W
2020-11-18  3:20 ` 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).