test suite reviews and discussions
 help / color / mirror / Atom feed
From: "xu,hailin" <hailinx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,hailin" <hailinx.xu@intel.com>
Subject: [dts] [PATCH V1 2/2] tests/flow_classify_softnic:add create_eal_parameters
Date: Tue, 21 Jan 2020 11:02:01 +0800	[thread overview]
Message-ID: <1579575721-138854-2-git-send-email-hailinx.xu@intel.com> (raw)
In-Reply-To: <1579575721-138854-1-git-send-email-hailinx.xu@intel.com>

Signed-off-by: xu,hailin <hailinx.xu@intel.com>
---
 tests/TestSuite_flow_classify_softnic.py | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py
index a649a44..029e049 100644
--- a/tests/TestSuite_flow_classify_softnic.py
+++ b/tests/TestSuite_flow_classify_softnic.py
@@ -80,20 +80,18 @@ class TestFlowClassifySoftnic(TestCase):
         """
         Start testpmd.
         """
+        self.cores = self.dut.get_core_list("all")
         self.set_ports(filename, port_num)
         TESTPMD = "./%s/app/testpmd" % self.target
         cmd="cat /sys/bus/pci/devices/%s/numa_node"%self.dut_p0_pci
         numa_node = int(self.dut.send_expect(cmd, "# ", 60))
         cpu_id = numa_node if numa_node > 0 else 0
+        eal_params = self.dut.create_eal_parameters(cores=self.cores)
         VDEV = "--vdev 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id=%s,conn_port=8086'" % (filename,cpu_id)
         if port_num == 4:
-            DUT_PORTS = " -w {0} -w {1} -w {2} -w {3} "\
-                        .format(self.dut_p0_pci, self.dut_p1_pci, self.dut_p2_pci, self.dut_p3_pci)
-            cmd = "{0} -c 0x1f -s 0x10 -n 4 {1} {2} -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, DUT_PORTS, VDEV)
+            cmd = "{0} {1} {2} -s 0x4 -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, VDEV, eal_params)
         elif port_num == 2:
-            DUT_PORTS = " -w {0} -w {1} "\
-                        .format(self.dut_p0_pci, self.dut_p1_pci)
-            cmd = "{0} -c 0x7 -s 0x4 -n 4 {1} {2} -- -i --rxq=2 --txq=2 --disable-rss --portmask=0x4".format(TESTPMD, DUT_PORTS, VDEV)
+            cmd = "{0} {1} {2} -s 0x4 -- -i --rxq=2 --txq=2 --disable-rss --portmask=0x4".format(TESTPMD, VDEV, eal_params)
         else:
             raise Exception("The number of port is wrong!")
         self.dut.send_expect(cmd, "testpmd> ", 60)
@@ -162,7 +160,7 @@ class TestFlowClassifySoftnic(TestCase):
         # For the [pid]+ Done tcpdump... message after killing the process
         sleep(1)
         self.tester.send_expect('echo "Cleaning buffer"', '# ')
-        sleep(1)
+        sleep(3)
 
     def write_pcap_file(self, pcap_file, pkts):
         try:
-- 
1.8.3.1


  reply	other threads:[~2020-01-21  2:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-21  3:02 [dts] [PATCH V1 1/2] tests/flow_classify:add create_eal_parameters xu,hailin
2020-01-21  3:02 ` xu,hailin [this message]
2020-01-21  7:51 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1579575721-138854-2-git-send-email-hailinx.xu@intel.com \
    --to=hailinx.xu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).