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 2030EA0567; Fri, 13 Mar 2020 07:30:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 188351C028; Fri, 13 Mar 2020 07:30:07 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id CC9041C01E for ; Fri, 13 Mar 2020 07:30:04 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 23:30:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="235245850" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 12 Mar 2020 23:30:02 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:30:02 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:30:02 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by shsmsx102.ccr.corp.intel.com ([169.254.2.50]) with mapi id 14.03.0439.000; Fri, 13 Mar 2020 14:29:59 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V2]tests/TestSuite_unit_tests_pmd_perf: get corelist depends on numa node id Thread-Index: AQHV85TZ6cE3bsnyxkWc5sg6gpx+2qhGGnXg Date: Fri, 13 Mar 2020 06:29:59 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC72A@SHSMSX101.ccr.corp.intel.com> References: <1583484553-21817-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1583484553-21817-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Friday, March 6, 2020 4:49 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V2]tests/TestSuite_unit_tests_pmd_perf: get corelis= t > depends on numa node id >=20 > *. get corelist depends on numa node id >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_unit_tests_pmd_perf.py | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > 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 =3D self.dut.build_dpdk_apps('./app/test/') > self.verify('make: Leaving directory' in out, "Compilation faile= d") > + socket_id =3D self.dut.ports_info[0]['port'].socket > + self.cores =3D self.dut.get_core_list(config=3D'1S/4C/1T', > + socket=3Dsocket_id) >=20 > def set_up(self): > """ > @@ -90,8 +92,7 @@ class TestUnitTestsPmdPerf(TestCase): > Run pmd stream control mode burst test case. > """ >=20 > - socket_id =3D self.dut.ports_info[0]['port'].socket > - eal_params =3D self.dut.create_eal_parameters(socket=3Dsocket_id= ) > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > + ports=3D[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 =3D ['Mode'] > self.table_header +=3D self.anchors > self.result_table_create(self.table_header) > - socket_id =3D self.dut.ports_info[0]['port'].socket > - eal_params =3D self.dut.create_eal_parameters(socket=3Dsocket_id= ) > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= , > + ports=3D[0,1]) > print((self.table_header)) >=20 > for mode in self.rxtx_modes: > -- > 1.8.3.1