From patchwork Fri May 27 03:20:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 111939 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7881EA055C; Fri, 27 May 2022 05:21:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 71CCD40E5A; Fri, 27 May 2022 05:21:30 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id F323B40DF7 for ; Fri, 27 May 2022 05:21:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653621689; x=1685157689; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tsmYsuG8ZFi7aS4WxTzYGRaNZYzqxHsdJQzBzsE/cZM=; b=TIHoIG3SxNGR8m/GEiNcuaLM9u1M0PAoT5jhScWiwa/rateGAfbfLjG9 H16sPMiKHcikVRFva/L9x4qTbZ52v9pWEfqGK3XUnxRDN1fBt8doIdvfc D0TGF6iNeMgdjMIGDFrVUuq1TEpnNY4jQ/5EFLzHBMgJohcdbkyRwkfSe dvTN32oj7uR9qyjhxzOH+zKsQ51JfLzsEtiCG2PIPyhxtYGwKbU1ZZtQz jPT3lNLZfmfJ0QdDpNb/6N/qIYmtQ0xtdiMCQ5o/a2gyP/Kbau25CoqwY ei1muGFosiTt7I8sShbprVE8CqfaXGgDau4DpvILPRf/zIHu99DwrSjyz w==; X-IronPort-AV: E=McAfee;i="6400,9594,10359"; a="274467315" X-IronPort-AV: E=Sophos;i="5.91,254,1647327600"; d="scan'208";a="274467315" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2022 20:21:26 -0700 X-IronPort-AV: E=Sophos;i="5.91,254,1647327600"; d="scan'208";a="603610747" Received: from unknown (HELO localhost.localdomain) ([10.239.251.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2022 20:21:25 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/vm2vm_virtio_user_test_plan: revert testcase 12 Date: Thu, 26 May 2022 23:20:35 -0400 Message-Id: <20220527032035.529089-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Revert testcase 12. Signed-off-by: Wei Ling --- test_plans/vm2vm_virtio_user_test_plan.rst | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/test_plans/vm2vm_virtio_user_test_plan.rst b/test_plans/vm2vm_virtio_user_test_plan.rst index c6e4b2ec..ede6e99e 100644 --- a/test_plans/vm2vm_virtio_user_test_plan.rst +++ b/test_plans/vm2vm_virtio_user_test_plan.rst @@ -763,3 +763,43 @@ Test Case 11: packed virtqueue vm2vm vectorized path test with ring size is not 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. + +Test Case 12: packed virtqueue vm2vm vectorized-tx path multi-queues test indirect descriptor +============================================================================================= + +1. Launch vhost by below command:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd/app/dpdk-testpmd -l 1-2 -n 4 --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 + +2. Launch virtio-user1 by below command:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd/app/dpdk-testpmd -n 4 -l 7-8 --no-pci --file-prefix=virtio1 --force-max-simd-bitwidth=512 \ + --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,vectorized=1,queue_size=256 \ + -- -i --nb-cores=1 --txd=256 --rxd=256 + testpmd>set fwd rxonly + testpmd>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=./pdump-virtio-rx.pcap,mbuf-size=8000' + +4. Launch virtio-user0 and send 8k length packets:: + + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -n 4 -l 5-6 --force-max-simd-bitwidth=512 --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,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 + testpmd>stop + +5. Start vhost, then quit pdump and three testpmd, about packed virtqueue vectorized-tx path, it use the indirect descriptors, the 8k length pkt will just occupies one ring. +So check 256 packets and 56064 bytes received by virtio-user1 and 251 packets with 64 length and 5 packets with 8K length in pdump-virtio-rx.pcap.