From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Xiao, QimaiX" <qimaix.xiao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xiao, QimaiX" <qimaix.xiao@intel.com>
Subject: Re: [dts] [PATCH V1] add cpu_id for single cpu on socket 0
Date: Wed, 3 Jul 2019 05:52:29 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAD9277@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1562032172-122236-1-git-send-email-qimaix.xiao@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai
> Sent: Tuesday, July 2, 2019 9:50 AM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V1] add cpu_id for single cpu on socket 0
>
> add cpu_id for env with single cpu on socket 0
>
> Signed-off-by: xiao,qimai <qimaix.xiao@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 88dcc7e..a649a44 100644
> --- a/tests/TestSuite_flow_classify_softnic.py
> +++ b/tests/TestSuite_flow_classify_softnic.py
> @@ -82,7 +82,10 @@ class TestFlowClassifySoftnic(TestCase):
> """
> self.set_ports(filename, port_num)
> TESTPMD = "./%s/app/testpmd" % self.target
> - VDEV = "--vdev
> 'net_softnic0,firmware=./drivers/net/softnic/flow_classify_softnic/%s,cpu_id
> =1,conn_port=8086'" % filename
> + 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
> + 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)
> --
> 2.17.1
prev parent reply other threads:[~2019-07-03 5:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 1:49 xiao,qimai
2019-07-02 2:11 ` Yao, BingX Y
2019-07-03 5:52 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0BAD9277@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=qimaix.xiao@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).