test suite reviews and discussions
 help / color / mirror / Atom feed
From: Yinan Wang <yinan.wang@intel.com>
To: dts@dpdk.org
Cc: Yinan Wang <yinan.wang@intel.com>
Subject: [dts] [PATCH v1] test_plans: add two cbdma enable cases in vm2vm virtio_user test_plan
Date: Thu, 13 Aug 2020 06:35:22 -0400	[thread overview]
Message-ID: <20200813103522.91681-1-yinan.wang@intel.com> (raw)

Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
 test_plans/vm2vm_virtio_user_test_plan.rst | 585 +++++++++++----------
 1 file changed, 306 insertions(+), 279 deletions(-)

diff --git a/test_plans/vm2vm_virtio_user_test_plan.rst b/test_plans/vm2vm_virtio_user_test_plan.rst
index de5bbb6..4a0909c 100644
--- a/test_plans/vm2vm_virtio_user_test_plan.rst
+++ b/test_plans/vm2vm_virtio_user_test_plan.rst
@@ -37,7 +37,7 @@ vm2vm vhost-user/virtio-user test plan
 Description
 ===========
 
-This test plan includes split virtqueue vm2vm in-order mergeable, in-order non-mergeable, mergeable, non-mergeable, vector_rx path test, and packed virtqueue vm2vm in-order mergeable, in-order non-mergeable, mergeable, non-mergeable, vectorized path test. This plan also check the payload of packets is accurate. 
+This test plan includes split virtqueue vm2vm in-order mergeable, in-order non-mergeable, mergeable, non-mergeable, vector_rx path test, and packed virtqueue vm2vm in-order mergeable, in-order non-mergeable, mergeable, non-mergeable path test. This plan also check the payload of packets is accurate. For packed virtqueue test, need using qemu version > 4.2.0.
 
 Prerequisites
 =============
@@ -74,8 +74,8 @@ Test Case 1: packed virtqueue vm2vm mergeable path test
     --no-pci --file-prefix=virtio1 \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -87,20 +87,20 @@ Test Case 1: packed virtqueue vm2vm mergeable path test
     --no-pci --file-prefix=virtio \
     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 5. Start vhost, then send 8k length packets by virtio-user0 again::
 
-    testpmd>stop
-    testpmd>set txpkts 2000
-    testpmd>start tx_first 1
+     stop
+     set txpkts 2000
+     start tx_first 1
 
 6. Quit pdump and three testpmd, get 284 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -109,8 +109,8 @@ Test Case 1: packed virtqueue vm2vm mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 8. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -121,19 +121,19 @@ Test Case 1: packed virtqueue vm2vm mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem 1024,1024 --no-pci \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set burst 1
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>set txpkts 2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set burst 1
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
+     stop
+     set burst 32
+     set txpkts 2000
+     start tx_first 1
 
 10. Quit pdump,vhost received packets in pdump-vhost-rx.pcap, check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -152,8 +152,8 @@ Test Case 2: packed virtqueue vm2vm inorder mergeable path test
     --no-pci --file-prefix=virtio1 \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -165,15 +165,15 @@ Test Case 2: packed virtqueue vm2vm inorder mergeable path test
     --no-pci --file-prefix=virtio \
     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set burst 1
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set burst 1
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 5. Start vhost, then quit pdump and three testpmd, get 252 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -182,8 +182,8 @@ Test Case 2: packed virtqueue vm2vm inorder mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 7. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -195,15 +195,15 @@ Test Case 2: packed virtqueue vm2vm inorder mergeable path test
     --no-pci \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set burst 1
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set burst 1
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap, check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -233,14 +233,14 @@ Test Case 3: packed virtqueue vm2vm non-mergeable path test
     --no-pci --file-prefix=virtio \
     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 5. Start vhost, then quit pdump and three testpmd, get 251 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -249,8 +249,8 @@ Test Case 3: packed virtqueue vm2vm non-mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 7. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -262,11 +262,11 @@ Test Case 3: packed virtqueue vm2vm non-mergeable path test
     --no-pci \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap, check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -283,10 +283,10 @@ Test Case 4: packed virtqueue vm2vm inorder non-mergeable path test
 
     ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio1 \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,packed_vec=1 \
-    -- -i --rx-offloads=0x10 --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set fwd rxonly
-    testpmd>start
+    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1 \
+    -- -i --nb-cores=1 --txd=256 --rxd=256
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -296,16 +296,16 @@ Test Case 4: packed virtqueue vm2vm inorder non-mergeable path test
 
     ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio \
