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 EA9A3A0562; Tue, 31 Mar 2020 05:00:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E29581C0AB; Tue, 31 Mar 2020 05:00:12 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B842D1C045 for ; Tue, 31 Mar 2020 05:00:10 +0200 (CEST) IronPort-SDR: QJmlt/nIKEH8dxM6812c8MxaRFwvxzTgX2i1HZYOpcndt21QgSjc5iFeMrXezZ66JXgmYSDXJ1 bHK5AtIfhYYw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 20:00:10 -0700 IronPort-SDR: u30BkHfNsrupjXfLGZ3t75+v/fxWBSXdQMhS2KPtoCGLZCynu4rrYLpq0KgNml8wEGP0Ofsp/6 Zye5ezdHcJmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="241798144" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 30 Mar 2020 20:00:10 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:00:10 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) 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:07 +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:07 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 04/11]pvp_virtio_user_4k_pages: update script according to testplan's update Thread-Index: AQHWAn3gL6RcD9SEb0mXX6LPBSuTNKhiC/iA Date: Tue, 31 Mar 2020 03:00:07 +0000 Message-ID: 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: 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 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" 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 04/11]pvp_virtio_user_4k_pages: update script > according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_pvp_virtio_user_4k_pages.py | 28 > ++++++++++++++++++++-------- > 1 file changed, 20 insertions(+), 8 deletions(-) >=20 > 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) >=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 " --no-huge -m 1024 -- > 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, > 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,packed_vq=3D1,queues=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) >=20 > - 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() >=20 > + 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