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 0425BA058A; Wed, 25 Mar 2020 09:20:58 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D51B32C15; Wed, 25 Mar 2020 09:20:58 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6149A2BAE for ; Wed, 25 Mar 2020 09:20:56 +0100 (CET) IronPort-SDR: Jahw9u35guOjUc5RmuIcUmwzddU4ZBirYBt3WDqCtodwTrlaX/j6+pNVeg18SGoAuCIqzqJ0kh LCNz4vYnRoxg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:20:55 -0700 IronPort-SDR: 3OmNvpxnZLXLD8PAzzGRyVIItjBnFEcQr8x7+wuzDBdXeF2TSpkzflWBbF8plGFW2RrxPaPuA9 qHCgHM2g1+Ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="250344567" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 25 Mar 2020 01:20:54 -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; Wed, 25 Mar 2020 01:20:54 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) 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; Wed, 25 Mar 2020 16:20:52 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Wed, 25 Mar 2020 16:20:52 +0800 From: "Wang, Yinan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 04/11]pvp_virtio_user_4k_pages: update script according to testplan's update Thread-Index: AQHWAn3tY9WukREsskyIeIW76eizP6hY91hQ Date: Wed, 25 Mar 2020 08:20:52 +0000 Message-ID: <79d21e99cec24d649cf0f1e9beabf067@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-4-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-4-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 04/11]pvp_virtio_user_4k_pages: 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" Acked-by: Wang, Yinan > -----Original Message----- > From: dts On Behalf Of Xiao Qimai > Sent: 2020=1B$BG/=1B(B3=1B$B7n=1B(B25=1B$BF|=1B(B 16:11 > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1 04/11]pvp_virtio_user_4k_pages: update script > according to testplan's update > > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_pvp_virtio_user_4k_pages.py | 28 > ++++++++++++++++++++-------- > 1 file changed, 20 insertions(+), 8 deletions(-) > > diff --git a/tests/TestSuite_pvp_virtio_user_4k_pages.py > b/tests/TestSuite_pvp_virtio_user_4k_pages.py > index 5e6f657..532b6c1 100644 > --- a/tests/TestSuite_pvp_virtio_user_4k_pages.py > +++ b/tests/TestSuite_pvp_virtio_user_4k_pages.py > @@ -130,21 +130,21 @@ class TestPvpVirtioUser4kPages(TestCase): > Start testpmd on vhost > """ > testcmd =3D self.dut.target + "/app/testpmd " > - vdev =3D " -m 1024 --no-huge --vdev > 'net_vhost0,iface=3Dvhost-net,queues=3D1'" > + vdev =3D 'net_vhost0,iface=3Dvhost-net,queues=3D1' > para =3D " -- -i --no-numa --socket-num=3D%d" % self.ports_socke= t > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost_user, prefix= =3D'vhost', > ports=3D[self.pci_info]) > - command_line_client =3D testcmd + eal_params + vdev + para > + eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_vhost_user, prefix= =3D'vhost', > ports=3D[self.pci_info], vdevs=3D[vdev]) > + command_line_client =3D testcmd + eal_params + ' -m 1024 > + --no-huge' + para > self.vhost_user.send_expect(command_line_client, "testpmd> ", 12= 0) > self.vhost_user.send_expect("start", "testpmd> ", 120) > > - 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 " --no-huge -m 1024 > --vdev=3Dnet_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhost-net,queu= es=3D1 -- > -i" > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio_user, > 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./vhost-net,queues=3D1" = if not > packed else > "net_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhost-net,packed_vq=3D= 1,queu > es=3D1" > + eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio_user, > prefix=3D'virtio-user', ports=3D[self.pci_info], vdevs=3D[vdev]) > + command_line_user =3D testcmd + eal_params + ' --no-huge -m 1024= -- > -i' > self.virtio_user.send_expect(command_line_user, "testpmd> ", 120= ) > self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120) > self.virtio_user.send_expect("start", "testpmd> ", 120) @@ -168,= 7 > +168,7 @@ class TestPvpVirtioUser4kPages(TestCase): > self.dut.close_session(self.vhost_user) > self.dut.close_session(self.virtio_user) > > - def test_perf_pvp_virtio_user_with_4K_pages(self): > + def test_perf_pvp_virtio_user_split_ring_with_4K_pages(self): > """ > Basic test for virtio-user 4K pages > """ > @@ -179,6 +179,18 @@ class TestPvpVirtioUser4kPages(TestCase): > self.result_table_print() > self.close_all_apps() > > + def test_perf_pvp_virtio_user_packed_ring_with_4K_pages(self): > + """ > + Basic test for virtio-user 4K pages > + """ > + self.start_testpmd_as_vhost() > + self.prepare_tmpfs_for_4k() > + 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