-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,packed_vec=1 \
-    -- -i --rx-offloads=0x10 --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1 \
+    -- -i --nb-cores=1 --txd=256 --rxd=256
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 5. Start vhost, then quit pdump and three testpmd, get 251 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -314,8 +314,8 @@ Test Case 4: packed virtqueue vm2vm inorder non-mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 7. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -325,13 +325,13 @@ Test Case 4: packed virtqueue vm2vm inorder non-mergeable path test
 
     ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
     --no-pci \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,packed_vec=1 \
-    -- -i --rx-offloads=0x10 --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
+    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1 \
+    -- -i --nb-cores=1 --txd=256 --rxd=256
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -350,8 +350,8 @@ Test Case 5: split virtqueue vm2vm mergeable path test
     --no-pci --file-prefix=virtio1 \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -363,20 +363,20 @@ Test Case 5: split virtqueue vm2vm mergeable path test
     --no-pci --file-prefix=virtio \
     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
-5. Start vhost, then send 8k length packets by virtio-user0 again::
+5. Start vhost, then send 2k length packets by virtio-user0 again::
 
-    testpmd>stop
-    testpmd>set txpkts 2000
-    testpmd>start tx_first 1
+     stop
+     set txpkts 2000
+     start tx_first 1
 
 6. Quit pdump and three testpmd, get 288 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -385,8 +385,8 @@ Test Case 5: split virtqueue vm2vm mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 8. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -398,19 +398,19 @@ Test Case 5: split virtqueue vm2vm mergeable path test
     --no-pci \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set burst 5
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>set txpkts 2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set burst 5
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
+     stop
+     set burst 32
+     set txpkts 2000
+     start tx_first 1
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap, check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -429,8 +429,8 @@ Test Case 6: split virtqueue vm2vm inorder mergeable path test
     --no-pci --file-prefix=virtio1 \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -442,24 +442,24 @@ Test Case 6: split virtqueue vm2vm inorder mergeable path test
     --no-pci --file-prefix=virtio \
     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
-5. Start vhost, then quit pdump and three testpmd, get 256 packets received by virtio-user1 in pdump-virtio-rx.pcap.
+5. Start vhost, then quit pdump and three testpmd, get 252 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
 6. Launch testpmd by below command::
 
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 7. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -471,15 +471,15 @@ Test Case 6: split virtqueue vm2vm inorder mergeable path test
     --no-pci \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=1,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set burst 5
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set burst 5
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -509,14 +509,14 @@ Test Case 7: split virtqueue vm2vm non-mergeable path test
     --no-pci --file-prefix=virtio \
     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256 --enable-hw-vlan-strip
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 5. Start vhost, then quit pdump and three testpmd, get 251 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -525,8 +525,8 @@ Test Case 7: split virtqueue vm2vm non-mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 7. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -538,11 +538,11 @@ Test Case 7: split virtqueue vm2vm non-mergeable path test
     --no-pci \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256 --enable-hw-vlan-strip
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -561,8 +561,8 @@ Test Case 8: split virtqueue vm2vm inorder non-mergeable path test
     --no-pci --file-prefix=virtio1 \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -574,14 +574,14 @@ Test Case 8: split virtqueue vm2vm inorder non-mergeable path test
     --no-pci --file-prefix=virtio \
     --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 5. Start vhost, then quit pdump and three testpmd, get 251 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -590,8 +590,8 @@ Test Case 8: split virtqueue vm2vm inorder non-mergeable path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 7. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -603,11 +603,11 @@ Test Case 8: split virtqueue vm2vm inorder non-mergeable path test
     --no-pci \
     --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=1 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
@@ -624,7 +624,7 @@ Test Case 9: split virtqueue vm2vm vector_rx path test
 
     ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio1 \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0,vectorized=1,queue_size=256 \
+    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
 
 3. Attach pdump secondary process to primary process by same file-prefix::
@@ -635,16 +635,16 @@ Test Case 9: split virtqueue vm2vm vector_rx path test
 
     ./testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio \
-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0,vectorized=1,queue_size=256 \
+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000,2000,2000,2000
+     start tx_first 1
 
 5. Start vhost, then quit pdump and three testpmd, get 251 packets received by virtio-user1 in pdump-virtio-rx.pcap.
 
@@ -653,8 +653,8 @@ Test Case 9: split virtqueue vm2vm vector_rx path test
     ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
     --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
     -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+     set fwd rxonly
+     start
 
 7. Attach pdump secondary process to primary process by same file-prefix::
 
