From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6A2C0A04B0; Thu, 13 Aug 2020 04:35:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 31EF81C026; Thu, 13 Aug 2020 04:35:50 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id C6C094CBD for ; Thu, 13 Aug 2020 04:35:47 +0200 (CEST) IronPort-SDR: cORbH3xLdTqEQqfB5utyMOfJRZwMDg/DqjSJCHCL/uQ80ATk/a8oeoS4k+3IyNDjbC0aG3Tn9r TIh5gf+s9S/w== X-IronPort-AV: E=McAfee;i="6000,8403,9711"; a="141779751" X-IronPort-AV: E=Sophos;i="5.76,306,1592895600"; d="scan'208";a="141779751" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2020 19:35:44 -0700 IronPort-SDR: aYbUG1EVwzlDcVOKkZq6BJWqJOtvFNWpmCfuEwI10edGsUjJSJeqKPF1c/Ipyz9Fi4vVt8CzsV NJ8dO8ouw74g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,306,1592895600"; d="scan'208";a="291240646" Received: from dpdk-yinan-ntb2.sh.intel.com ([10.67.119.177]) by orsmga003.jf.intel.com with ESMTP; 12 Aug 2020 19:35:43 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Thu, 13 Aug 2020 06:35:22 -0400 Message-Id: <20200813103522.91681-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1] test_plans: add two cbdma enable cases in vm2vm virtio_user test_plan 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" Signed-off-by: Yinan Wang --- 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