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 64D09A0352; Wed, 6 May 2020 05:16:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 546791D670; Wed, 6 May 2020 05:16:25 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id EC0AB1D5E5 for ; Wed, 6 May 2020 05:16:23 +0200 (CEST) IronPort-SDR: rad70n9UXZSdgxCxAgjg27xvrkfiK5p2phud2Y2VBReZ9bXY4FK5CwMttGJMsyNgvbjHlHry+/ IrFhEFw/+AeQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 20:16:21 -0700 IronPort-SDR: tNTyezTkQ1IUBpgtw1xaAj3ybsHLJ4KHA/aAthiHu78gn6nqqqV9Iet8mOQivF0M74P1aYBqOY UDPi1zGf/IMA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,357,1583222400"; d="scan'208";a="296045839" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 05 May 2020 20:16:20 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:16:20 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.225]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.181]) with mapi id 14.03.0439.000; Wed, 6 May 2020 11:16:17 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]pvp_virtio_user_multi_queues_port_restart: update script to test virtio new path Thread-Index: AQHWHcv3CVkAJFHh6ku6CvPehi/Lbqiabc5g Date: Wed, 6 May 2020 03:16:17 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21E28@SHSMSX101.ccr.corp.intel.com> References: <1588126073-292482-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1588126073-292482-1-git-send-email-qimaix.xiao@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]pvp_virtio_user_multi_queues_port_restart: update script to test virtio new path 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 Xiao Qimai > Sent: Wednesday, April 29, 2020 10:08 AM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]pvp_virtio_user_multi_queues_port_restart: updat= e > script to test virtio new path >=20 > Signed-off-by: Xiao Qimai > --- > ...te_pvp_virtio_user_multi_queues_port_restart.py | 31 +++++++++-------= ---- > -- > 1 file changed, 12 insertions(+), 19 deletions(-) >=20 > diff --git a/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py > b/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py > index 58d603f..d948e15 100644 > --- a/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py > +++ b/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py > @@ -98,21 +98,14 @@ class > TestPVPVirtioUserMultiQueuesPortRestart(TestCase): > self.vhost.send_expect("set fwd mac", "testpmd> ", 120) > self.vhost.send_expect("start", "testpmd> ", 120) >=20 > - def start_virtio_user_testpmd(self, flag): > + def start_virtio_user_testpmd(self, vdevs, vector_flag=3DFalse): > """ > start testpmd in vm depend on different path > """ > testcmd =3D self.dut.target + "/app/testpmd " > - vdev =3D 'net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhos= t- > net,queues=3D2' > - if 'packed_ring' in flag: > - vdev +=3D ',packed_vq=3D1' > - if 'nonmergeable' in flag or 'vector' in flag: > - vdev +=3D ',mrg_rxbuf=3D0' > - if 'inorder' not in flag: > - vdev +=3D ',in_order=3D0' > eal_params =3D self.dut.create_eal_parameters(cores=3Dself.core_= list[5:8], > prefix=3D'virtio', no_pci=3DTrue, > - vdevs=3D[vdev]) > - if 'vector' not in flag: > + vdevs=3D[vdevs]) > + if vector_flag: > para =3D " -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip = --rss-ip --nb- > cores=3D2 --rxq=3D%s --txq=3D%s --rss-ip" % ( > self.queue_number, self.queue_number) > else: > @@ -219,63 +212,63 @@ class > TestPVPVirtioUserMultiQueuesPortRestart(TestCase): >=20 > def test_perf_pvp_2queues_test_with_packed_ring_mergeable_path(self)= : > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"packed_ring_mergeable") > + > self.start_virtio_user_testpmd(vdevs=3D'net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D0,queue_size=3D255'= ) > self.send_and_verify("packed_ring_mergeable") > self.close_all_testpmd() > self.result_table_print() >=20 > def > test_perf_pvp_2queues_test_with_packed_ring_nonmergeable_path(self): > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"packed_ring_nonmergeable"= ) > + > self.start_virtio_user_testpmd(vdevs=3D'net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D0,queue_size=3D255'= ) > self.send_and_verify("packed_ring_nonmergeable") > self.close_all_testpmd() > self.result_table_print() >=20 > def > test_perf_pvp_2queues_test_with_split_ring_inorder_mergeable_path(self): > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"split_ring_inorder_mergea= ble") > + > self.start_virtio_user_testpmd(vdevs=3D'net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost-net,queues=3D2,in_order=3D1,mrg_rxbuf=3D1') > self.send_and_verify("split_ring_inorder_mergeable") > self.close_all_testpmd() > self.result_table_print() >=20 > def > test_perf_pvp_2queues_test_with_split_ring_inorder_nonmergeable_path(s > elf): > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"split_ring_inorder_nonmer= geable") > + > self.start_virtio_user_testpmd(vdevs=3D'net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost-net,queues=3D2,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D= 1') > self.send_and_verify("split_ring_inorder_nonmergeable") > self.close_all_testpmd() > self.result_table_print() >=20 > def test_perf_pvp_2queues_test_with_split_ring_mergeable_path(self): > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"split_ring_mergeable") > + > self.start_virtio_user_testpmd(vdevs=3D'net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost-net,queues=3D2,in_order=3D0,mrg_rxbuf=3D1') > self.send_and_verify("split_ring_mergeable") > self.close_all_testpmd() > self.result_table_print() >=20 > def > test_perf_pvp_2queues_test_with_split_ring_nonmergeable_path(self): > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"split_ring_nonmergeable") > + > self.start_virtio_user_testpmd(vdevs=3D'net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost-net,queues=3D2,in_order=3D0,mrg_rxbuf=3D0,vectorized=3D= 1') > self.send_and_verify("split_ring_nonmergeable") > self.close_all_testpmd() > self.result_table_print() >=20 > def test_perf_pvp_2queues_test_with_split_ring_vector_rx_path(self): > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"split_ring_vector_rx") > + > self.start_virtio_user_testpmd(vdevs=3D"net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D1,queue_size=3D255"= , > vector_flag=3DTrue) > self.send_and_verify("split_ring_vector_rx") > self.close_all_testpmd() > self.result_table_print() >=20 > def > test_perf_pvp_2queues_test_with_packed_ring_inorder_mergeable_path(se > lf): > self.start_vhost_testpmd() > - self.start_virtio_user_testpmd(flag=3D"packed_ring_inorder_merge= able") > + > self.start_virtio_user_testpmd(vdevs=3D"net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectorized=3D1,qu= eue_siz > e=3D255") > self.send_and_verify("packed_ring_inorder_mergeable") > self.close_all_testpmd() > self.result_table_print() >=20 > def > test_perf_pvp_2queues_test_with_packed_ring_inorder_nonmergeable_pat > h(self): > self.start_vhost_testpmd() > - > self.start_virtio_user_testpmd(flag=3D"packed_ring_inorder_nonmergeable") > + > self.start_virtio_user_testpmd(vdevs=3D"net_virtio_user0,mac=3D00:01:02:0= 3:04: > 05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectorized=3D1,qu= eue_siz > e=3D255") > self.send_and_verify("packed_ring_inorder_nonmergeable") > self.close_all_testpmd() > self.result_table_print() > -- > 1.8.3.1