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 B4C9FA058A; Wed, 25 Mar 2020 09:23:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB57F378E; Wed, 25 Mar 2020 09:23:05 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 400AC2C15 for ; Wed, 25 Mar 2020 09:23:04 +0100 (CET) IronPort-SDR: X6NP3FiIkphVj3X55hk47RHp5f1f0LVdBhIsQF8sIwUYsKr2gXgxCntivEo3mC/3OGliHzmIB2 rXFzFm2YQVYQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:23:03 -0700 IronPort-SDR: iiHznSw7VjAm3C20yPRyLUgi00lKfWOHqqzMVU0FFLBVO47jw5XS+WUs7+d0lu49ZhPGdcDt1y na7xMnihggiA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="270732216" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 25 Mar 2020 01:23:02 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Mar 2020 01:23:02 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) 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:23:00 +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:23:00 +0800 From: "Wang, Yinan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 03/11]pvp_virtio_user_2M_hugepages: update script according to testplan's update Thread-Index: AQHWAn3hwi0VCgdS70e47pACP6j2iKhY+DCg Date: Wed, 25 Mar 2020 08:23:00 +0000 Message-ID: <6619d843b0f240a29c185309d4fa14f7@intel.com> 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: 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 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" 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 03/11]pvp_virtio_user_2M_hugepages: update scrip= t > 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,queu= es=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./vhost-net,queues=3D1' = if not > packed else > 'net_virtio_user0,mac=3D00:11:22:33:44:10,path=3D./vhost-net,queues=3D1,p= acked_v > q=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-segments -- -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