test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] test_plans: remove duplicate test plan of virtio
@ 2019-06-16 23:11 Yinan
  2019-06-26  7:05 ` Tu, Lijuan
  0 siblings, 1 reply; 4+ messages in thread
From: Yinan @ 2019-06-16 23:11 UTC (permalink / raw)
  To: dts; +Cc: Wang Yinan

From: Wang Yinan <yinan.wang@intel.com>

Signed-off-by: Wang Yinan <yinan.wang@intel.com>
---
 test_plans/pvp_qemu_zero_copy_test_plan.rst | 223 --------------------
 1 file changed, 223 deletions(-)
 delete mode 100644 test_plans/pvp_qemu_zero_copy_test_plan.rst

diff --git a/test_plans/pvp_qemu_zero_copy_test_plan.rst b/test_plans/pvp_qemu_zero_copy_test_plan.rst
deleted file mode 100644
index 5d03b08..0000000
--- a/test_plans/pvp_qemu_zero_copy_test_plan.rst
+++ /dev/null
@@ -1,223 +0,0 @@
-.. Copyright (c) <2019>, Intel Corporation
-   All rights reserved.
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions
-   are met:
-
-   - Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-   - Redistributions in binary form 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.
-
-   - Neither the name of Intel Corporation nor the names of its
-     contributors may be used to endorse or promote products derived
-     from this software without specific prior written permission.
-
-   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
-   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
-   OF THE POSSIBILITY OF SUCH DAMAGE.
-
-====================================
-vhost/virtio pvp zero-copy test plan
-====================================
-
-Description
-===========
-
-Vhost dequeue zero-copy is a performance optimization for vhost, so the test case is focused on the performance check.
-As when packet size is 1518B, 10G nic could be the performance bottleneck, so we use 40G traffic genarator and 40G nic for pvp zero-copy test.
-Highlight that vhost zero copy mbufs should be consumed as soon as possible, so don't start send packets at vhost side before VM and virtio-pmd launched.
-
-Test flow
-=========
-
-TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG
-
-Test Case 1: pvp zero-copy test with different packet sizes
-===========================================================
-
-1. Bind one 40G port to igb_uio, then launch testpmd by below command::
-
-    rm -rf vhost-net*
-    ./testpmd -c 0xe -n 4 --socket-mem 1024,1024 \
-    --vdev 'eth_vhost0,iface=vhost-net,queues=1,dequeue-zero-copy=1' -- \
-    -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992
-    testpmd>set fwd mac
-
-2. Launch VM with mrg_rxbuf feature on, note that qemu_version need > qemu_2.10 for support adjusting parameter rx_queue_size::
-
-    qemu-system-x86_64 -name vm1 \
-     -cpu host -enable-kvm -m 4096 -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
-     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
-     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
-     -chardev socket,id=char0,path=./vhost-net \
-     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-     -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,rx_queue_size=1024,tx_queue_size=1024 \
-     -vnc :10
-
-3. On VM, bind virtio net to igb_uio and run testpmd::
-
-    ./dpdk-devbind.py --bind=igb_uio xx:xx.x
-    ./testpmd -c 0x3 -n 4 -- -i --nb-cores=1 --txd=1024 --rxd=1024
-    testpmd>set fwd mac
-    testpmd>start
-
-4. Start testpmd at host side after VM and virtio-pmd launched::
-
-    testpmd>start
-
-5. Send packets by packet generator with different packet sizes (64,128,256,512,1024,1518), show throughput with below command::
-
-    testpmd>show port stats all
-
-Test Case 2: pvp zero-copy test with 2 queues
-=============================================
-
-1. Bind one 40G port to igb_uio, then launch testpmd by below command::
-
-    rm -rf vhost-net*
-    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024 \
-    --vdev 'eth_vhost0,iface=vhost-net,queues=2,dequeue-zero-copy=1' -- \
-    -i --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 --txfreet=992
-    testpmd>set fwd mac
-
-2. Launch VM with vectors=2*queue_num+2 and mrg_rxbuf/mq feature on, note that qemu_version need > qemu_2.10 for support adjusting parameter rx_queue_size::
-
-    qemu-system-x86_64 -name vm1 \
-     -cpu host -enable-kvm -m 4096 -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
-     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
-     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
-     -chardev socket,id=char0,path=./vhost-net \
-     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \
-     -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=8,rx_queue_size=1024,tx_queue_size=1024 \
-     -vnc :10
-
-3. On VM, bind vdev to igb_uio and run testpmd::
-
-    ./usertools/dpdk-devbind.py --bind=igb_uio xx:xx.x
-    ./testpmd -c 0x07 -n 4 -- -i \
-    --rxq=2 --txq=2 --txd=1024 --rxd=1024 --nb-cores=2
-    testpmd>set fwd mac
-    testpmd>start
-
-4. Start testpmd at host side after VM and virtio-pmd launched::
-
-    testpmd>start
-
-5. Send packets by packet generator with different packet sizes (64,128,256,512,1024,1518), show throughput with below command::
-
-    testpmd>show port stats all
-
-6. Check each queue's rx/tx packet numbers at vhost side::
-
-    testpmd>stop
-
-Test Case 3: pvp zero-copy test with driver unload test
-=======================================================
-
-1. Bind one 40G port to igb_uio, then launch testpmd by below command::
-
-    rm -rf vhost-net*
-    ./testpmd -l 1-5 -n 4 --socket-mem 1024,1024 \
-    --vdev 'eth_vhost0,iface=vhost-net,queues=16,dequeue-zero-copy=1,client=1' -- \
-    -i --nb-cores=4 --rxq=16 --txq=16 --txd=1024 --rxd=1024 --txfreet=992
-    testpmd>set fwd mac
-
-2. Launch VM with vectors=2*queue_num+2 and mrg_rxbuf/mq feature on, note that qemu_version need > qemu_2.10 for support adjusting parameter rx_queue_size::
-
-    qemu-system-x86_64 -name vm1 \
-     -cpu host -enable-kvm -m 4096 -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
-     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
-     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
-     -chardev socket,id=char0,path=./vhost-net,server \
-     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=16 \
-     -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=40,rx_queue_size=1024,tx_queue_size=1024 \
-     -vnc :10
-
-3. On VM, bind virtio net to igb_uio and run testpmd::
-
-    ./usertools/dpdk-devbind.py --bind=igb_uio xx:xx.x
-    ./testpmd -l 0-4 -n 4 --socket-mem 1024,0 -- -i --nb-cores=4 --rxq=16 --txq=16 --txd=1024 --rxd=1024
-    testpmd>set fwd rxonly
-    testpmd>start
-
-4. Start testpmd at host side after VM launched::
-
-    testpmd>start
-
-5. Send packets by packet generator with different packet sizes(64,128,256,512,1024,1518), show throughput with below command::
-
-    testpmd>show port stats all
-
-6. Relaunch testpmd at virtio side in VM for driver reloading::
-
-    testpmd>quit
-    ./testpmd -l 0-4 -n 4 --socket-mem 1024,0 -- -i --nb-cores=4 --rxq=16 --txq=16 --txd=1024 --rxd=1024
-    testpmd>set fwd mac
-    testpmd>start
-
-7. Send packets by packet generator with different packet sizes (64,128,256,512,1024,1518), show throughput with below command::
-
-    testpmd>show port stats all
-
-8. Check each queue's rx/tx packet numbers at vhost side::
-
-    testpmd>stop
-
-Test Case 4: pvp zero-copy test with maximum txfreet
-====================================================
-
-1. Bind one 40G port to igb_uio, then launch testpmd by below command::
-
-    rm -rf vhost-net*
-    ./testpmd -l 1-5 -n 4 --socket-mem 1024,1024 \
-    --vdev 'eth_vhost0,iface=vhost-net,queues=16,dequeue-zero-copy=1,client=1' -- \
-    -i --nb-cores=4 --rxq=16 --txq=16 --txd=1024 --rxd=1024 --txfreet=1020 --txrs=4
-    testpmd>set fwd mac
-
-2. Launch VM with vectors=2*queue_num+2 and mrg_rxbuf/mq feature on, note that qemu_version need > qemu_2.10 for support adjusting parameter rx_queue_size::
-
-    qemu-system-x86_64 -name vm1 \
-     -cpu host -enable-kvm -m 4096 -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
-     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
-     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
-     -chardev socket,id=char0,path=./vhost-net,server \
-     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=16 \
-     -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=40,rx_queue_size=1024,tx_queue_size=1024 \
-     -vnc :10
-
-3. On VM, bind virtio net to igb_uio and run testpmd::
-
-    ./usertools/dpdk-devbind.py --bind=igb_uio xx:xx.x
-    ./testpmd -l 0-4 -n 4 --socket-mem 1024,0 -- -i --nb-cores=4 --rxq=16 --txq=16 --txd=1024 --rxd=1024
-    testpmd>set fwd mac
-    testpmd>start
-
-4. Start testpmd at host side after VM launched::
-
-    testpmd>start
-
-5. Send packets by packet generator with different packet sizes(64,128,256,512,1024,1518), show throughput with below command::
-
-    testpmd>show port stats all
-
-6. Check each queue's rx/tx packet numbers at vhost side::
-
-    testpmd>stop
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH] test_plans: remove duplicate test plan of virtio
  2019-06-16 23:11 [dts] [PATCH] test_plans: remove duplicate test plan of virtio Yinan
@ 2019-06-26  7:05 ` Tu, Lijuan
  0 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2019-06-26  7:05 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan
