From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Ma, LihongX" <lihongx.ma@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Ma, LihongX" <lihongx.ma@intel.com>
Subject: Re: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info according to port num when start testpmd
Date: Tue, 18 Feb 2020 07:11:43 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCB5A4@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1582009492-46150-1-git-send-email-lihongx.ma@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong
> Sent: Tuesday, February 18, 2020 3:05 PM
> To: dts@dpdk.org
> Cc: Ma, LihongX <lihongx.ma@intel.com>
> Subject: [dts] [PATCH V1] tests/flow_classify_softnic: add ports info
> according to port num when start testpmd
>
> 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 prev parent reply other threads:[~2020-02-18 7:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-18 7:04 lihong
2020-02-18 7:11 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0BBCB5A4@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=lihongx.ma@intel.com \
/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).