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 7CB8BA0562; Tue, 31 Mar 2020 05:00:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 759551C0AE; Tue, 31 Mar 2020 05:00:32 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 4E84D2B8B for ; Tue, 31 Mar 2020 05:00:31 +0200 (CEST) IronPort-SDR: 7uka+HUlnKNyobKNSBSf7AWxpulog8r807r+oGaU9ewJBbFKmvKBU6cGu6kW0m4bbpGeulL71J I+4+IdSPeC5w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 20:00:30 -0700 IronPort-SDR: pOw9l88Jih62NXfW5A7jKJrY2jKIt71OqDqEPajhgIU+b7ouAhCBiICC6u44PHDnEitlU8Bvv/ qZF6kJU4JBIw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="252090168" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 30 Mar 2020 20:00:30 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:00:29 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 31 Mar 2020 11:00:27 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Tue, 31 Mar 2020 11:00:27 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 03/11]pvp_virtio_user_2M_hugepages: update script according to testplan's update Thread-Index: AQHWAn3bJVwEsQ1fDE2XXuL5ozSRO6hiDBAw Date: Tue, 31 Mar 2020 03:00:27 +0000 Message-ID: References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-3-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-3-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 03/11]pvp_virtio_user_2M_hugepages: update script according to testplan's update 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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Wednesday, March 25, 2020 4:11 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V1 03/11]pvp_virtio_user_2M_hugepages: update > script according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_pvp_virtio_user_2M_hugepages.py | 22 > ++++++++++++++++------ > 1 file changed, 16 insertions(+), 6 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > b/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > index 9d2eaed..ac7187c 100644 > --- a/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > +++ b/tests/TestSuite_pvp_virtio_user_2M_hugepages.py > @@ -128,20 +128,20 @@ class TestPVPVirtioWith2Mhuge(TestCase): > start testpmd on vhost > """ > testcmd =3D self.dut.target + "/app/testpmd " > - vdev =3D [r"'net_vhost0,iface=3Dvhost-net,queues=3D1'"] > + vdev =3D ["net_vhost0,iface=3Dvhost-net,queues=3D1"] > eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost_user, > prefix=3D'vhost', ports=3D[self.pci_info], vdevs=3Dvdev) > command_line_client =3D testcmd + eal_params + " -- -i" > self.vhost_user.send_expect(command_line_client, "testpmd> ", 12= 0) > self.vhost_user.send_expect("start", "testpmd> ", 120) >=20 > - def start_testpmd_as_virtio(self): > + def start_testpmd_as_virtio(self, packed=3DFalse): > """ > start testpmd on virtio > """ > testcmd =3D self.dut.target + "/app/testpmd " > - vdev =3D " --single-file-segments -- > vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhost-net,queues= =3D1 -- > -i" > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio_user, > no_pci=3DTrue, prefix=3D'virtio-user', ports=3D[self.pci_info]) > - command_line_user =3D testcmd + eal_params + vdev > + vdev =3D 'net_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhos= t- > net,queues=3D1' if not packed else > 'net_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhost- > net,queues=3D1,packed_vq=3D1' > + eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio_user, > no_pci=3DTrue, prefix=3D'virtio-user', ports=3D[self.pci_info], vdevs=3D[= vdev]) > + command_line_user =3D testcmd + eal_params + ' --single-file-seg= ments - > - -i' > self.virtio_user.send_expect(command_line_user, "testpmd> ", 120= ) > self.virtio_user.send_expect("start", "testpmd> ", 120) >=20 > @@ -154,7 +154,7 @@ class TestPVPVirtioWith2Mhuge(TestCase): > self.dut.close_session(self.vhost_user) > self.dut.close_session(self.virtio_user) >=20 > - def test_perf_pvp_virtio_user_with_2M_hugepages(self): > + def test_perf_pvp_virtio_user_split_ring_2M_hugepages(self): > """ > Basic test for virtio-user 2M hugepage > """ > @@ -164,6 +164,16 @@ class TestPVPVirtioWith2Mhuge(TestCase): > self.result_table_print() > self.close_all_apps() >=20 > + def test_perf_pvp_virtio_user_packed_ring_2M_hugepages(self): > + """ > + Basic test for virtio-user 2M hugepage > + """ > + self.start_testpmd_as_vhost() > + self.start_testpmd_as_virtio(packed=3DTrue) > + self.send_and_verify() > + self.result_table_print() > + self.close_all_apps() > + > def tear_down(self): > """ > Run after each test case. > -- > 1.8.3.1