From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2DD6A00C2; Fri, 6 Jan 2023 07:26:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B91E84067C; Fri, 6 Jan 2023 07:26:47 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id D7B944021F for ; Fri, 6 Jan 2023 07:26:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672986406; x=1704522406; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=CpBxapH7lzjpvXeJ5xaIDLPOB5x1+juOosUMtlJWNRQ=; b=EbIPvvK0FZ/8ES/eaILS0DPZN5hnVw0wFpQrZKNoOv9I5OwgDKmdGpVr /Q+Sd4U5/zR012DPp/ElCXH8CmslykBo/m0rj8DSqjZshXCX6ke8IBI/0 gguK7roYWcf7dkmXfiLQw//tHmLrqKlrgXq9m4SQ7VlWMge6OK7bYGnDF hX2Nr6kr8AKBtILYXMPoQ+Wn4po5mBgAF/53OlViR7aNItbwdgPthmmWe 2Ej2sYRLhklYgXGMZn5GYN9YRLtduApOCVbEK21/4MBOXlh5I4d98nv29 s5GP1W7eFfzI1x45kKvPUPQ7dGLjb47n243WoL0zcy8fUDIse16Kl5ayw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="324435169" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="324435169" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 22:26:45 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="829820923" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="829820923" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 22:26:43 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] test_plans/loopback_multi_queues: add new case description Date: Fri, 6 Jan 2023 14:22:00 +0800 Message-Id: <20230106062200.18162-1-dukaix.yuan@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit 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 Add new case virtio11 vectorized path and ring size is not power of 2 multi queue. Signed-off-by: Dukai Yuan --- .../loopback_multi_queues_test_plan.rst | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/test_plans/loopback_multi_queues_test_plan.rst b/test_plans/loopback_multi_queues_test_plan.rst index 61f95699..f8645cb1 100644 --- a/test_plans/loopback_multi_queues_test_plan.rst +++ b/test_plans/loopback_multi_queues_test_plan.rst @@ -607,3 +607,63 @@ Test Case 10: loopback with virtio 1.1 vectorized path using 1 queue and 8 queue 9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: testpmd>show port stats all + +Test Case 11: loopback with virtio 1.1 vectorized path and ring size is not power of 2 using 1 queue and 8 queues +================================================================================================================= + +1. Launch testpmd by below command:: + + rm -rf vhost-net* + .//app/dpdk-testpmd -l 1-2 -n 4 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- \ + -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +2. Launch virtio-user by below command:: + + .//app/dpdk-testpmd -n 4 -l 5-6 \ + --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \ + --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=1025 \ + -- -i --nb-cores=1 --txd=1025 --rxd=1025 + testpmd>set fwd mac + testpmd>start + +3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +4. Get throughput 10 times and calculate the average throughput:: + + testpmd>show port stats all + +5. Check each RX/TX queue has packets, then quit testpmd:: + + testpmd>stop + testpmd>quit + +6. Launch testpmd by below command:: + + rm -rf vhost-net* + .//app/dpdk-testpmd -l 1-9 -n 4 --no-pci \ + --vdev 'eth_vhost0,iface=vhost-net,queues=8' -- \ + -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +7. Launch virtio-user by below command:: + + .//app/dpdk-testpmd -n 4 -l 10-18 \ + --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \ + --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=8,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=1025 \ + -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1025 --rxd=1025 + testpmd>set fwd mac + testpmd>start + +8. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 128, 256, 512, 1024, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +9. Get throughput 10 times and calculate the average throughput,check the throughput of 8 queues is eight times of 1 queue:: + + testpmd>show port stats all -- 2.17.1