> Sent: Monday, June 17, 2019 7:12 AM
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>
> Subject: [dts] [PATCH] test_plans: remove duplicate test plan of virtio
> 
> From: Wang Yinan <yinan.wang@intel.com>
> 
> Signed-off-by: Wang Yinan <yinan.wang@intel.com>
> ---
>  test_plans/pvp_qemu_zero_copy_test_plan.rst | 223 --------------------
>  1 file changed, 223 deletions(-)
>  delete mode 100644 test_plans/pvp_qemu_zero_copy_test_plan.rst
> 
> diff --git a/test_plans/pvp_qemu_zero_copy_test_plan.rst
> b/test_plans/pvp_qemu_zero_copy_test_plan.rst
> deleted file mode 100644
> index 5d03b08..0000000
> --- a/test_plans/pvp_qemu_zero_copy_test_plan.rst
> +++ /dev/null
> @@ -1,223 +0,0 @@
> -.. Copyright (c) <2019>, Intel Corporation
> -   All rights reserved.
> -
> -   Redistribution and use in source and binary forms, with or without
> -   modification, are permitted provided that the following conditions
> -   are met:
> -
> -   - Redistributions of source code must retain the above copyright
> -     notice, this list of conditions and the following disclaimer.
> -
> -   - Redistributions in binary form 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.
> -
> -   - Neither the name of Intel Corporation nor the names of its
> -     contributors may be used to endorse or promote products derived
> -     from this software without specific prior written permission.
> -
> -   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
> CONTRIBUTORS
> -   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> -   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
> FITNESS
> -   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> -   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
> INDIRECT,
> -   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
> -   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
> OR
> -   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> -   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> CONTRACT,
> -   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> -   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
> ADVISED
> -   OF THE POSSIBILITY OF SUCH DAMAGE.
> -
> -====================================
> -vhost/virtio pvp zero-copy test plan
> -====================================
> -
> -Description
> -===========
> -
> -Vhost dequeue zero-copy is a performance optimization for vhost, so the
> test case is focused on the performance check.
> -As when packet size is 1518B, 10G nic could be the performance bottleneck,
> so we use 40G traffic genarator and 40G nic for pvp zero-copy test.
> -Highlight that vhost zero copy mbufs should be consumed as soon as
> possible, so don't start send packets at vhost side before VM and virtio-pmd
> launched.
> -
> -Test flow
> -=========
> -
> -TG --> NIC --> Vhost --> Virtio--> Vhost --> NIC --> TG
> -
> -Test Case 1: pvp zero-copy test with different packet sizes -
> ===========================================================
> -
> -1. Bind one 40G port to igb_uio, then launch testpmd by below command::
> -
> -    rm -rf vhost-net*
> -    ./testpmd -c 0xe -n 4 --socket-mem 1024,1024 \
> -    --vdev 'eth_vhost0,iface=vhost-net,queues=1,dequeue-zero-copy=1' -- \
> -    -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992
> -    testpmd>set fwd mac
> -
> -2. Launch VM with mrg_rxbuf feature on, note that qemu_version need >
> qemu_2.10 for support adjusting parameter rx_queue_size::
> -
> -    qemu-system-x86_64 -name vm1 \
> -     -cpu host -enable-kvm -m 4096 -object memory-backend-
> file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa
> node,memdev=mem -mem-prealloc \
> -     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net
> nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
> -     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
> -     -chardev socket,id=char0,path=./vhost-net \
> -     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
> -     -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,rx_queue_size=102
> 4,tx_queue_size=1024 \
> -     -vnc :10
> -
> -3. On VM, bind virtio net to igb_uio and run testpmd::
> -
> -    ./dpdk-devbind.py --bind=igb_uio xx:xx.x
> -    ./testpmd -c 0x3 -n 4 -- -i --nb-cores=1 --txd=1024 --rxd=1024
> -    testpmd>set fwd mac
> -    testpmd>start
> -
> -4. Start testpmd at host side after VM and virtio-pmd launched::
> -
> -    testpmd>start
> -
> -5. Send packets by packet generator with different packet sizes
> (64,128,256,512,1024,1518), show throughput with below command::
> -
> -    testpmd>show port stats all
> -
> -Test Case 2: pvp zero-copy test with 2 queues -
> =============================================
> -
> -1. Bind one 40G port to igb_uio, then launch testpmd by below command::
> -
> -    rm -rf vhost-net*
> -    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024 \
> -    --vdev 'eth_vhost0,iface=vhost-net,queues=2,dequeue-zero-copy=1' -- \
> -    -i --nb-cores=2 --rxq=2 --txq=2 --txd=1024 --rxd=1024 --txfreet=992
> -    testpmd>set fwd mac
> -
> -2. Launch VM with vectors=2*queue_num+2 and mrg_rxbuf/mq feature on,
> note that qemu_version need > qemu_2.10 for support adjusting parameter
> rx_queue_size::
> -
> -    qemu-system-x86_64 -name vm1 \
> -     -cpu host -enable-kvm -m 4096 -object memory-backend-
> file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa
> node,memdev=mem -mem-prealloc \
> -     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net
> nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
> -     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
> -     -chardev socket,id=char0,path=./vhost-net \
> -     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2
> \
> -     -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=8,r
> x_queue_size=1024,tx_queue_size=1024 \
> -     -vnc :10
> -
> -3. On VM, bind vdev to igb_uio and run testpmd::
> -
> -    ./usertools/dpdk-devbind.py --bind=igb_uio xx:xx.x
> -    ./testpmd -c 0x07 -n 4 -- -i \
> -    --rxq=2 --txq=2 --txd=1024 --rxd=1024 --nb-cores=2
> -    testpmd>set fwd mac
> -    testpmd>start
> -
> -4. Start testpmd at host side after VM and virtio-pmd launched::
> -
> -    testpmd>start
> -
> -5. Send packets by packet generator with different packet sizes
> (64,128,256,512,1024,1518), show throughput with below command::
> -
> -    testpmd>show port stats all
> -
> -6. Check each queue's rx/tx packet numbers at vhost side::
> -
> -    testpmd>stop
> -
> -Test Case 3: pvp zero-copy test with driver unload test -
> =======================================================
> -
> -1. Bind one 40G port to igb_uio, then launch testpmd by below command::
> -
> -    rm -rf vhost-net*
> -    ./testpmd -l 1-5 -n 4 --socket-mem 1024,1024 \
> -    --vdev 'eth_vhost0,iface=vhost-net,queues=16,dequeue-zero-
> copy=1,client=1' -- \
> -    -i --nb-cores=4 --rxq=16 --txq=16 --txd=1024 --rxd=1024 --txfreet=992
> -    testpmd>set fwd mac
> -
> -2. Launch VM with vectors=2*queue_num+2 and mrg_rxbuf/mq feature on,
> note that qemu_version need > qemu_2.10 for support adjusting parameter
> rx_queue_size::
> -
> -    qemu-system-x86_64 -name vm1 \
> -     -cpu host -enable-kvm -m 4096 -object memory-backend-
> file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa
> node,memdev=mem -mem-prealloc \
> -     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net
> nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
> -     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
> -     -chardev socket,id=char0,path=./vhost-net,server \
> -     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=16
> \
> -     -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=40,
> rx_queue_size=1024,tx_queue_size=1024 \
> -     -vnc :10
> -
> -3. On VM, bind virtio net to igb_uio and run testpmd::
> -
> -    ./usertools/dpdk-devbind.py --bind=igb_uio xx:xx.x
> -    ./testpmd -l 0-4 -n 4 --socket-mem 1024,0 -- -i --nb-cores=4 --rxq=16 --
> txq=16 --txd=1024 --rxd=1024
> -    testpmd>set fwd rxonly
> -    testpmd>start
> -
> -4. Start testpmd at host side after VM launched::
> -
> -    testpmd>start
> -
> -5. Send packets by packet generator with different packet
> sizes(64,128,256,512,1024,1518), show throughput with below command::
> -
> -    testpmd>show port stats all
> -
> -6. Relaunch testpmd at virtio side in VM for driver reloading::
> -
> -    testpmd>quit
> -    ./testpmd -l 0-4 -n 4 --socket-mem 1024,0 -- -i --nb-cores=4 --rxq=16 --
> txq=16 --txd=1024 --rxd=1024
> -    testpmd>set fwd mac
> -    testpmd>start
> -
> -7. Send packets by packet generator with different packet sizes
> (64,128,256,512,1024,1518), show throughput with below command::
> -
> -    testpmd>show port stats all
> -
> -8. Check each queue's rx/tx packet numbers at vhost side::
> -
> -    testpmd>stop
> -
> -Test Case 4: pvp zero-copy test with maximum txfreet -
> ====================================================
> -
> -1. Bind one 40G port to igb_uio, then launch testpmd by below command::
> -
> -    rm -rf vhost-net*
> -    ./testpmd -l 1-5 -n 4 --socket-mem 1024,1024 \
> -    --vdev 'eth_vhost0,iface=vhost-net,queues=16,dequeue-zero-
> copy=1,client=1' -- \
> -    -i --nb-cores=4 --rxq=16 --txq=16 --txd=1024 --rxd=1024 --txfreet=1020 --
> txrs=4
> -    testpmd>set fwd mac
> -
> -2. Launch VM with vectors=2*queue_num+2 and mrg_rxbuf/mq feature on,
> note that qemu_version need > qemu_2.10 for support adjusting parameter
> rx_queue_size::
> -
> -    qemu-system-x86_64 -name vm1 \
> -     -cpu host -enable-kvm -m 4096 -object memory-backend-
> file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa
> node,memdev=mem -mem-prealloc \
> -     -smp cores=5,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -     -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net
> nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f \
> -     -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
> -     -chardev socket,id=char0,path=./vhost-net,server \
> -     -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=16
> \
> -     -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,mq=on,vectors=40,
> rx_queue_size=1024,tx_queue_size=1024 \
> -     -vnc :10
> -
> -3. On VM, bind virtio net to igb_uio and run testpmd::
> -
> -    ./usertools/dpdk-devbind.py --bind=igb_uio xx:xx.x
> -    ./testpmd -l 0-4 -n 4 --socket-mem 1024,0 -- -i --nb-cores=4 --rxq=16 --
> txq=16 --txd=1024 --rxd=1024
> -    testpmd>set fwd mac
> -    testpmd>start
> -
> -4. Start testpmd at host side after VM launched::
> -
> -    testpmd>start
> -
> -5. Send packets by packet generator with different packet
> sizes(64,128,256,512,1024,1518), show throughput with below command::
> -
> -    testpmd>show port stats all
> -
> -6. Check each queue's rx/tx packet numbers at vhost side::
> -
> -    testpmd>stop
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH] test_plans: remove duplicate test plan of virtio
  2019-06-26 18:57 Yinan
