From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 41F42A046B for ; Wed, 26 Jun 2019 09:23:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 360F71B464; Wed, 26 Jun 2019 09:23:26 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 8AD414C8B for ; Wed, 26 Jun 2019 09:23:24 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 00:23:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="360214967" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga005.fm.intel.com with ESMTP; 26 Jun 2019 00:23:23 -0700 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 00:23:23 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 00:23:22 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.87]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.76]) with mapi id 14.03.0439.000; Wed, 26 Jun 2019 15:23:20 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v3] test_plans: add case for vm2vm vhost-user/virtio-net larg packet payload check Thread-Index: AQHVJk89pNJ3+FXBTU26ZgF9pYzn+Katk2Xg Date: Wed, 26 Jun 2019 07:23:19 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAC5105@SHSMSX101.ccr.corp.intel.com> References: <20190618202633.102253-1-yinan.wang@intel.com> In-Reply-To: <20190618202633.102253-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.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjg5MjQyOGItYmY4Zi00ODFhLTg5MTAtYWU3ZDhlNmYxZDVkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiY1hvMWlWWUZPRHpHR3p3OUZDcFR5THRuXC96MDJQR3ZvS1wvT0x0V0hZTnZlR25FMStjOU8yTE5IVjBIT0xKWHl4In0= 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 v3] test_plans: add case for vm2vm vhost-user/virtio-net larg packet payload check 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: Wednesday, June 19, 2019 4:27 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v3] test_plans: add case for vm2vm vhost-user/virti= o- > net larg packet payload check >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > .../vm2vm_virtio_net_perf_test_plan.rst | 98 +++++++++++++------ > 1 file changed, 67 insertions(+), 31 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 57bba34..77930dc 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. > @@ -32,26 +32,26 @@ >=20 >=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 > -vhost-user/virtio-net VM2VM test plan > +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 >=20 > Description > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -Test cases for vhost-user + virtio-net vm2vm tso/tso zero-copy/ufo/tso_u= fo > capability check. > +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. >=20 > Test flow > =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Virtio-net <-> Vhost <-> Testpmd <-> Vhost <-> Virtio-net >=20 > -Test Case 1: vhost-user + virtio-net VM2VM 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 > +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 >=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 --txfreet=3D992 > + ./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:: > @@ -62,7 +62,7 @@ Test Case 1: vhost-user + virtio-net VM2VM with tcp > traffic > -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,csum=3Don,gso= =3Don,g > uest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > + -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 \ > -vnc :12 -daemonize >=20 > taskset -c 34-35 \ > @@ -71,15 +71,15 @@ Test Case 1: vhost-user + virtio-net VM2VM with tcp > traffic > -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,csum=3Don,gso= =3Don,g > uest_csum=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 \ > -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,8 +95,8 @@ Test Case 1: vhost-user + virtio-net VM2VM with tcp > traffic > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -Test Case 2: vhost-user + virtio-net VM2VM zero-copy 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 > +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 >=20 > 1. Launch the Vhost sample by below commands:: >=20 > @@ -112,7 +112,7 @@ Test Case 2: vhost-user + virtio-net VM2VM zero-copy > with tcp traffic > -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,csum=3Don,gso= =3Don,g > uest_csum=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don \ > + -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 \ > -vnc :10 -daemonize >=20 > taskset -c 34-35 \ > @@ -121,15 +121,15 @@ Test Case 2: vhost-user + virtio-net VM2VM zero- > copy with tcp traffic > -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,csum=3Don,gso= =3Don,g > uest_csum=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 \ > -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 > @@ -145,13 +145,12 @@ Test Case 2: vhost-user + virtio-net VM2VM zero- > copy with tcp traffic > Port 0 should have tx packets above 1522 > Port 1 should have rx packets above 1522 >=20 > -Test Case 3: vhost-user + virtio-net VM2VM 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 > - > +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 > 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' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=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:: > @@ -162,8 +161,7 @@ Test Case 3: vhost-user + virtio-net VM2VM with udp > traffic > -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,csum=3Don,gues= t_csu > m=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host_= ufo=3Do > n \ > - -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=3Don, > + host_ufo=3Don -vnc :10 -daemonize >=20 > taskset -c 34-35 \ > qemu-system-x86_64 -name us-vhost-vm2 \ @@ -171,15 +169,14 @@ > Test Case 3: vhost-user + virtio-net VM2VM with udp traffic > -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,csum=3Don,gues= t_csu > m=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host_= ufo=3Do > n \ > - -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=3Don, > + host_ufo=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 > @@ -202,7 +199,7 @@ Test Case 4: Check virtio-net device capability 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' --vdev 'net_vhost1,iface=3Dvhost-net1,queues=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,set TSO and UFO on in qemu command:: > @@ -213,8 +210,7 @@ Test Case 4: Check virtio-net device capability > -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,csum=3Don,gues= t_csu > m=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host_= ufo=3Do > n \ > - -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=3Don, > + host_ufo=3Don -vnc :10 -daemonize >=20 > taskset -c 34-35 \ > qemu-system-x86_64 -name us-vhost-vm2 \ @@ -222,8 +218,7 @@ Test > Case 4: Check virtio-net device capability > -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,csum=3Don,gues= t_csu > m=3Don,host_tso4=3Don,guest_tso4=3Don,guest_ecn=3Don,guest_ufo=3Don,host_= ufo=3Do > n \ > - -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=3Don, > + host_ufo=3Don -vnc :11 -daemonize >=20 > 3. Check UFO and TSO offload status on for the Virtio-net driver on VM1 = and > VM2:: >=20 > @@ -238,3 +233,44 @@ Test Case 4: Check virtio-net device capability > tx-tcp-segmentation: on > tx-tcp-ecn-segmentation: on > tx-tcp6-segmentation: on > + > +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 > + > +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=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 > + > +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 > \ No newline at end of file > -- > 2.17.1