* [dts] [PATCH V1]tests/TestSuite_unit_tests_pmd_perf: get corelist depends on numa node id
@ 2020-03-06 7:45 Xiao Qimai
0 siblings, 0 replies; only message in thread
From: Xiao Qimai @ 2020-03-06 7:45 UTC (permalink / raw)
To: dts; +Cc: Xiao Qimai
*. get corelist depends on numa node id
Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_unit_tests_pmd_perf.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_unit_tests_pmd_perf.py b/tests/TestSuite_unit_tests_pmd_perf.py
index 2c932bb..a06e812 100644
--- a/tests/TestSuite_unit_tests_pmd_perf.py
+++ b/tests/TestSuite_unit_tests_pmd_perf.py
@@ -78,6 +78,8 @@ class TestUnitTestsPmdPerf(TestCase):
self.dut.build_install_dpdk(self.target)
out = self.dut.build_dpdk_apps('./app/test/')
self.verify('make: Leaving directory' in out, "Compilation failed")
+ socket_id = self.dut.ports_info[0]['port'].socket
+ self.cores = self.dut.get_core_list(config='1S/4C/1T', socket=socket_id)
def set_up(self):
"""
@@ -90,8 +92,7 @@ class TestUnitTestsPmdPerf(TestCase):
Run pmd stream control mode burst test case.
"""
- socket_id = self.dut.ports_info[0]['port'].socket
- eal_params = self.dut.create_eal_parameters(socket=socket_id)
+ eal_params = self.dut.create_eal_parameters(cores=self.cores)
self.dut.send_expect("./app/test/test %s" % (eal_params), "R.*T.*E.*>.*>", 60)
for mode in self.burst_ctlmodes:
self.dut.send_expect("set_rxtx_sc %s" % mode, "RTE>>", 10)
@@ -112,8 +113,7 @@ class TestUnitTestsPmdPerf(TestCase):
self.table_header = ['Mode']
self.table_header += self.anchors
self.result_table_create(self.table_header)
- socket_id = self.dut.ports_info[0]['port'].socket
- eal_params = self.dut.create_eal_parameters(socket=socket_id)
+ eal_params = self.dut.create_eal_parameters(cores=self.cores)
print((self.table_header))
for mode in self.rxtx_modes:
--
1.8.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-06 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 7:45 [dts] [PATCH V1]tests/TestSuite_unit_tests_pmd_perf: get corelist depends on numa node id Xiao Qimai
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).