@ 2019-07-10  6:31 ` Tu, Lijuan
  0 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2019-07-10  6:31 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan
> Sent: Thursday, June 27, 2019 2:58 AM
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>
> Subject: [dts] [PATCH] test_plans: remove duplicate test plan of virtio
> 
> From: Wang Yinan <yinan.wang@intel.com>
> 
> Signed-off-by: Wang Yinan <yinan.wang@intel.com>
> ---
>  test_plans/vhost_gro_test_plan.rst | 308 -----------------------------
>  1 file changed, 308 deletions(-)
>  delete mode 100644 test_plans/vhost_gro_test_plan.rst
> 
> diff --git a/test_plans/vhost_gro_test_plan.rst
> b/test_plans/vhost_gro_test_plan.rst
> deleted file mode 100644
> index e2652b3..0000000
> --- a/test_plans/vhost_gro_test_plan.rst
> +++ /dev/null
> @@ -1,308 +0,0 @@
> -.. Copyright (c) <2019>, Intel Corporation
> -   All rights reserved.
> -
> -   Redistribution and use in source and binary forms, with or without
> -   modification, are permitted provided that the following conditions
> -   are met:
> -
> -   - Redistributions of source code must retain the above copyright
> -     notice, this list of conditions and the following disclaimer.
> -
> -   - Redistributions in binary form 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.
> -
> -   - Neither the name of Intel Corporation nor the names of its
> -     contributors may be used to endorse or promote products derived
> -     from this software without specific prior written permission.
> -
> -   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
> CONTRIBUTORS
> -   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
> -   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
> FITNESS
> -   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
> -   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
> INDIRECT,
> -   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
> -   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
> OR
> -   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
> -   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
> CONTRACT,
> -   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
> -   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
> ADVISED
> -   OF THE POSSIBILITY OF SUCH DAMAGE.
> -
> -==================
> -DPDK GRO test plan
> -==================
> -
> -This test plan will cover vdev GRO light/heavy mode test.
> -As we need use checksum fwd in this test and make sure ping and iperf
> packets can reach each side.
> -
> -Prerequisites
> -=============
> -
> -Modify the testpmd code as following::
> -
> -    --- a/app/test-pmd/csumonly.c
> -    +++ b/app/test-pmd/csumonly.c
> -    @@ -693,10 +693,12 @@ pkt_burst_checksum_forward(struct
> fwd_stream *fs)
> -                     * and inner headers */
> -
> -                    eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
> -    +#if 0
> -                    ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
> -                                    &eth_hdr->d_addr);
> -                    ether_addr_copy(&ports[fs->tx_port].eth_addr,
> -                                    &eth_hdr->s_addr);
> -    +#endif
> -                    parse_ethernet(eth_hdr, &info);
> -                    l3_hdr = (char *)eth_hdr + info.l2_len;
> -
> -Test flow
> -=========
> -
> -NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net
> -
> -Test Case1: DPDK GRO lightmode test with tcp traffic -
> ====================================================
> -
> -1. Connect two nic port directly, put nic2 into another namesapce and turn
> on the tso of this nic port by below cmds::
> -
> -    ip netns del ns1
> -    ip netns add ns1
> -    ip link set [enp216s0f0] netns ns1       # [enp216s0f0] is the name of nic2
> -    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.1.8 up
> -    ip netns exec ns1 ethtool -K [enp216s0f0] tso on
> -
> -2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush
> interval to 1::
> -
> -    ./dpdk-devbind.py -b igb_uio xx:xx.x
> -    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
> -    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' --
> -i --txd=1024 --rxd=1024
> -    testpmd>set fwd csum
> -    testpmd>stop
> -    testpmd>port stop 0
> -    testpmd>port stop 1
> -    testpmd>csum set tcp hw 0
> -    testpmd>csum set ip hw 0
> -    testpmd>csum set tcp hw 1
> -    testpmd>csum set ip hw 1
> -    testpmd>set port 0 gro on
> -    testpmd>set gro flush 1
> -    testpmd>port start 0
> -    testpmd>port start 1
> -    testpmd>start
> -
> -3.  Set up vm with virto device and using kernel virtio-net driver:
> -
> -  ::
> -
> -    taskset -c 13 \
> -    qemu-system-x86_64 -name us-vhost-vm1 \
> -       -cpu host -enable-kvm -m 2048 -object memory-backend-
> file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
> -       -numa node,memdev=mem \
> -       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -
> net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net
> user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
> -       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -       -chardev socket,id=char0,path=./vhost-net \
> -       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
> -       -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,h
> ost_tso4=on,guest_tso4=on \
> -       -vnc :10 -daemonize
> -
> -4. In vm, config the virtio-net device with ip and turn the kernel gro off::
> -
> -    ifconfig [ens3] 1.1.1.2 up  # [ens3] is the name of virtio-net
> -    ethtool -K [ens3] gro off
> -
> -5. Start iperf test, run iperf server at vm side and iperf client at host side,
> check throughput in log::
> -
> -    Host side :  ip netns exec ns1 iperf -c 1.1.1.2 -i 1 -t 60 -m -P 1
> -    VM side:     iperf -s
> -
> -Test Case2: DPDK GRO heavymode test with tcp traffic -
> ====================================================
> -
> -1. Connect two nic port directly, put nic2 into another namesapce and turn
> on the tso of this nic port by below cmds::
> -
> -    ip netns del ns1
> -    ip netns add ns1
> -    ip link set [enp216s0f0] netns ns1       # [enp216s0f0] is the name of nic2
> -    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.1.8 up
> -    ip netns exec ns1 ethtool -K [enp216s0f0] tso on
> -
> -2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush
> interval to 2::
> -
> -    ./dpdk-devbind.py -b igb_uio xx:xx.x
> -    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
> -    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' --
> -i --txd=1024 --rxd=1024
> -    testpmd>set fwd csum
> -    testpmd>stop
> -    testpmd>port stop 0
> -    testpmd>port stop 1
> -    testpmd>csum set tcp hw 0
> -    testpmd>csum set ip hw 0
> -    testpmd>csum set tcp hw 1
> -    testpmd>csum set ip hw 1
> -    testpmd>set port 0 gro on
> -    testpmd>set gro flush 2
> -    testpmd>port start 0
> -    testpmd>port start 1
> -    testpmd>start
> -
> -3.  Set up vm with virto device and using kernel virtio-net driver:
> -
> -  ::
> -
> -    taskset -c 13 \
> -    qemu-system-x86_64 -name us-vhost-vm1 \
> -       -cpu host -enable-kvm -m 2048 -object memory-backend-
> file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
> -       -numa node,memdev=mem \
> -       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -
> net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net
> user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
> -       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -       -chardev socket,id=char0,path=./vhost-net \
> -       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
> -       -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,h
> ost_tso4=on,guest_tso4=on \
> -       -vnc :10 -daemonize
> -
> -4. In vm, config the virtio-net device with ip and turn the kernel gro off::
> -
> -    ifconfig [ens3] 1.1.1.2 up  # [ens3] is the name of virtio-net
> -    ethtool -K [ens3] gro off
> -
> -5. Start iperf test, run iperf server at vm side and iperf client at host side,
> check throughput in log::
> -
> -    Host side :  ip netns exec ns1 iperf -c 1.1.1.2 -i 1 -t 60 -m -P 1
> -    VM side:     iperf -s
> -
> -Test Case3: DPDK GRO heavymode_flush4 test with tcp traffic -
> ===========================================================
> -
> -1. Connect two nic port directly, put nic2 into another namesapce and turn
> on the tso of this nic port by below cmds::
> -
> -    ip netns del ns1
> -    ip netns add ns1
> -    ip link set [enp216s0f0] netns ns1       # [enp216s0f0] is the name of nic2
> -    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.1.8 up
> -    ip netns exec ns1 ethtool -K [enp216s0f0] tso on
> -
> -2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush
> interval to 4::
> -
> -    ./dpdk-devbind.py -b igb_uio xx:xx.x
> -    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
> -    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' --
> -i --txd=1024 --rxd=1024
> -    testpmd>set fwd csum
> -    testpmd>stop
> -    testpmd>port stop 0
> -    testpmd>port stop 1
> -    testpmd>csum set tcp hw 0
> -    testpmd>csum set ip hw 0
> -    testpmd>csum set tcp hw 1
> -    testpmd>csum set ip hw 1
> -    testpmd>set port 0 gro on
> -    testpmd>set gro flush 4
> -    testpmd>port start 0
> -    testpmd>port start 1
> -    testpmd>start
> -
> -3.  Set up vm with virto device and using kernel virtio-net driver:
> -
> -  ::
> -
> -    taskset -c 13 \
> -    qemu-system-x86_64 -name us-vhost-vm1 \
> -       -cpu host -enable-kvm -m 2048 -object memory-backend-
> file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
> -       -numa node,memdev=mem \
> -       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -
> net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net
> user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
> -       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -       -chardev socket,id=char0,path=./vhost-net \
> -       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
> -       -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,h
> ost_tso4=on,guest_tso4=on \
> -       -vnc :10 -daemonize
> -
> -4. In vm, config the virtio-net device with ip and turn the kernel gro off::
> -
> -    ifconfig [ens3] 1.1.1.2 up  # [ens3] is the name of virtio-net
> -    ethtool -K [ens3] gro off
> -
> -5. Start iperf test, run iperf server at vm side and iperf client at host side,
> check throughput in log::
> -
> -    Host side :  ip netns exec ns1 iperf -c 1.1.1.2 -i 1 -t 60 -m -P 1
> -    VM side:     iperf -s
> -
> -Test Case4: DPDK GRO test with vxlan traffic -
> ============================================
> -
> -Vxlan topology
> ---------------
> -
> -::
> -
> -    VM          Host
> -  50.1.1.2      50.1.1.1
> -     |           |
> -  1.1.2.3       1.1.2.4
> -     |------------Testpmd------------|
> -
> -1. Connect two nic port directly, put nic2 into another namesapce and
> create Host VxLAN port::
> -
> -    ip netns del ns1
> -    ip netns add ns1
> -    ip link set [enp216s0f0] netns ns1    # [enp216s0f0] is the name of nic2
> -    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.2.4/24 up
> -    VXLAN_NAME=vxlan1
> -    VXLAN_IP=50.1.1.1
> -    IF_NAME=[enp216s0f0]
> -    VM_IP=1.1.2.3
> -    ip netns exec t2 ip link add $VXLAN_NAME type vxlan id 42 dev $IF_NAME
> dstport 4789
> -    ip netns exec t2 bridge fdb append to 00:00:00:00:00:00 dst $VM_IP dev
> $VXLAN_NAME
> -    ip netns exec t2 ip addr add $VXLAN_IP/24 dev $VXLAN_NAME
> -    ip netns exec t2 ip link set up dev $VXLAN_NAME
> -
> -2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush
> interval to 4::
> -
> -    ./dpdk-devbind.py -b igb_uio xx:xx.x
> -    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
> -    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' --
> -i --txd=1024 --rxd=1024
> -    testpmd>set fwd csum
> -    testpmd>stop
> -    testpmd>port stop 0
> -    testpmd>port stop 1
> -    testpmd>csum set tcp hw 0
> -    testpmd>csum set ip hw 0
> -    testpmd>csum parse-tunnel on 0
> -    testpmd>csum parse-tunnel on 1
> -    testpmd>csum set outer-ip hw 0
> -    testpmd>csum set tcp hw 1
> -    testpmd>csum set ip hw 1
> -    testpmd>set port 0 gro on
> -    testpmd>set gro flush 4
> -    testpmd>port start 0
> -    testpmd>port start 1
> -    testpmd>start
> -
> -3.  Set up vm with virto device and using kernel virtio-net driver:
> -
> -  ::
> -
> -    taskset -c 13 \
> -    qemu-system-x86_64 -name us-vhost-vm1 \
> -       -cpu host -enable-kvm -m 2048 -object memory-backend-
> file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
> -       -numa node,memdev=mem \
> -       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -
> net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net
> user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
> -       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
> -       -chardev socket,id=char0,path=./vhost-net \
> -       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
> -       -device virtio-net-
> pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,h
> ost_tso4=on,guest_tso4=on \
> -       -vnc :10 -daemonize
> -
> -4. In vm, config the virtio-net device with ip and turn the kernel gro off::
> -
> -    ip link add vxlan0 type vxlan id 42 dev [ens3] dstport 4789   # [ens3] is the
> name of virtio-net
> -    bridge fdb add to 00:00:00:00:00:00 dst 1.1.2.4 dev vxlan0
> -    ip addr add 50.1.1.2/24 dev vxlan0
> -    ip link set up dev vxlan0
> -    ifconfig [ens3] 1.1.2.3/24 up
> -    ifconfig -a
> -
> -5. Start iperf test, run iperf server at vm side and iperf client at host side,
> check throughput in log::
> -
> -    Host side :  ip netns exec t2 iperf -c 50.1.1.2 -i 2 -t 60 -f g -m
> -    VM side:     iperf -s -f g
> \ No newline at end of file
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dts] [PATCH] test_plans: remove duplicate test plan of virtio
@ 2019-06-26 18:57 Yinan
  2019-07-10  6:31 ` Tu, Lijuan
  0 siblings, 1 reply; 4+ messages in thread