@@ -664,142 +664,169 @@ Test Case 9: split virtqueue vm2vm vector_rx path test
 
     ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
     --no-pci \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0,vectorized=1,queue_size=256 \
+    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=0,mrg_rxbuf=0,in_order=0 \
     -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
+     set burst 1
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
 
 9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
 
-Test Case 10: packed virtqueue vm2vm vectorized path test
-=========================================================
+Test Case 10: split virtqueue vm2vm inorder mergeable path multi-queues payload check with cbdma enabled
+========================================================================================================
 
-1. Launch testpmd by below command::
+Prerequisites
+=============
 
-    ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \
-    --vdev 'eth_vhost0,iface=vhost-net,queues=1' --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
-    -i --nb-cores=1 --no-flush-rx
+Enable pcap lib in dpdk code and recompile::
+
+    --- a/config/common_base
+    +++ b/config/common_base
+    @@ -492,7 +492,7 @@ CONFIG_RTE_LIBRTE_PMD_NULL=y
+     #
+     # Compile software PMD backed by PCAP files
+     #
+    -CONFIG_RTE_LIBRTE_PMD_PCAP=n
+    +CONFIG_RTE_LIBRTE_PMD_PCAP=y
+
+Then build DPDK.
+====================================
+1. Launch vhost by below command::
+
+    ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 \
+    --vdev 'eth_vhost0,iface=vhost-net,queues=2,client=1,dmas=[txq0@80:04.0;txq1@80:04.1],dmathr=512' --vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@80:04.2;txq1@80:04.3],dmathr=512' -- \
+    -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256 --no-flush-rx
 
 2. Launch virtio-user1 by below command::
 
     ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio1 \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=256 \
-    -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set fwd rxonly
-    testpmd>start
+    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=1 \
+    -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
-    ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio1 -- --pdump 'device_id=net_virtio_user1,queue=*,rx-dev=/root/pdump-rx.pcap,mbuf-size=8000'
+    ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio1 -- --pdump 'device_id=net_virtio_user1,queue=*,rx-dev=./pdump-virtio-rx.pcap,mbuf-size=8000'
 
-4. Launch virtio-user0 and send 8k length packets::
+4. Launch virtio-user0 and send packets::
 
     ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio \
-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=256 \
-    -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
-
-5. Start vhost, then quit pdump and three testpmd, get 251 packets received by virtio-user1 in pdump-virtio-rx.pcap.
-
-6. Launch testpmd by below command::
+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=1 \
+    -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256
+     set burst 1
+     set txpkts 2000,2000,2000,2000
+     start tx_first 27
+     stop
+     set burst 32
+     start tx_first 7
+     stop
+     set txpkts 2000
+     start tx_first 1
 
-    ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
-    --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
-    -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+5. Start vhost testpmd:
+     start
 
-7. Attach pdump secondary process to primary process by same file-prefix::
+6. Quit pdump and all testpmd, check 64 packets received by virtio-user1 and all packets are 8k length in pdump-virtio-rx.pcap.
 
-    ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=vhost -- --pdump 'port=0,queue=*,rx-dev=/root/pdump-vhost-rx.pcap,mbuf-size=8000'
+7. Restart step 1-3, Launch virtio-user0 and send packets::
 
-8. Launch virtio-user1 by below command::
+    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \
+    --no-pci --file-prefix=virtio \
+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=1 \
+    -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256
+     set burst 1
+     set txpkts 2000,2000,2000,2000
+     start tx_first 27
+     stop
+     set burst 32
+     set txpkts 2000
+     start tx_first 7
+     stop
+     set txpkts 2000
+     start tx_first 1
+
+8. Start vhost testpmd:
+     start
+
+9. Quit pdump and all testpmd, check 256 packets received by virtio-user1, check 54 packets with 8k length and 202 packets with 2k length in pdump-virtio-rx.pcap.
+
+Test Case 11: split virtqueue vm2vm mergeable path multi-queues payload check with cbdma enabled
+================================================================================================
 
-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
-    --no-pci \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=256 \
-    -- -i --nb-cores=1 --txd=256 --rxd=256
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
+Prerequisites
+=============
 
-9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
+Enable pcap lib in dpdk code and recompile::
 
-Test Case 10: packed virtqueue vm2vm vectorized path test with ring size is not power of 2
-==========================================================================================
+    --- a/config/common_base
+    +++ b/config/common_base
+    @@ -492,7 +492,7 @@ CONFIG_RTE_LIBRTE_PMD_NULL=y
+     #
+     # Compile software PMD backed by PCAP files
+     #
+    -CONFIG_RTE_LIBRTE_PMD_PCAP=n
+    +CONFIG_RTE_LIBRTE_PMD_PCAP=y
 
