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 CC9F6A056D; Tue, 3 Mar 2020 06:24:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BC2AA1BFF9; Tue, 3 Mar 2020 06:24:24 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1EB383B5 for ; Tue, 3 Mar 2020 06:24:22 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 21:24:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="412617604" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga005.jf.intel.com with ESMTP; 02 Mar 2020 21:24:21 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:24:21 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 21:24:20 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.155]) with mapi id 14.03.0439.000; Tue, 3 Mar 2020 13:24:19 +0800 From: "Tu, Lijuan" To: "Zhu, ShuaiX" , "dts@dpdk.org" CC: "Wang, Yinan" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/vm2vm_virtio_net_perf:add create_eal_parameters function. Thread-Index: AQHV673JIc30XwF990K7kLDlJryRlKg2YHkg Date: Tue, 3 Mar 2020 05:24:18 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBE8E25@SHSMSX101.ccr.corp.intel.com> References: <1582623151-18473-1-git-send-email-shuaix.zhu@intel.com> <1582623151-18473-4-git-send-email-shuaix.zhu@intel.com> In-Reply-To: <1582623151-18473-4-git-send-email-shuaix.zhu@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] tests/vm2vm_virtio_net_perf:add create_eal_parameters function. 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 zhu,shuai > Sent: Tuesday, February 25, 2020 5:32 PM > To: dts@dpdk.org > Cc: Wang, Yinan ; Zhu, ShuaiX > > Subject: [dts] [PATCH V1] tests/vm2vm_virtio_net_perf:add > create_eal_parameters function. >=20 >=20 >=20 > Signed-off-by: zhu,shuai > --- > tests/TestSuite_vm2vm_virtio_net_perf.py | 17 ++++++----------- > 1 file changed, 6 insertions(+), 11 deletions(-) >=20 > diff --git a/tests/TestSuite_vm2vm_virtio_net_perf.py > b/tests/TestSuite_vm2vm_virtio_net_perf.py > index 13640a3..cc48905 100644 > --- a/tests/TestSuite_vm2vm_virtio_net_perf.py > +++ b/tests/TestSuite_vm2vm_virtio_net_perf.py > @@ -84,17 +84,12 @@ class TestVM2VMVirtioNetPerf(TestCase): > zerocopy_arg =3D ",dequeue-zero-copy=3D1" > else: > zerocopy_arg =3D "" > - eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= _list, > - prefix=3D'vhost', no_pci=3DTrue) > - self.command_line =3D self.dut.target + "/app/testpmd %s " + \ > - "--socket-mem %s --legacy-mem " + \ > - "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1%s' " + = \ > - "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1%s' " + = \ > - "-- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > - > - self.command_line =3D self.command_line % ( > - eal_params, self.socket_mem, self.base_dir, > - zerocopy_arg, self.base_dir, zerocopy_arg) > + testcmd =3D self.dut.target + "/app/testpmd " > + vdev1 =3D "--vdev 'net_vhost0,iface=3D%s/vhost-net0,queues=3D1%s= ' " % > (self.base_dir, zerocopy_arg) > + vdev2 =3D "--vdev 'net_vhost1,iface=3D%s/vhost-net1,queues=3D1%s= ' " % > (self.base_dir, zerocopy_arg) > + eal_params =3D self.dut.create_eal_parameters(cores=3Dself.cores= _list, > prefix=3D'vhost', no_pci=3DTrue) > + para =3D " -- -i --nb-cores=3D1 --txd=3D1024 --rxd=3D1024" > + self.command_line =3D testcmd + eal_params + vdev1 + vdev2 + par= a > self.pmd_vhost.execute_cmd(self.command_line, timeout=3D30) > self.pmd_vhost.execute_cmd('start', timeout=3D30) >=20 > -- > 2.17.2