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 EA4E6A00E6 for ; Tue, 9 Jul 2019 08:28:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9A0333237; Tue, 9 Jul 2019 08:28:39 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id CC05B2C5E for ; Tue, 9 Jul 2019 08:28:37 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jul 2019 23:28:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,469,1557212400"; d="scan'208";a="159362676" Received: from npg-dpdk-project-yinanwang-1.sh.intel.com ([10.67.110.201]) by orsmga008.jf.intel.com with ESMTP; 08 Jul 2019 23:28:35 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Mon, 8 Jul 2019 23:25:31 +0000 Message-Id: <20190708232531.95057-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v5] test_plans: add large packet payload check in vm2vm virtio_pmd test 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" From: Wang Yinan Signed-off-by: Wang Yinan --- test_plans/vm2vm_virtio_pmd_test_plan.rst | 33 ++++++++++++++--------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/test_plans/vm2vm_virtio_pmd_test_plan.rst b/test_plans/vm2vm_virtio_pmd_test_plan.rst index 5de1196..202f391 100644 --- a/test_plans/vm2vm_virtio_pmd_test_plan.rst +++ b/test_plans/vm2vm_virtio_pmd_test_plan.rst @@ -34,10 +34,22 @@ vm2vm vhost-user/virtio-pmd test plan ===================================== -Description -=========== +This test plan includes vm2vm vhost-user/virtio-pmd(0.95) mergeable ,normal and vector_rx path test, and vm2vm vhost/virtio-pmd(1.0) mergeable, +normal and vector_rx path test. Specially, two mergeable path test check the payload of each packets are valid by using pdump. -This test plan includes vm2vm vhost-user/virtio-pmd(0.95) mergeable ,normal and vector_rx path test, and vm2vm vhost/virtio-pmd(1.0) mergeable ,normal and vector_rx path test. Specially, two mergeable path test check the payload of each packets are valid by using pdump. +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 Test flow ========= @@ -413,8 +425,9 @@ Test Case 7: vm2vm virtio1.1 mergeable path test with payload check --vdev 'eth_vhost0,iface=vhost-net,queues=1' --vdev 'eth_vhost1,iface=vhost-net1,queues=1' -- \ -i --nb-cores=2 --txd=1024 --rxd=1024 testpmd>set fwd mac + testpmd>start -2. Launch virtio-user by below command:: +2. Launch virtio-user1 by below command:: ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 \ --no-pci --file-prefix=virtio1 \ @@ -425,20 +438,16 @@ Test Case 7: vm2vm virtio1.1 mergeable path test with payload check 3. Attach pdump secondary process to primary process by same file-prefix:: - ./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=/root/pdump-rx.pcap,mbuf-size=8000' -4. Launch virtio-user by below command:: +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 \ + ./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=1,in_order=0 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 --max-pkt-len=9600 - testpmd>set fwd txonly - -5. Send large packets from net_virtio_user0:: - testpmd>set txpkts 2000,2000,2000,2000 testpmd>set burst 1 testpmd>start tx_first 10 -6. Check payload is correct in each dumped packets. \ No newline at end of file +5. Check payload is correct in each dumped packets. \ No newline at end of file -- 2.17.1