-1. Launch testpmd by below command::
+Then build DPDK.
+====================================
+1. Launch vhost by below command::
 
-    ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci \
-    --vdev 'eth_vhost0,iface=vhost-net,queues=1' --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
-    -i --nb-cores=1 --no-flush-rx
+    ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 \
+    --vdev 'eth_vhost0,iface=vhost-net,queues=2,client=1,dmas=[txq0@80:04.0;txq1@80:04.1],dmathr=512' --vdev 'eth_vhost1,iface=vhost-net1,queues=2,client=1,dmas=[txq0@80:04.2;txq1@80:04.3],dmathr=512' -- \
+    -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256 --no-flush-rx
 
 2. Launch virtio-user1 by below command::
 
     ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio1 \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=255 \
-    -- -i --nb-cores=1 --txd=255 --rxd=255
-    testpmd>set fwd rxonly
-    testpmd>start
+    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=0 \
+    -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256
+     set fwd rxonly
+     start
 
 3. Attach pdump secondary process to primary process by same file-prefix::
 
-    ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio1 -- --pdump 'device_id=net_virtio_user1,queue=*,rx-dev=/root/pdump-rx.pcap,mbuf-size=8000'
+    ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=virtio1 -- --pdump 'device_id=net_virtio_user1,queue=*,rx-dev=./pdump-virtio-rx.pcap,mbuf-size=8000'
 
 4. Launch virtio-user0 and send 8k length packets::
 
     ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \
     --no-pci --file-prefix=virtio \
-    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=255 \
-    -- -i --nb-cores=1 --txd=255 --rxd=255
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-    testpmd>stop
-    testpmd>set txpkts 2000,2000,2000,2000
-    testpmd>start tx_first 1
-
-5. Start vhost, then quit pdump and three testpmd, get 251 packets received by virtio-user1 in pdump-virtio-rx.pcap.
-
-6. Launch testpmd by below command::
-
-    ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-2 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost  \
-    --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \
-    -i --nb-cores=1 --no-flush-rx
-    testpmd>set fwd rxonly
-    testpmd>start
+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=0 \
+    -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256
+     set burst 1
+     set txpkts 2000,2000,2000,2000
+     start tx_first 27
+     stop
+     set burst 32
+     set txpkts 2000
+     start tx_first 7
 
-7. Attach pdump secondary process to primary process by same file-prefix::
+5. Start vhost testpmd:
+     start
 
-    ./x86_64-native-linuxapp-gcc/app/dpdk-pdump -v --file-prefix=vhost -- --pdump 'port=0,queue=*,rx-dev=/root/pdump-vhost-rx.pcap,mbuf-size=8000'
+6. Quit pdump, check 448 packets received by virtio-user1 and 54 packets with 8k length and 394 in pdump-virtio-rx.pcap.
 
-8. Launch virtio-user1 by below command::
+7 Restart step 1-3, Launch virtio-user0 and send packets::
 
-    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \
-    --no-pci \
-    --vdev=net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=255 \
-    -- -i --nb-cores=1 --txd=255 --rxd=255
-    testpmd>set burst 1
-    testpmd>start tx_first 27
-    testpmd>stop
-    testpmd>set burst 32
-    testpmd>start tx_first 7
-
-9. Quit pdump,vhost received packets in pdump-vhost-rx.pcap,check headers and payload of all packets in pdump-virtio-rx.pcap and pdump-vhost-rx.pcap and ensure the content are same.
\ No newline at end of file
+    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \
+    --no-pci --file-prefix=virtio \
+    --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,server=1,packed_vq=0,mrg_rxbuf=1,in_order=0 \
+    -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=256 --rxd=256
+     set burst 1
+     set txpkts 2000,2000,2000,2000
+     start tx_first 27
+     stop
+     set burst 32
+     set txpkts 2000,2000,2000,2000
+     start tx_first 7
+
+8. Start vhost testpmd:
+     start
+
+9. Quit pdump, check 448 packets received by virtio-user1, check 448 packets with 8k length in pdump-virtio-rx.pcap.
-- 
2.17.1


             reply	other threads:[~2020-08-13  2:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-13 10:35 Yinan Wang [this message]
2020-08-13  3:25 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200813103522.91681-1-yinan.wang@intel.com \
    --to=yinan.wang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).