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 025B6A00C5; Thu, 30 Apr 2020 07:33:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CD75D1D8FB; Thu, 30 Apr 2020 07:33:45 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 433641D8F5 for ; Thu, 30 Apr 2020 07:33:43 +0200 (CEST) IronPort-SDR: pxDXHpBhYDEj0Qg+Y8DbNod9yKNqhtwErSSfsAIca9Lbh7PWfFL3+CGDPkZF3h6vIC7u56IywL b0T2CiCpbcJQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 22:33:42 -0700 IronPort-SDR: uCMTlE8f7ENYs0gGlTG3Yog1asjpWyXCn/d0oGPdiOfxIG1ImHaQFuLAJI6hXS2KBEb10YQsuc AU9EHibsB5ig== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,334,1583222400"; d="scan'208";a="432834391" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by orsmga005.jf.intel.com with ESMTP; 29 Apr 2020 22:33:41 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Wed, 29 Apr 2020 22:27:38 +0000 Message-Id: <20200429222738.28221-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1] test_plans: update test commonds for vectorized cases in vhost_dequeue_zero_copy_test_plan.rst 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 --- .../vhost_dequeue_zero_copy_test_plan.rst | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/test_plans/vhost_dequeue_zero_copy_test_plan.rst b/test_plans/vhost_dequeue_zero_copy_test_plan.rst index 0c550d8..0c1743c 100644 --- a/test_plans/vhost_dequeue_zero_copy_test_plan.rst +++ b/test_plans/vhost_dequeue_zero_copy_test_plan.rst @@ -233,8 +233,8 @@ Test Case 5: pvp split ring dequeue zero-copy test with vector_rx path rm -rf vhost-net* ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 2-4 --socket-mem 1024,1024 --legacy-mem \ - --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dequeue-zero-copy=1' \ - -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992 --txrs=32 + --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=1,dequeue-zero-copy=1' \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992 testpmd>set fwd mac testpmd>start @@ -242,7 +242,7 @@ Test Case 5: pvp split ring dequeue zero-copy test with vector_rx path ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ --legacy-mem --no-pci --file-prefix=virtio \ - --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,in_order=0,mrg_rxbuf=0,queue_size=1024 \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,in_order=0,mrg_rxbuf=0,vectorized=1,queue_size=1024,server=1 \ -- -i --tx-offloads=0x0 --nb-cores=1 --txd=1024 --rxd=1024 >set fwd mac >start @@ -388,3 +388,30 @@ Test Case 8: pvp packed ring dequeue zero-copy test with driver reload test 8. Check each queue's rx/tx packet numbers at vhost side:: testpmd>stop + +Test Case 9: pvp packed ring dequeue zero-copy test with ring size is not power of 2 +==================================================================================== + +1. Bind one port to igb_uio, then launch vhost by below command:: + + rm -rf vhost-net* + ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 2-4 --socket-mem 1024,1024 --legacy-mem \ + --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=1,dequeue-zero-copy=1' \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 --txfreet=992 + testpmd>set fwd mac + testpmd>start + +2. Launch virtio-user by below command:: + + ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 5-6 --socket-mem 1024,1024 \ + --legacy-mem --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,in_order=0,mrg_rxbuf=1,packed_vq=1,queue_size=1025,server=1 \ + -- -i --rx-offloads=0x10 --nb-cores=1 --txd=1025 --rxd=1025 + >set fwd mac + >start + +3. Send packet with packet generator with different packet size,includes [64, 128, 256, 512, 1024, 1518], check the throughput with below command:: + + testpmd>show port stats all + +4. Repeat the test with dequeue-zero-copy=0, compare the performance gains or degradation. For small packet, we may expect ~20% performance drop, but for big packet, we expect ~20% performance gains. -- 2.17.1