From patchwork Wed Oct 28 15:58:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Yinan" X-Patchwork-Id: 82532 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A896AA04DD; Wed, 28 Oct 2020 08:08:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 77D4072E5; Wed, 28 Oct 2020 08:08:42 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 1382972D9 for ; Wed, 28 Oct 2020 08:08:39 +0100 (CET) IronPort-SDR: Cp/e/xw6kcVFpWqp41Vy22fRItw7fPYJ+4lvzKwiohlGAeQvWzdp37YmD2YZ0GdXNx2NJZ6FbZ IGo4ybt90a8A== X-IronPort-AV: E=McAfee;i="6000,8403,9787"; a="164717192" X-IronPort-AV: E=Sophos;i="5.77,425,1596524400"; d="scan'208";a="164717192" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2020 00:08:37 -0700 IronPort-SDR: ICUYI3v8QVkHIHVT7oMSEAETdbF9ZVBoFQ8kTM6WWejZleDjzxLxEvfHc73+9Os5sj335XKPXZ Boko39OsuNqg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,425,1596524400"; d="scan'208";a="350896402" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by fmsmga004.fm.intel.com with ESMTP; 28 Oct 2020 00:08:36 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Wed, 28 Oct 2020 11:58:04 -0400 Message-Id: <20201028155804.441491-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dts] [PATCH v1] test_plans/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" Update forwarding pkts number due to implementation change. Signed-off-by: Yinan Wang --- test_plans/vm2vm_virtio_user_test_plan.rst | 42 +++++++--------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/test_plans/vm2vm_virtio_user_test_plan.rst b/test_plans/vm2vm_virtio_user_test_plan.rst index cc81263..ffddb65 100644 --- a/test_plans/vm2vm_virtio_user_test_plan.rst +++ b/test_plans/vm2vm_virtio_user_test_plan.rst @@ -39,22 +39,6 @@ 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. -Prerequisites -============= - -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. - Test flow ========= Virtio-user <-> Vhost-user <-> Testpmd <-> Vhost-user <-> Virtio-user @@ -127,7 +111,7 @@ Test Case 1: packed virtqueue vm2vm mergeable path test testpmd>set burst 32 testpmd>start tx_first 7 testpmd>stop - testpmd>set burst 1 + testpmd>set burst 5 testpmd>set txpkts 2000,2000,2000,2000 testpmd>start tx_first 1 testpmd>stop @@ -201,7 +185,7 @@ Test Case 2: packed virtqueue vm2vm inorder mergeable path test testpmd>set burst 32 testpmd>start tx_first 7 testpmd>stop - testpmd>set burst 32 + testpmd>set burst 5 testpmd>set txpkts 2000,2000,2000,2000 testpmd>start tx_first 1 @@ -451,7 +435,7 @@ Test Case 6: split virtqueue vm2vm inorder mergeable path test testpmd>set txpkts 2000,2000,2000,2000 testpmd>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:: @@ -477,7 +461,7 @@ Test Case 6: split virtqueue vm2vm inorder mergeable path test testpmd>set burst 32 testpmd>start tx_first 7 testpmd>stop - testpmd>set burst 5 + testpmd>set burst 1 testpmd>set txpkts 2000,2000,2000,2000 testpmd>start tx_first 1 @@ -811,14 +795,14 @@ Test Case 11: split virtqueue vm2vm inorder mergeable path multi-queues payload ./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 + -i --nb-cores=1 --rxq=2 --txq=2 --txd=4096 --rxd=4096 --no-flush-rx 2. Launch virtio-user1 by below command:: ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 \ --no-pci --file-prefix=virtio1 \ --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 + -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=4096 --rxd=4096 testpmd>set fwd rxonly testpmd>start @@ -831,7 +815,7 @@ Test Case 11: split virtqueue vm2vm inorder mergeable path multi-queues payload ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 \ --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 + -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=4096 --rxd=4096 testpmd>set burst 1 testpmd>set txpkts 2000,2000,2000,2000 testpmd>start tx_first 27 @@ -842,7 +826,7 @@ Test Case 11: split virtqueue vm2vm inorder mergeable path multi-queues payload testpmd>set txpkts 2000 testpmd>start tx_first 1 -5. Start vhost testpmd, then quit pdump and all testpmd, check 64 packets received by virtio-user1 and all packets are 8k length in pdump-virtio-rx.pcap. +5. Start vhost testpmd, then quit pdump and all testpmd, check 512 packets received by virtio-user1 and 502 packets are 8k length and 10 packets are 2k length in pdump-virtio-rx.pcap. 6. Restart step 1-3, Launch virtio-user0 and send packets:: @@ -861,7 +845,7 @@ Test Case 11: split virtqueue vm2vm inorder mergeable path multi-queues payload testpmd>set txpkts 2000 testpmd>start tx_first 1 -7. Start vhost testpm, then 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. +7. Start vhost testpm, then quit pdump and all testpmd, check 512 packets received by virtio-user1, check 54 packets with 8k length and 458 packets with 2k length in pdump-virtio-rx.pcap. Test Case 12: split virtqueue vm2vm mergeable path multi-queues payload check with cbdma enabled ================================================================================================ @@ -870,14 +854,14 @@ Test Case 12: split virtqueue vm2vm mergeable path multi-queues payload check wi ./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 + -i --nb-cores=1 --rxq=2 --txq=2 --txd=4096 --rxd=4096 --no-flush-rx 2. Launch virtio-user1 by below command:: ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 7-8 \ --no-pci --file-prefix=virtio1 \ --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 + -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=4096 --rxd=4096 testpmd>set fwd rxonly testpmd>start @@ -890,7 +874,7 @@ Test Case 12: split virtqueue vm2vm mergeable path multi-queues payload check wi ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 \ --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 + -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=4096 --rxd=4096 testpmd>set burst 1 testpmd>set txpkts 2000,2000,2000,2000 testpmd>start tx_first 27 @@ -906,7 +890,7 @@ Test Case 12: split virtqueue vm2vm mergeable path multi-queues payload check wi ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 \ --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 + -- -i --nb-cores=1 --rxq=2 --txq=2 --txd=4096 --rxd=4096 testpmd>set burst 1 testpmd>set txpkts 2000,2000,2000,2000 testpmd>start tx_first 27