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 BEA84A0561; Mon, 20 Apr 2020 04:18:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B24301C439; Mon, 20 Apr 2020 04:18:05 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 424041C2F6 for ; Mon, 20 Apr 2020 04:18:04 +0200 (CEST) IronPort-SDR: z8/MgXSVnYXBFjYO0JJCc5UtEVidV7HnnTRybpOS7xkanaCY7tDMa97a1hE27hV6FUMks56MPq LA7/Z8ddUbdA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2020 19:18:04 -0700 IronPort-SDR: NhlQYA9CFTWNi1+SPzRA5+o4G8nxUaxMX1Yk+iae5L/8BD0XiW+vgzD6+b5o1g6g4sB2O4hzTD XI1x7nhujIWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,405,1580803200"; d="scan'208";a="245225988" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga007.fm.intel.com with ESMTP; 19 Apr 2020 19:18:03 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Apr 2020 19:18:03 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 19 Apr 2020 19:18:03 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 19 Apr 2020 19:18:03 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.7]) with mapi id 14.03.0439.000; Mon, 20 Apr 2020 10:18:01 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans: add packed ring vectorized case for vm2vm_virtio_user test Thread-Index: AQHWDm3e68kzSQNE8EmayL+WjLXNL6iBVvSg Date: Mon, 20 Apr 2020 02:18:00 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0CD3C@SHSMSX101.ccr.corp.intel.com> References: <20200409203522.94234-1-yinan.wang@intel.com> In-Reply-To: <20200409203522.94234-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 case for vm2vm_virtio_user test 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: Friday, April 10, 2020 4:35 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: add packed ring vectorized case for > vm2vm_virtio_user test >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > test_plans/vm2vm_virtio_user_test_plan.rst | 83 ++++++++++++++++++++-- > 1 file changed, 76 insertions(+), 7 deletions(-) >=20 > diff --git a/test_plans/vm2vm_virtio_user_test_plan.rst > b/test_plans/vm2vm_virtio_user_test_plan.rst > index a28ca92..0aa2501 100644 > --- a/test_plans/vm2vm_virtio_user_test_plan.rst > +++ b/test_plans/vm2vm_virtio_user_test_plan.rst > @@ -37,7 +37,11 @@ vm2vm vhost-user/virtio-user test plan Description > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -This test plan includes split virtqueue vm2vm in-order mergeable, in-ord= er > non-mergeable, mergeable, non-mergeable, vector_rx path test, and packed > virtqueue vm2vm in-order mergeable, in-order non-mergeable, mergeable, > non-mergeable path test. This plan also check the payload of packets is > accurate. For packed virtqueue test, need using qemu version > 4.2.0. > +This test plan includes split virtqueue vm2vm in-order mergeable, in-ord= er > non-mergeable, mergeable, non-mergeable, vector_rx path test, and packed > virtqueue vm2vm in-order mergeable, in-order non-mergeable, mergeable, > non-mergeable, vectorized path test. This plan also check the payload of > packets is accurate. > +Note: Packed virtqueue vectorized path need below three initial > requirements: > + 1. AVX512 is allowed in config file and supported by compiler > + 2. Host cpu support AVX512F > + 3. ring size is power of two >=20 > Prerequisites > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @@ -283,8 +287,8 @@ Test Case 4: packed virtqueue vm2vm inorder non- > mergeable path test >=20 > ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \ > --no-pci --file-prefix=3Dvirtio1 \ > - --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1 \ > - -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,packed_vec=3D1 \ > + -- -i --rx-offloads=3D0x10 --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set fwd rxonly > testpmd>start >=20 > @@ -296,8 +300,8 @@ Test Case 4: packed virtqueue vm2vm inorder non- > mergeable path test >=20 > ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ > --no-pci --file-prefix=3Dvirtio \ > - --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1 \ > - -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,packed_vec=3D1 \ > + -- -i --rx-offloads=3D0x10 --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set burst 1 > testpmd>start tx_first 27 > testpmd>stop > @@ -325,8 +329,8 @@ Test Case 4: packed virtqueue vm2vm inorder non- > mergeable path test >=20 > ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem > 1024,1024 \ > --no-pci \ > - --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1 \ > - -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,packed_vec=3D1 \ > + -- -i --rx-offloads=3D0x10 --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set burst 1 > testpmd>start tx_first 27 > testpmd>stop > @@ -672,4 +676,69 @@ Test Case 9: split virtqueue vm2vm vector_rx path > test > testpmd>set burst 32 > testpmd>start tx_first 7 >=20 > +9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check > headers and payload of all packets in pdump-virtio-rx.pcap and pdump- > vhost-rx.pcap and ensure the content are same. > + > +Test Case 10: packed virtqueue vm2vm vectorized path test > +=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. Launch testpmd by below command:: > + > + ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ > + --vdev 'eth_vhost0,iface=3Dvhost-net,queues=3D1' --vdev > 'eth_vhost1,iface=3Dvhost-net1,queues=3D1' -- \ > + -i --nb-cores=3D1 --no-flush-rx > + > +2. Launch virtio-user1 by below command:: > + > + ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \ > + --no-pci --file-prefix=3Dvirtio1 \ > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,packed_vec=3D1 \ > + -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > + testpmd>set fwd rxonly > + testpmd>start > + > +3. Attach pdump secondary process to primary process by same file-prefix= :: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=3Dvirti= o1 -- -- > pdump 'device_id=3Dnet_virtio_user1,queue=3D*,rx-dev=3D/root/pdump- > rx.pcap,mbuf-size=3D8000' > + > +4. Launch virtio-user0 and send 8k length packets:: > + > + ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ > + --no-pci --file-prefix=3Dvirtio \ > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost- > net,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,packed_vec=3D1 \ > + -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > + testpmd>set burst 1 > + testpmd>start tx_first 27 > + testpmd>stop > + testpmd>set burst 32 > + testpmd>start tx_first 7 > + testpmd>stop > + testpmd>set txpkts 2000,2000,2000,2000 > + testpmd>start tx_first 1 > + > +5. Start vhost, then quit pdump and three testpmd, get 251 packets recei= ved > by virtio-user1 in pdump-virtio-rx.pcap. > + > +6. Launch testpmd by below command:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem > 1024,1024 --no-pci --file-prefix=3Dvhost \ > + --vdev 'eth_vhost1,iface=3Dvhost-net1,queues=3D1' -- \ > + -i --nb-cores=3D1 --no-flush-rx > + testpmd>set fwd rxonly > + testpmd>start > + > +7. Attach pdump secondary process to primary process by same file-prefix= :: > + > + ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=3Dvhost= -- -- > pdump 'port=3D0,queue=3D*,rx-dev=3D/root/pdump-vhost-rx.pcap,mbuf- > size=3D8000' > + > +8. Launch virtio-user1 by below command:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem > 1024,1024 \ > + --no-pci \ > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,packed_vec=3D1 \ > + -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > + testpmd>set burst 1 > + testpmd>start tx_first 27 > + testpmd>stop > + testpmd>set burst 32 > + testpmd>start tx_first 7 > + > 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check > headers and payload of all packets in pdump-virtio-rx.pcap and pdump- > vhost-rx.pcap and ensure the content are same. > \ No newline at end of file > -- > 2.17.1