From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A61A9A056A; Fri, 6 Mar 2020 08:49:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C4061BFBB; Fri, 6 Mar 2020 08:49:56 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 40BDCFEB for ; Fri, 6 Mar 2020 08:49:55 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2020 23:49:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,521,1574150400"; d="scan'208";a="275445398" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.179.33]) by fmsmga002.fm.intel.com with ESMTP; 05 Mar 2020 23:49:53 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 6 Mar 2020 15:45:06 +0800 Message-Id: <1583480706-17321-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]tests/TestSuite_unit_tests_pmd_perf: get corelist depends on numa node id X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" *. get corelist depends on numa node id Signed-off-by: Xiao Qimai --- 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