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 E4676A056A; Fri, 6 Mar 2020 09:54:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B04761BFDD; Fri, 6 Mar 2020 09:54:03 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 5464C2BA8 for ; Fri, 6 Mar 2020 09:54:02 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2020 00:54:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,518,1574150400"; d="scan'208";a="320479784" Received: from unknown (HELO dpdk-xiaoqimai-dut.sh.intel.com) ([10.240.179.33]) by orsmga001.jf.intel.com with ESMTP; 06 Mar 2020 00:53:59 -0800 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Fri, 6 Mar 2020 16:49:13 +0800 Message-Id: <1583484553-21817-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2]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..a01cf4e 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, ports=[0,1]) 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, ports=[0,1]) print((self.table_header)) for mode in self.rxtx_modes: -- 1.8.3.1