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 923D1A00C5; Mon, 27 Apr 2020 09:50:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 51F341C19B; Mon, 27 Apr 2020 09:50:59 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id E01BD1C193 for ; Mon, 27 Apr 2020 09:50:55 +0200 (CEST) IronPort-SDR: jtu6ss8RzoeJ/e4dEploGmUKzVb57JZjhRzb5SJJcDALC505SiDOLUkWaDT6QhfxAdWSG6NZA1 x+Y7YL6VecNQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:50:53 -0700 IronPort-SDR: lKTCSZNRDCeA0FHeA3DiZPwJYNnTFFGjPfQO6Al94XIVl1mIkZrYOcsPdmT9SwdPsun46Xe/I0 mhH1gaZFRwgA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="292374613" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 27 Apr 2020 00:50:53 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:50:53 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:50:46 -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, 27 Apr 2020 15:50:43 +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 vm2vm_virtio_user test Thread-Index: AQHWG2PItCiV47avWkmiDWcXHuN1HqiMmlCg Date: Mon, 27 Apr 2020 07:50:42 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12A2B@SHSMSX101.ccr.corp.intel.com> References: <20200425173740.48722-1-yinan.wang@intel.com> In-Reply-To: <20200425173740.48722-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 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: Sunday, April 26, 2020 1:38 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: add packed ring vectorized cases in > vm2vm_virtio_user test >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > test_plans/vm2vm_virtio_user_test_plan.rst | 87 ++++++++++++++++++---- > 1 file changed, 74 insertions(+), 13 deletions(-) >=20 > diff --git a/test_plans/vm2vm_virtio_user_test_plan.rst > b/test_plans/vm2vm_virtio_user_test_plan.rst > index 0aa2501..de5bbb6 100644 > --- a/test_plans/vm2vm_virtio_user_test_plan.rst > +++ b/test_plans/vm2vm_virtio_user_test_plan.rst > @@ -38,10 +38,6 @@ 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, 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 > @@ -628,7 +624,7 @@ Test Case 9: split virtqueue vm2vm vector_rx 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=3D0,mrg_rxbuf=3D0,in_order=3D0 \ > + > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost-net1,q= ueues > + =3D1,packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D0,vectorized=3D1,queue_size= =3D256 \ > -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 >=20 > 3. Attach pdump secondary process to primary process by same file-prefix= :: > @@ -639,7 +635,7 @@ Test Case 9: split virtqueue vm2vm vector_rx 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=3D0,mrg_rxbuf=3D0,in_order=3D0 \ > + > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,qu= eues=3D > + 1,packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D0,vectorized=3D1,queue_size=3D= 256 \ > -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set burst 1 > testpmd>start tx_first 27 > @@ -668,7 +664,7 @@ Test Case 9: split virtqueue vm2vm vector_rx 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=3D0,mrg_rxbuf=3D0,in_order=3D0 \ > + > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost-net1,q= ueues > + =3D1,packed_vq=3D0,mrg_rxbuf=3D0,in_order=3D0,vectorized=3D1,queue_size= =3D256 \ > -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set burst 1 > testpmd>start tx_first 27 > @@ -683,15 +679,15 @@ Test Case 10: packed virtqueue vm2vm vectorized > path test >=20 > 1. Launch testpmd by below command:: >=20 > - ./testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \ > + ./x86_64-native-linuxapp-gcc/app/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 >=20 > 2. Launch virtio-user1 by below command:: >=20 > - ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \ > + ./x86_64-native-linuxapp-gcc/app/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 \ > + > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost-net1,q= ueues > + =3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectorized=3D1,queue_size= =3D256 \ > -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set fwd rxonly > testpmd>start > @@ -702,9 +698,9 @@ Test Case 10: packed virtqueue vm2vm vectorized > path test >=20 > 4. Launch virtio-user0 and send 8k length packets:: >=20 > - ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ > + ./x86_64-native-linuxapp-gcc/app/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 \ > + > + --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,qu= eues=3D > + 1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectorized=3D1,queue_size=3D= 256 \ > -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set burst 1 > testpmd>start tx_first 27 > @@ -733,7 +729,7 @@ Test Case 10: packed virtqueue vm2vm vectorized > 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,packed_vec=3D1 \ > + > + --vdev=3Dnet_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost-net1,q= ueues > + =3D1,packed_vq=3D1,mrg_rxbuf=3D0,in_order=3D1,vectorized=3D1,queue_size= =3D256 \ > -- -i --nb-cores=3D1 --txd=3D256 --rxd=3D256 > testpmd>set burst 1 > testpmd>start tx_first 27 > @@ -741,4 +737,69 @@ Test Case 10: packed virtqueue vm2vm vectorized > 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 with ring > +size is not power of 2 > +=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=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:: > + > + ./x86_64-native-linuxapp-gcc/app/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:: > + > + ./x86_64-native-linuxapp-gcc/app/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,vectorized=3D1,q= ueue_si > ze=3D255 \ > + -- -i --nb-cores=3D1 --txd=3D255 --rxd=3D255 > + 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:: > + > + ./x86_64-native-linuxapp-gcc/app/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,vectorized=3D1,qu= eue_siz > e=3D255 \ > + -- -i --nb-cores=3D1 --txd=3D255 --rxd=3D255 > + 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,vectorized=3D1,q= ueue_si > ze=3D255 \ > + -- -i --nb-cores=3D1 --txd=3D255 --rxd=3D255 > + 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