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 BE231A0352; Wed, 6 May 2020 05:26:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B490C1D6DA; Wed, 6 May 2020 05:26:15 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id BBF3B1C06D for ; Wed, 6 May 2020 05:26:13 +0200 (CEST) IronPort-SDR: v8laD6UOQ7kU+RdFRIcRELH342BmJLe6qK3bULjuaYguDvhB9ivJgqD0CrpOfRx+8tCJbrW+11 R9rZ39W+VuTA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2020 20:26:11 -0700 IronPort-SDR: GTHehdGnVTNY1NL3DDTiFXTEoaRsmsnD7w7y3gr8BmF+HAY9xJk3iL0VlS05xtUpnPqFSp65tP ZcbHyk2p8hKw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,357,1583222400"; d="scan'208";a="284470809" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 05 May 2020 20:26:11 -0700 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:26:11 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx162.amr.corp.intel.com (10.18.125.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 5 May 2020 20:26:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.225]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.91]) with mapi id 14.03.0439.000; Wed, 6 May 2020 11:26:08 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans: add packed ring vectorized cases in pvp_virtio_user_multi_queues_port_restart_test_plan.rst Thread-Index: AQHWHrA1LN/55VnE60idXipAUj4SPKiabsXA Date: Wed, 6 May 2020 03:26:07 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC21FC4@SHSMSX101.ccr.corp.intel.com> References: <20200429222219.28152-1-yinan.wang@intel.com> In-Reply-To: <20200429222219.28152-1-yinan.wang@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] test_plans: add packed ring vectorized cases in pvp_virtio_user_multi_queues_port_restart_test_plan.rst 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 Yinan > Sent: Thursday, April 30, 2020 6:22 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: add packed ring vectorized cases in > pvp_virtio_user_multi_queues_port_restart_test_plan.rst >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > ...er_multi_queues_port_restart_test_plan.rst | 59 +++++++++++++++---- > 1 file changed, 46 insertions(+), 13 deletions(-) >=20 > diff --git > a/test_plans/pvp_virtio_user_multi_queues_port_restart_test_plan.rst > b/test_plans/pvp_virtio_user_multi_queues_port_restart_test_plan.rst > index 73c08a7..059b457 100644 > --- a/test_plans/pvp_virtio_user_multi_queues_port_restart_test_plan.rst > +++ b/test_plans/pvp_virtio_user_multi_queues_port_restart_test_plan.rst > @@ -41,7 +41,7 @@ This test plan test vhost/virtio-user pvp multi-queues > with split virtqueue and packed virtqueue different rx/tx paths, include= s split > virtqueue in-order mergeable, in-order non-mergeable, mergeable, non- > mergeable, vector_rx path test, and packed virtqueue in-order mergeable, > in-order non-mergeable, mergeable, -non-mergeable path, also cover port > restart test with each path. > +non-mergeable and vectorized path, also cover port restart test with eac= h > path. >=20 > Test flow > =3D=3D=3D=3D=3D=3D=3D=3D=3D > @@ -63,8 +63,8 @@ Test Case 1: pvp 2 queues test with packed ring > mergeable path >=20 > ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D0 \ > - -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores= =3D2 --rxq=3D2 - > -txq=3D2 > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D0,queue_size=3D255 = \ > + -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip > + --nb-cores=3D2 --rxq=3D2 --txq=3D2 --txd=3D255 --rxd=3D255 > >set fwd mac > >start >=20 > @@ -101,8 +101,8 @@ Test Case 2: pvp 2 queues test with packed ring non- > mergeable path >=20 > ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D0 \ > - -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores= =3D2 --rxq=3D2 - > -txq=3D2 > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D0,queue_size=3D255 = \ > + -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip > + --nb-cores=3D2 --rxq=3D2 --txq=3D2 --txd=3D255 --rxd=3D255 > >set fwd mac > >start >=20 > @@ -167,8 +167,8 @@ Test Case 4: pvp 2 queues test with split ring inorde= r > non-mergeable path >=20 > ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,in_order=3D1,mrg_rxbuf=3D0 \ > - -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores= =3D2 --rxq=3D2 - > -txq=3D2 > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,in_order=3D1,mrg_rxbuf=3D0,vectorized=3D1 \ > + -- -i --rx-offloads=3D0x10 --enable-hw-vlan-strip --rss-ip > + --nb-cores=3D2 --rxq=3D2 --txq=3D2 > >set fwd mac > >start >=20 > @@ -233,7 +233,7 @@ Test Case 6: pvp 2 queues test with split ring non- > mergeable path >=20 > ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,in_order=3D0,mrg_rxbuf=3D0 \ > + > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,qu= eues=3D > + 2,in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1 \ > -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores= =3D2 --rxq=3D2 - > -txq=3D2 > >set fwd mac > >start > @@ -266,7 +266,7 @@ Test Case 7: pvp 2 queues test with split ring > vector_rx path >=20 > ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,in_order=3D0,mrg_rxbuf=3D0 \ > + > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,qu= eues=3D > + 2,in_order=3D0,mrg_rxbuf=3D0,vectorized=3D1 \ > -- -i --tx-offloads=3D0x0 --rss-ip --nb-cores=3D2 --rxq=3D2 --txq=3D= 2 > >set fwd mac > >start > @@ -299,8 +299,8 @@ Test Case 8: pvp 2 queues test with packed ring > inorder mergeable path >=20 > ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D1 \ > - -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores= =3D2 --rxq=3D2 - > -txq=3D2 > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D1,queue_size=3D255 = \ > + -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip > + --nb-cores=3D2 --rxq=3D2 --txq=3D2 --txd=3D255 --rxd=3D255 > >set fwd mac > >start >=20 > @@ -332,8 +332,41 @@ Test Case 9: pvp 2 queues test with packed ring > inorder non-mergeable path >=20 > ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > --legacy-mem --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1 \ > - -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip --nb-cores= =3D2 --rxq=3D2 - > -txq=3D2 > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectorized=3D1,qu= eue_siz > e=3D255 \ > + -- -i --rx-offloads=3D0x10 --enable-hw-vlan-strip --rss-ip --nb-core= s=3D2 --rxq=3D2 > --txq=3D2 --txd=3D255 --rxd=3D255 > + >set fwd mac > + >start > + > +3. Send different ip packets with packet generator, check the throughput > with below command:: > + > + testpmd>show port stats all > + > +4. Check each queue's RX/TX packet numbers:: > + > + testpmd>stop > + > +5. Restart port at vhost side by below command and re-calculate the > average throughput,verify the throughput is not zero after port restart:: > + > + testpmd>start > + testpmd>show port stats all > + > +Test Case 10: pvp 2 queues test with packed ring vectorized path > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D > + > +1. Bind one port to igb_uio, then launch vhost by below command:: > + > + rm -rf vhost-net* > + ./testpmd -n 4 -l 2-4 --socket-mem 1024,1024 --legacy-mem \ > + --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net,queues=3D= 2,client=3D0' - > - -i --nb-cores=3D2 --rxq=3D2 --txq=3D2 > + testpmd>set fwd mac > + testpmd>start > + > +2. Launch virtio-user by below command:: > + > + ./testpmd -n 4 -l 5-7 --socket-mem 1024,1024 \ > + --legacy-mem --no-pci --file-prefix=3Dvirtio \ > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D2,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectorized=3D1,qu= eue_siz > e=3D255 \ > + -- -i --tx-offloads=3D0x0 --enable-hw-vlan-strip --rss-ip > + --nb-cores=3D2 --rxq=3D2 --txq=3D2 --txd=3D255 --rxd=3D255 > >set fwd mac > >start >=20 > -- > 2.17.1