From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd
Date: Tue, 18 Feb 2020 15:04:52 +0800 [thread overview]
Message-ID: <1582009492-46150-1-git-send-email-lihongx.ma@intel.com> (raw)
Signed-off-by: lihong <lihongx.ma@intel.com>
---
tests/TestSuite_flow_classify_softnic.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_flow_classify_softnic.py b/tests/TestSuite_flow_classify_softnic.py
index f707d1e..f2320be 100644
--- a/tests/TestSuite_flow_classify_softnic.py
+++ b/tests/TestSuite_flow_classify_softnic.py
@@ -86,7 +86,10 @@ class TestFlowClassifySoftnic(TestCase):
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)
+ ports_info = []
+ for i in range(port_num):
+ ports_info.append(i)
+ eal_params = self.dut.create_eal_parameters(cores=self.cores, ports=ports_info)
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:
cmd = "{0} {1} {2} -s 0x10 -- -i --rxq=4 --txq=4 --disable-rss --portmask=0x10".format(TESTPMD, VDEV, eal_params)
--
2.17.2
next reply other threads:[~2020-02-18 6:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-18 7:04 lihong [this message]
2020-02-18 7:11 ` Tu, Lijuan
2020-02-18 7:11 ` Zeng, XiaoxiaoX
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=1582009492-46150-1-git-send-email-lihongx.ma@intel.com \
--to=lihongx.ma@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).