From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Zhang, XiX" <xix.zhang@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Zhang, XiX" <xix.zhang@intel.com>
Subject: Re: [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides
Date: Fri, 24 Jul 2020 02:27:27 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC83FD2@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1594975747-18025-1-git-send-email-xix.zhang@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of xizhan4x
> Sent: 2020年7月17日 16:49
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using
> the cores from the socket on which the nic resides
>
> Start ethTool using the cores from the socket on which the nic resides
>
> Signed-off-by: xizhan4x <xix.zhang@intel.com>
> ---
> tests/TestSuite_userspace_ethtool.py | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_userspace_ethtool.py
> b/tests/TestSuite_userspace_ethtool.py
> index 9bb7d55..2b8fa17 100644
> --- a/tests/TestSuite_userspace_ethtool.py
> +++ b/tests/TestSuite_userspace_ethtool.py
> @@ -63,7 +63,13 @@ class TestUserspaceEthtool(TestCase,
> IxiaPacketGenerator):
> self.verify("No such file" not in out, "compilation error 2")
>
> path = "./examples/ethtool/ethtool-app/%s/ethtool" % self.target
> - self.cmd = "%s -c f -n %d" % (path, self.dut.get_memory_channels())
> + used_dut_port_pci = self.dut.ports_info[self.ports[0]]['port'].pci
> + out = self.dut.send_expect("cat /sys/bus/pci/devices/%s/numa_node " %
> used_dut_port_pci, "# ")
> + cpu_cores = self.dut.send_expect('lscpu |grep "NUMA node%s CPU(s):"' %
> out, "# ")
> + core = re.findall(r"\d+-(\d+)", cpu_cores)[0]
> + core = int(core)
> + cores = "%d,%d,%d,%d" % (core - 1, core - 2, core - 3, core - 4)
> + self.cmd = "%s -l %s -n %d" % (path, cores,
> self.dut.get_memory_channels())
>
> # pause frame basic configuration
> self.pause_time = 65535
> --
> 1.8.3.1
prev parent reply other threads:[~2020-07-24 2:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 8:49 xizhan4x
2020-07-17 8:49 ` Zhang, XiX
2020-07-24 2:27 ` 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=8CE3E05A3F976642AAB0F4675D0AD20E0BC83FD2@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=xix.zhang@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).