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 ECAFEA04F8; Fri, 20 Dec 2019 09:13:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BB4072C60; Fri, 20 Dec 2019 09:13:09 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 291C82BF9 for ; Fri, 20 Dec 2019 09:13:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2019 00:13:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,335,1571727600"; d="scan'208";a="241431090" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 20 Dec 2019 00:13:07 -0800 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 20 Dec 2019 00:13:07 -0800 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 20 Dec 2019 00:13:06 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 20 Dec 2019 00:13:05 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.19]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.90]) with mapi id 14.03.0439.000; Fri, 20 Dec 2019 16:13:04 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans: add packed virtqueue test in vm2vm topology Thread-Index: AQHVtt+w9rWKOMKVaEmXLCl/OGqGvKfCrNfg Date: Fri, 20 Dec 2019 08:13:03 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB8A285@SHSMSX101.ccr.corp.intel.com> References: <20191219194130.77500-1-yinan.wang@intel.com> In-Reply-To: <20191219194130.77500-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 virtqueue test in vm2vm topology 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 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Friday, December 20, 2019 3:42 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: add packed virtqueue test in vm2vm > topology >=20 > From: Wang Yinan >=20 > Add packed virtqueue test in vm2vm_virtio_net_perf_test_plan.rst >=20 > Signed-off-by: Wang Yinan > --- > .../vm2vm_virtio_net_perf_test_plan.rst | 285 +++++++++++++++--- > 1 file changed, 242 insertions(+), 43 deletions(-) >=20 > diff --git a/test_plans/vm2vm_virtio_net_perf_test_plan.rst > b/test_plans/vm2vm_virtio_net_perf_test_plan.rst > index 96f0cc4..0fe8400 100644 > --- a/test_plans/vm2vm_virtio_net_perf_test_plan.rst > +++ b/test_plans/vm2vm_virtio_net_perf_test_plan.rst > @@ -8,7 +8,7 @@ > - Redistributions of source code must retain the above copyright > notice, this list of conditions and the following disclaimer. >=20 > - - Redistributions in binary form must reproduce the above copyright > + - Redistributions in binary forim must reproduce the above copyright > notice, this list of conditions and the following disclaimer in > the documentation and/or other materials provided with the > distribution. > @@ -30,7 +30,6 @@ > ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF > ADVISED > OF THE POSSIBILITY OF SUCH DAMAGE. >=20 > - > =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 > vm2vm vhost-user/virtio-net test plan > =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 > @@ -38,15 +37,15 @@ vm2vm vhost-user/virtio-net test plan Description > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -The feature enabled the DPDK Vhost TX offload (TSO and UFO). The feature > added the negotiation between DPDK user space vhost and virtio-net, so we > will verify the TSO/cksum in the TCP/IP stack enabled environment and > UFO/cksum in the UDP/IP stack enabled environment with vm2vm vhost- > user/virtio-net normal path. Also add case to check the payload of large > packet is valid by scp with vm2vm vhost-user/virtio-net mergeable path te= st. > +This test plan test vhost tx offload (TSO and UFO) function by verifing = the > TSO/cksum in the TCP/IP stack enabled environment and UFO/cksum in the > UDP/IP stack enabled environment with vm2vm split ring and packed ring > vhost-user/virtio-net non-mergeable path. Also add case to check the > payload of large packet is valid with vm2vm split ring and packed ring vh= ost- > user/virtio-net mergeable and non-mergeable dequeue zero copy test. For > packed virtqueue test, need using qemu version > 4.2.0. >=20 > Test flow > =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Virtio-net <-> Vhost <-> Testpmd <-> Vhost <-> Virtio-net >=20 > -Test Case 1: VM2VM vhost-user/virtio-net test with tcp traffic - > =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 > +Test Case 1: VM2VM split ring vhost-user/virtio-net test with tcp > +traffic > +=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 >=20 > 1. Launch the Vhost sample by below commands:: >=20 > @@ -56,7 +55,6 @@ Test Case 1: VM2VM vhost-user/virtio-net test with tcp > traffic >=20 > 2. Launch VM1 and VM2:: >=20 > - taskset -c 32-33 \ > qemu-system-x86_64 -name us-vhost-vm1 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ @@ - > 65,7 +63,6 @@ Test Case 1: VM2VM vhost-user/virtio-net test with tcp traf= fic > -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > -vnc :12 -daemonize >=20 > - taskset -c 34-35 \ > qemu-system-x86_64 -name us-vhost-vm2 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ @@ - > 74,12 +71,12 @@ Test Case 1: VM2VM vhost-user/virtio-net test with tcp > traffic > -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > -vnc :11 -daemonize >=20 > -3. On VM1, set virtio device IP and run arp protocol:: > +3. On VM1, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.2 > arp -s 1.1.1.8 52:54:00:00:00:02 >=20 > -4. On VM2, set virtio device IP and run arp protocol:: > +4. On VM2, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.8 > arp -s 1.1.1.2 52:54:00:00:00:01 > @@ -95,41 +92,206 @@ Test Case 1: VM2VM vhost-user/virtio-net test with > tcp traffic > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -Test Case 2: VM2VM vhost-user/virtio-net zero-copy test with tcp traffic= - > =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 > +Test Case 2: VM2VM split ring vhost-user/virtio-net test with udp > +traffic > +=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 >=20 > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - testpmd>./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy= - > mem --no-pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 --txfreet=3D992 > + testpmd>./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 > + --legacy-mem --no-pci --file-prefix=3Dvhost --vdev > + 'net_vhost0,iface=3Dvhost-net0,queues=3D1' --vdev > + 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores=3D1 --txd= =3D1024 > + --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: >=20 > - taskset -c 32-33 \ > qemu-system-x86_64 -name us-vhost-vm1 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > - -vnc :10 -daemonize > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don -vnc :10 -daemonize >=20 > - taskset -c 34-35 \ > qemu-system-x86_64 -name us-vhost-vm2 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don -vnc :11 -daemonize > + > +3. On VM1, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.2 > + arp -s 1.1.1.8 52:54:00:00:00:02 > + > +4. On VM2, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.8 > + arp -s 1.1.1.2 52:54:00:00:00:01 > + > +5. Check the iperf performance between two VMs by below commands:: > + > + Under VM1, run: `iperf -s -u -i 1` > + Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 30 -P 4 -u -b 1G -l 9000` > + > +6. Check both 2VMs can receive and send big packets to each other:: > + > + testpmd>show port xstats all > + Port 0 should have tx packets above 1522 > + Port 1 should have rx packets above 1522 > + > +Test Case 3: Check split ring virtio-net device capability > +=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 the Vhost sample by below commands:: > + > + rm -rf vhost-net* > + testpmd>./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy= - > mem --no-pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i= --nb- > cores=3D1 --txd=3D1024 --rxd=3D1024 > + testpmd>start > + > +2. Launch VM1 and VM2,set TSO and UFO on in qemu command:: > + > + qemu-system-x86_64 -name us-vhost-vm1 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don -vnc :10 -daemonize > + > + qemu-system-x86_64 -name us-vhost-vm2 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > + -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don -vnc :11 -daemonize > + > +3. Check UFO and TSO offload status on for the Virtio-net driver on VM1 > and VM2:: > + > + Under VM1, run: `run ethtool -k ens3` > + udp-fragmentation-offload: on > + tx-tcp-segmentation: on > + tx-tcp-ecn-segmentation: on > + tx-tcp6-segmentation: on > + > + Under VM2, run: `run ethtool -k ens3` > + udp-fragmentation-offload: on > + tx-tcp-segmentation: on > + tx-tcp-ecn-segmentation: on > + tx-tcp6-segmentation: on > + > +Test Case 4: VM2VM virtio-net split ring mergeable zero copy test with > +large packet payload valid check > +=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=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > + > +1. Launch the Vhost sample by below commands:: > + > + rm -rf vhost-net* > + ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 > + testpmd>start > + > +2. Launch VM1 and VM2:: > + > + qemu-system-x86_64 -name us-vhost-vm1 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Don \ > + -vnc :12 -daemonize > + > + qemu-system-x86_64 -name us-vhost-vm2 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > + -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Don = \ > -vnc :11 -daemonize >=20 > -3. On VM1, set virtio device IP and run arp protocol:: > +3. On VM1, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.2 > arp -s 1.1.1.8 52:54:00:00:00:02 >=20 > -4. On VM2, set virtio device IP and run arp protocol:: > +4. On VM2, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.8 > + arp -s 1.1.1.2 52:54:00:00:00:01 > + > +5. Scp 64KB file form VM1 to VM2:: > + > + Under VM1, run: `scp [xxx] root@1.1.1.8:/` [xxx] is the file name > + > +Test Case 5: VM2VM virtio-net split ring non-mergeable zero copy test > +with large packet payload valid check > +=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=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +1. Launch the Vhost sample by below commands:: > + > + rm -rf vhost-net* > + ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 > + testpmd>start > + > +2. Launch VM1 and VM2:: > + > + qemu-system-x86_64 -name us-vhost-vm1 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff \ > + -vnc :12 -daemonize > + > + qemu-system-x86_64 -name us-vhost-vm2 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > + -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > + -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff \ > + -vnc :11 -daemonize > + > +3. On VM1, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.2 > + arp -s 1.1.1.8 52:54:00:00:00:02 > + > +4. On VM2, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.8 > + arp -s 1.1.1.2 52:54:00:00:00:01 > + > +5. Scp 64KB file form VM1 to VM2:: > + > + Under VM1, run: `scp [xxx] root@1.1.1.8:/` [xxx] is the file name > + > +Test Case 6: VM2VM packed ring vhost-user/virtio-net test with tcp > +traffic > +=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 the Vhost sample by below commands:: > + > + rm -rf vhost-net* > + ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net0,queues=3D= 1' --vdev > 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores=3D1 --txd=3D= 1024 -- > rxd=3D1024 > + testpmd>start > + > +2. Launch VM1 and VM2:: > + > + qemu-system-x86_64 -name us-vhost-vm1 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don \ > + -vnc :12 -daemonize > + > + qemu-system-x86_64 -name us-vhost-vm2 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > + -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > + -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,packed=3Don \ > + -vnc :11 -daemonize > + > +3. On VM1, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.2 > + arp -s 1.1.1.8 52:54:00:00:00:02 > + > +4. On VM2, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.8 > arp -s 1.1.1.2 52:54:00:00:00:01 > @@ -139,14 +301,15 @@ Test Case 2: VM2VM vhost-user/virtio-net zero- > copy test with tcp traffic > Under VM1, run: `iperf -s -i 1` > Under VM2, run: `iperf -c 1.1.1.2 -i 1 -t 30` >=20 > -6. Check both 2VM can receive and send big packets to each other:: > +6. Check both 2VMs can receive and send big packets to each other:: >=20 > testpmd>show port xstats all > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -Test Case 3: VM2VM vhost-user/virtio-net test with udp traffic - > =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 > +Test Case 7: VM2VM packed ring vhost-user/virtio-net test with udp > +traffic > +=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 the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > @@ -155,28 +318,26 @@ Test Case 3: VM2VM vhost-user/virtio-net test > with udp traffic >=20 > 2. Launch VM1 and VM2:: >=20 > - taskset -c 32-33 \ > qemu-system-x86_64 -name us-vhost-vm1 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :10 -daemonize > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don,packed=3Don -vnc :10 -daemonize >=20 > - taskset -c 34-35 \ > qemu-system-x86_64 -name us-vhost-vm2 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :11 -daemonize > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don,packed=3Don -vnc :11 -daemonize >=20 > -3. On VM1, set virtio device IP and run arp protocol:: > +3. On VM1, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.2 > arp -s 1.1.1.8 52:54:00:00:00:02 >=20 > -4. On VM2, set virtio device IP and run arp protocol:: > +4. On VM2, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.8 > arp -s 1.1.1.2 52:54:00:00:00:01 > @@ -192,9 +353,8 @@ Test Case 3: VM2VM vhost-user/virtio-net test with > udp traffic > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > - > -Test Case 4: Check virtio-net device capability - > =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 > +Test Case 8: Check packed ring virtio-net device capability > +=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 >=20 > 1. Launch the Vhost sample by below commands:: >=20 > @@ -204,21 +364,19 @@ Test Case 4: Check virtio-net device capability >=20 > 2. Launch VM1 and VM2,set TSO and UFO on in qemu command:: >=20 > - taskset -c 32-33 \ > qemu-system-x86_64 -name us-vhost-vm1 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :10 -daemonize > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don,packed=3Don -vnc :10 -daemonize >=20 > - taskset -c 34-35 \ > qemu-system-x86_64 -name us-vhost-vm2 \ > -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,csum=3Don,gue= st_cs > um=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host= _ufo=3D > on -vnc :11 -daemonize > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,= csum=3D > + > on,guest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_uf= o=3Do > n, > + host_ufo=3Don,packed=3Don -vnc :11 -daemonize >=20 > 3. Check UFO and TSO offload status on for the Virtio-net driver on VM1 = and > VM2:: >=20 > @@ -234,13 +392,13 @@ Test Case 4: Check virtio-net device capability > tx-tcp-ecn-segmentation: on > tx-tcp6-segmentation: on >=20 > -Test Case 5: VM2VM vhost-user/virtio-net test with large packet payload > valid check - > =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 > +Test Case 9: VM2VM packed ring virtio-net mergeable dequeue zero copy > +test with large packet payload valid check > +=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=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > 1. Launch the Vhost sample by below commands:: >=20 > rm -rf vhost-net* > - ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net0,queues=3D= 1' --vdev > 'net_vhost1,iface=3Dvhost-net1,queues=3D1' -- -i --nb-cores=3D1 --txd=3D= 1024 -- > rxd=3D1024 > + ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem > + --no-pci --file-prefix=3Dvhost --vdev > + 'net_vhost0,iface=3Dvhost-net0,queues=3D1,dequeue-zero-copy=3D1' --vdev > + 'net_vhost1,iface=3Dvhost-net1,queues=3D1,dequeue-zero-copy=3D1' -- -i > + --nb-cores=3D1 --txd=3D1024 --rxd=3D1024 > testpmd>start >=20 > 2. Launch VM1 and VM2:: > @@ -250,7 +408,7 @@ Test Case 5: VM2VM vhost-user/virtio-net test with > large packet payload valid ch > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Don \ > + -device > + virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Don,packed > + =3Don \ > -vnc :12 -daemonize >=20 > qemu-system-x86_64 -name us-vhost-vm2 \ @@ -258,19 +416,60 @@ > Test Case 5: VM2VM vhost-user/virtio-net test with large packet payload > valid ch > -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Don \ > + -device virtio-net- > pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Don,packed=3Don \ > + -vnc :11 -daemonize > + > +3. On VM1, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.2 > + arp -s 1.1.1.8 52:54:00:00:00:02 > + > +4. On VM2, set virtio device IP and run arp protocal:: > + > + ifconfig ens3 1.1.1.8 > + arp -s 1.1.1.2 52:54:00:00:00:01 > + > +5. Scp 64KB file form VM1 to VM2:: > + > + Under VM1, run: `scp [xxx] root@1.1.1.8:/` [xxx] is the file name > + > +Test Case 10: VM2VM packed ring virtio-net non-mergeable dequeue zero > +copy test with large packet payload valid check > +=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=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 the Vhost sample by below commands:: > + > + rm -rf vhost-net* > + ./testpmd -c 0xF0000000 -n 4 --socket-mem 2048,2048 --legacy-mem --n= o- > pci --file-prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost- > net0,queues=3D1,dequeue-zero-copy=3D1' --vdev 'net_vhost1,iface=3Dvhost- > net1,queues=3D1,dequeue-zero-copy=3D1' -- -i --nb-cores=3D1 --txd=3D1024= -- > rxd=3D1024 > + testpmd>start > + > +2. Launch VM1 and VM2:: > + > + qemu-system-x86_64 -name us-vhost-vm1 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-1.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6004-:22 \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net0 -netdev type=3Dvhost= - > user,id=3Dmynet1,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,packed=3Don \ > + -vnc :12 -daemonize > + > + qemu-system-x86_64 -name us-vhost-vm2 \ > + -cpu host -enable-kvm -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don -numa > node,memdev=3Dmem -mem-prealloc \ > + -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16-2.img= \ > + -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net > nic,vlan=3D2,macaddr=3D00:00:00:08:e8:aa,addr=3D1f -net > user,vlan=3D2,hostfwd=3Dtcp:127.0.0.1:6005-:22 \ > + -chardev socket,id=3Dchar1,path=3D./vhost-net1 -netdev type=3Dvhost= - > user,id=3Dmynet2,chardev=3Dchar1,vhostforce \ > + -device > + virtio-net-pci,mac=3D52:54:00:00:00:02,netdev=3Dmynet2,mrg_rxbuf=3Doff,= packe > + d=3Don \ > -vnc :11 -daemonize >=20 > -3. On VM1, set virtio device IP and run arp protocol:: > +3. On VM1, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.2 > arp -s 1.1.1.8 52:54:00:00:00:02 >=20 > -4. On VM2, set virtio device IP and run arp protocol:: > +4. On VM2, set virtio device IP and run arp protocal:: >=20 > ifconfig ens3 1.1.1.8 > arp -s 1.1.1.2 52:54:00:00:00:01 >=20 > 5. Scp 64KB file form VM1 to VM2:: >=20 > - Under VM1, run: `scp [xxx] root@1.1.1.8:/` [xxx] is the file name > \ No newline at end of file > + Under VM1, run: `scp [xxx] root@1.1.1.8:/` [xxx] is the file name > -- > 2.17.1