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 538A2A0554; Tue, 18 Feb 2020 06:12:31 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44A701D8FF; Tue, 18 Feb 2020 06:12:31 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 9D8131D8FF for ; Tue, 18 Feb 2020 06:12:29 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 21:12:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,455,1574150400"; d="scan'208";a="224024757" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 17 Feb 2020 21:12:26 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 17 Feb 2020 21:12:25 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 17 Feb 2020 21:12:25 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by shsmsx102.ccr.corp.intel.com ([169.254.2.126]) with mapi id 14.03.0439.000; Tue, 18 Feb 2020 13:12:23 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 01/11]tests/TestSuite_dpdk_gro_lib: optimize testpmd eal parameters Thread-Index: AQHV5YtZRLobCjihsk+g6b0Gi3qUgaggaNYg Date: Tue, 18 Feb 2020 05:12:22 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCB32D@SHSMSX101.ccr.corp.intel.com> References: <1581941147-230859-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1581941147-230859-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 V1 01/11]tests/TestSuite_dpdk_gro_lib: optimize testpmd eal parameters 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 the series, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Monday, February 17, 2020 8:06 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 01/11]tests/TestSuite_dpdk_gro_lib: optimize > testpmd eal parameters >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_dpdk_gro_lib.py | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) >=20 > diff --git a/tests/TestSuite_dpdk_gro_lib.py > b/tests/TestSuite_dpdk_gro_lib.py index f9b7d76..2f89207 100644 > --- a/tests/TestSuite_dpdk_gro_lib.py > +++ b/tests/TestSuite_dpdk_gro_lib.py > @@ -81,9 +81,8 @@ class TestDPDKGROLib(TestCase): > self.verify(self.dut.number_of_cores >=3D 3, > "There has not enought cores to test this case %s" % > self.suite_name) > cores_list =3D self.dut.get_core_list("1S/3C/1T", socket=3Dself.= socket) > - vhost_list =3D cores_list[0:2] > + self.vhost_list =3D cores_list[0:2] > self.qemu_cpupin =3D cores_list[2:3][0] > - self.core_mask_vhost =3D utils.create_mask(vhost_list) >=20 > # Set the params for VM > self.virtio_ip1 =3D "1.1.1.2" > @@ -112,11 +111,8 @@ class TestDPDKGROLib(TestCase): > # mode 2 : tcp traffic heavy mode > # mode 3 : vxlan traffic light mode > # mode 4 : tcp traffic flush 4 > - self.testcmd =3D self.target + "/app/testpmd -c %s -n %d --socke= t-mem %s > --legacy-mem" \ > - + " --vdev 'net_vhost0,iface=3D%s/vhost-net,queues=3D1' -- -= i --enable- > hw-vlan-strip --tx-offloads=3D0x00" \ > - + " --txd=3D1024 --rxd=3D1024" > - self.testcmd_start =3D self.testcmd % ( > - self.core_mask_vhost, self.memory_channel, self.socket_mem, > self.base_dir) > + eal_param =3D self.dut.create_eal_parameters(cores=3Dself.vhost_= list, > vdevs=3D['net_vhost0,iface=3D%s/vhost-net,queues=3D1' % self.base_dir]) > + self.testcmd_start =3D self.target + "/app/testpmd " + eal_param= + " -- -i - > -enable-hw-vlan-strip --tx-offloads=3D0x00 --txd=3D1024 --rxd=3D1024" > self.vhost_user =3D self.dut.new_session(suite=3D"user") > self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120= ) > self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120) > -- > 1.8.3.1