From: Yinan @ 2019-06-26 18:57 UTC (permalink / raw)
  To: dts; +Cc: Wang Yinan

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=Y, Size: 13392 bytes --]

From: Wang Yinan <yinan.wang@intel.com>

Signed-off-by: Wang Yinan <yinan.wang@intel.com>
---
 test_plans/vhost_gro_test_plan.rst | 308 -----------------------------
 1 file changed, 308 deletions(-)
 delete mode 100644 test_plans/vhost_gro_test_plan.rst

diff --git a/test_plans/vhost_gro_test_plan.rst b/test_plans/vhost_gro_test_plan.rst
deleted file mode 100644
index e2652b3..0000000
--- a/test_plans/vhost_gro_test_plan.rst
+++ /dev/null
@@ -1,308 +0,0 @@
-.. Copyright (c) <2019>, Intel Corporation
-   All rights reserved.
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions
-   are met:
-
-   - Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-   - Redistributions in binary form 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.
-
-   - Neither the name of Intel Corporation nor the names of its
-     contributors may be used to endorse or promote products derived
-     from this software without specific prior written permission.
-
-   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-   COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-   SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
-   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
-   OF THE POSSIBILITY OF SUCH DAMAGE.
-
-==================
-DPDK GRO test plan
-==================
-
-This test plan will cover vdev GRO light/heavy mode test.
-As we need use checksum fwd in this test and make sure ping and iperf packets can reach each side.
-
-Prerequisites
-=============
-
-Modify the testpmd code as following::
-
-    --- a/app/test-pmd/csumonly.c
-    +++ b/app/test-pmd/csumonly.c
-    @@ -693,10 +693,12 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
-                     * and inner headers */
-     
-                    eth_hdr = rte_pktmbuf_mtod(m, struct ether_hdr *);
-    +#if 0
-                    ether_addr_copy(&peer_eth_addrs[fs->peer_addr],
-                                    &eth_hdr->d_addr);
-                    ether_addr_copy(&ports[fs->tx_port].eth_addr,
-                                    &eth_hdr->s_addr);
-    +#endif
-                    parse_ethernet(eth_hdr, &info);
-                    l3_hdr = (char *)eth_hdr + info.l2_len;
-
-Test flow
-=========
-
-NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net
-
-Test Case1: DPDK GRO lightmode test with tcp traffic
-====================================================
-
-1. Connect two nic port directly, put nic2 into another namesapce and turn on the tso of this nic port by below cmds::
-
-    ip netns del ns1
-    ip netns add ns1
-    ip link set [enp216s0f0] netns ns1       # [enp216s0f0] is the name of nic2
-    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.1.8 up
-    ip netns exec ns1 ethtool -K [enp216s0f0] tso on
-
-2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush interval to 1::
-
-    ./dpdk-devbind.py -b igb_uio xx:xx.x
-    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
-    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024
-    testpmd>set fwd csum
-    testpmd>stop
-    testpmd>port stop 0
-    testpmd>port stop 1
-    testpmd>csum set tcp hw 0
-    testpmd>csum set ip hw 0
-    testpmd>csum set tcp hw 1
-    testpmd>csum set ip hw 1
-    testpmd>set port 0 gro on
-    testpmd>set gro flush 1
-    testpmd>port start 0
-    testpmd>port start 1
-    testpmd>start
-
-3.  Set up vm with virto device and using kernel virtio-net driver:
-
-  ::
-
-    taskset -c 13 \
-    qemu-system-x86_64 -name us-vhost-vm1 \
-       -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
-       -numa node,memdev=mem \
-       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
-       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-       -chardev socket,id=char0,path=./vhost-net \
-       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-       -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on \
-       -vnc :10 -daemonize
-
-4. In vm, config the virtio-net device with ip and turn the kernel gro off::
-
-    ifconfig [ens3] 1.1.1.2 up  # [ens3] is the name of virtio-net
-    ethtool -K [ens3] gro off
-
-5. Start iperf test, run iperf server at vm side and iperf client at host side, check throughput in log::
-
-    Host side :  ip netns exec ns1 iperf -c 1.1.1.2 -i 1 -t 60 -m -P 1
-    VM side:     iperf -s
-
-Test Case2: DPDK GRO heavymode test with tcp traffic
-====================================================
-
-1. Connect two nic port directly, put nic2 into another namesapce and turn on the tso of this nic port by below cmds::
-
-    ip netns del ns1
-    ip netns add ns1
-    ip link set [enp216s0f0] netns ns1       # [enp216s0f0] is the name of nic2
-    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.1.8 up
-    ip netns exec ns1 ethtool -K [enp216s0f0] tso on
-
-2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush interval to 2::
-
-    ./dpdk-devbind.py -b igb_uio xx:xx.x
-    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
-    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024
-    testpmd>set fwd csum
-    testpmd>stop
-    testpmd>port stop 0
-    testpmd>port stop 1
-    testpmd>csum set tcp hw 0
-    testpmd>csum set ip hw 0
-    testpmd>csum set tcp hw 1
-    testpmd>csum set ip hw 1
-    testpmd>set port 0 gro on
-    testpmd>set gro flush 2
-    testpmd>port start 0
-    testpmd>port start 1
-    testpmd>start
-
-3.  Set up vm with virto device and using kernel virtio-net driver:
-
-  ::
-
-    taskset -c 13 \
-    qemu-system-x86_64 -name us-vhost-vm1 \
-       -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
-       -numa node,memdev=mem \
-       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
-       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-       -chardev socket,id=char0,path=./vhost-net \
-       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-       -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on \
-       -vnc :10 -daemonize
-
-4. In vm, config the virtio-net device with ip and turn the kernel gro off::
-
-    ifconfig [ens3] 1.1.1.2 up  # [ens3] is the name of virtio-net
-    ethtool -K [ens3] gro off
-
-5. Start iperf test, run iperf server at vm side and iperf client at host side, check throughput in log::
-
-    Host side :  ip netns exec ns1 iperf -c 1.1.1.2 -i 1 -t 60 -m -P 1
-    VM side:     iperf -s
-
-Test Case3: DPDK GRO heavymode_flush4 test with tcp traffic
-===========================================================
-
-1. Connect two nic port directly, put nic2 into another namesapce and turn on the tso of this nic port by below cmds::
-
-    ip netns del ns1
-    ip netns add ns1
-    ip link set [enp216s0f0] netns ns1       # [enp216s0f0] is the name of nic2
-    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.1.8 up
-    ip netns exec ns1 ethtool -K [enp216s0f0] tso on
-
-2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush interval to 4::
-
-    ./dpdk-devbind.py -b igb_uio xx:xx.x
-    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
-    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024
-    testpmd>set fwd csum
-    testpmd>stop
-    testpmd>port stop 0
-    testpmd>port stop 1
-    testpmd>csum set tcp hw 0
-    testpmd>csum set ip hw 0
-    testpmd>csum set tcp hw 1
-    testpmd>csum set ip hw 1
-    testpmd>set port 0 gro on
-    testpmd>set gro flush 4
-    testpmd>port start 0
-    testpmd>port start 1
-    testpmd>start
-
-3.  Set up vm with virto device and using kernel virtio-net driver:
-
-  ::
-
-    taskset -c 13 \
-    qemu-system-x86_64 -name us-vhost-vm1 \
-       -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
-       -numa node,memdev=mem \
-       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
-       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-       -chardev socket,id=char0,path=./vhost-net \
-       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-       -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on \
-       -vnc :10 -daemonize
-
-4. In vm, config the virtio-net device with ip and turn the kernel gro off::
-
-    ifconfig [ens3] 1.1.1.2 up  # [ens3] is the name of virtio-net
-    ethtool -K [ens3] gro off
-
-5. Start iperf test, run iperf server at vm side and iperf client at host side, check throughput in log::
-
-    Host side :  ip netns exec ns1 iperf -c 1.1.1.2 -i 1 -t 60 -m -P 1
-    VM side:     iperf -s
-
-Test Case4: DPDK GRO test with vxlan traffic
-============================================
-
-Vxlan topology
---------------
-
-::
-
-    VM          Host
-  50.1.1.2      50.1.1.1
-     |           |
-  1.1.2.3       1.1.2.4
-     |------------Testpmd------------|
-
-1. Connect two nic port directly, put nic2 into another namesapce and create Host VxLAN port::
-
-    ip netns del ns1
-    ip netns add ns1
-    ip link set [enp216s0f0] netns ns1    # [enp216s0f0] is the name of nic2
-    ip netns exec ns1 ifconfig [enp216s0f0] 1.1.2.4/24 up
-    VXLAN_NAME=vxlan1
-    VXLAN_IP=50.1.1.1
-    IF_NAME=[enp216s0f0]
-    VM_IP=1.1.2.3
-    ip netns exec t2 ip link add $VXLAN_NAME type vxlan id 42 dev $IF_NAME dstport 4789
-    ip netns exec t2 bridge fdb append to 00:00:00:00:00:00 dst $VM_IP dev $VXLAN_NAME
-    ip netns exec t2 ip addr add $VXLAN_IP/24 dev $VXLAN_NAME
-    ip netns exec t2 ip link set up dev $VXLAN_NAME
-
-2. Bind nic1 to igb_uio, launch vhost-user with testpmd and set flush interval to 4::
-
-    ./dpdk-devbind.py -b igb_uio xx:xx.x
-    ./testpmd -l 2-4 -n 4 --socket-mem 1024,1024  --legacy-mem \
-    --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --txd=1024 --rxd=1024
-    testpmd>set fwd csum
-    testpmd>stop
-    testpmd>port stop 0
-    testpmd>port stop 1
-    testpmd>csum set tcp hw 0
-    testpmd>csum set ip hw 0
-    testpmd>csum parse-tunnel on 0
-    testpmd>csum parse-tunnel on 1
-    testpmd>csum set outer-ip hw 0
-    testpmd>csum set tcp hw 1
-    testpmd>csum set ip hw 1
-    testpmd>set port 0 gro on
-    testpmd>set gro flush 4
-    testpmd>port start 0
-    testpmd>port start 1
-    testpmd>start
-
-3.  Set up vm with virto device and using kernel virtio-net driver:
-
-  ::
-
-    taskset -c 13 \
-    qemu-system-x86_64 -name us-vhost-vm1 \
-       -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on \
-       -numa node,memdev=mem \
-       -mem-prealloc -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6001-:22 \
-       -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu16.img  \
-       -chardev socket,id=char0,path=./vhost-net \
-       -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-       -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on \
-       -vnc :10 -daemonize
-
-4. In vm, config the virtio-net device with ip and turn the kernel gro off::
-
-    ip link add vxlan0 type vxlan id 42 dev [ens3] dstport 4789   # [ens3] is the name of virtio-net
-    bridge fdb add to 00:00:00:00:00:00 dst 1.1.2.4 dev vxlan0
-    ip addr add 50.1.1.2/24 dev vxlan0
-    ip link set up dev vxlan0
-    ifconfig [ens3] 1.1.2.3/24 up
-    ifconfig -a
-
-5. Start iperf test, run iperf server at vm side and iperf client at host side, check throughput in log::
-
-    Host side :  ip netns exec t2 iperf -c 50.1.1.2 -i 2 -t 60 -f g -m
-    VM side:     iperf -s -f g
\ No newline at end of file
-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-10  6:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-16 23:11 [dts] [PATCH] test_plans: remove duplicate test plan of virtio Yinan
2019-06-26  7:05 ` Tu, Lijuan
2019-06-26 18:57 Yinan
2019-07-10  6:31 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).