test suite reviews and discussions
 help / color / Atom feed
* Re: [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides
  2020-07-17  8:49 [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides xizhan4x
@ 2020-07-17  8:49 ` Zhang, XiX
  2020-07-24  2:27 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, XiX @ 2020-07-17  8:49 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 1680 bytes --]

Tested-by: Zhang, XiX <xix.zhang@intel.com>

-----Original Message-----
From: Zhang, XiX 
Sent: Friday, July 17, 2020 4:49 PM
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


[-- Attachment #2: TestUserspaceEthtool.log --]
[-- Type: application/octet-stream, Size: 8292 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides
@ 2020-07-17  8:49 xizhan4x
  2020-07-17  8:49 ` Zhang, XiX
  2020-07-24  2:27 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: xizhan4x @ 2020-07-17  8:49 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides
  2020-07-17  8:49 [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides xizhan4x
  2020-07-17  8:49 ` Zhang, XiX
@ 2020-07-24  2:27 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-07-24  2:27 UTC (permalink / raw)
  To: Zhang, XiX, dts; +Cc: Zhang, XiX

Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of xizhan4x
> Sent: 2020^[$BG/^[(B7^[$B7n^[(B17^[$BF|^[(B 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17  8:49 [dts] [PATCH V1] tests/TestSuite_userspace_ethtool:Start ethTool using the cores from the socket on which the nic resides xizhan4x
2020-07-17  8:49 ` Zhang, XiX
2020-07-24  2:27 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox