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 9732CA052A; Tue, 10 Nov 2020 03:07:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6627FA8E9; Tue, 10 Nov 2020 03:07:12 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 9A47672E2 for ; Tue, 10 Nov 2020 03:07:09 +0100 (CET) IronPort-SDR: 2RkgP7+24KpZ1P/PY21JnGbp+inwp8mHlIaMlvklrvljD51+XjS+v6bJwMWSsQtOhFzLra73Lp zT1ui2UxRRYA== X-IronPort-AV: E=McAfee;i="6000,8403,9800"; a="234071103" X-IronPort-AV: E=Sophos;i="5.77,465,1596524400"; d="scan'208";a="234071103" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2020 18:07:07 -0800 IronPort-SDR: miYKGsz/y+IqgsiV6va9SXcTqeOqfmvdEmXscosL7HJOZoI2kcne7+HR91d2ItLT7a68oytp+z 7zQ73ds/OYLg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,465,1596524400"; d="scan'208";a="365695130" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by orsmga007.jf.intel.com with ESMTP; 09 Nov 2020 18:07:06 -0800 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Tue, 10 Nov 2020 05:55:58 -0500 Message-Id: <20201110105558.75299-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH v1] tests/*loopback*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" Add parameter to enable AVX512 Signed-off-by: Yinan Wang --- ...ack_multi_paths_port_restart_test_plan.rst | 4 +-- .../loopback_multi_queues_test_plan.rst | 6 ++-- ...back_virtio_user_server_mode_test_plan.rst | 6 ++-- .../perf_virtio_user_loopback_test_plan.rst | 28 +++++++++++++++++++ 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/test_plans/loopback_multi_paths_port_restart_test_plan.rst b/test_plans/loopback_multi_paths_port_restart_test_plan.rst index d9a8d304..8418996b 100644 --- a/test_plans/loopback_multi_paths_port_restart_test_plan.rst +++ b/test_plans/loopback_multi_paths_port_restart_test_plan.rst @@ -420,7 +420,7 @@ Test Case 10: loopback test with packed ring vectorized path 2. Launch virtio-user by below command:: - ./testpmd -n 4 -l 5-6 --no-pci --file-prefix=virtio \ + ./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,packed_vq=1,in_order=0,mrg_rxbuf=0,vectorized=1 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 >set fwd mac @@ -446,4 +446,4 @@ Test Case 10: loopback test with packed ring vectorized path testpmd>port start 0 testpmd>set burst 1 testpmd>start tx_first 1 - testpmd>show port stats all \ No newline at end of file + testpmd>show port stats all diff --git a/test_plans/loopback_multi_queues_test_plan.rst b/test_plans/loopback_multi_queues_test_plan.rst index 0cea2b11..3d2851b8 100644 --- a/test_plans/loopback_multi_queues_test_plan.rst +++ b/test_plans/loopback_multi_queues_test_plan.rst @@ -591,7 +591,7 @@ Test Case 10: loopback with virtio 1.1 vectorized path using 1 queue and 8 queue 2. Launch virtio-user by below command:: ./testpmd -n 4 -l 5-6 \ - --no-pci --file-prefix=virtio \ + --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 \ -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac @@ -622,7 +622,7 @@ Test Case 10: loopback with virtio 1.1 vectorized path using 1 queue and 8 queue 7. Launch virtio-user by below command:: ./testpmd -n 4 -l 10-18 \ - --no-pci --file-prefix=virtio \ + --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 \ -- -i --nb-cores=8 --rxq=8 --txq=8 --txd=1024 --rxd=1024 testpmd>set fwd mac @@ -635,4 +635,4 @@ 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 \ No newline at end of file + testpmd>show port stats all diff --git a/test_plans/loopback_virtio_user_server_mode_test_plan.rst b/test_plans/loopback_virtio_user_server_mode_test_plan.rst index f30e3a55..18d580f4 100644 --- a/test_plans/loopback_virtio_user_server_mode_test_plan.rst +++ b/test_plans/loopback_virtio_user_server_mode_test_plan.rst @@ -742,7 +742,7 @@ Test Case 12: loopback reconnect test with packed ring vectorized path and serve 2. Launch virtio-user as server mode with 2 queues:: - ./testpmd -n 4 -l 5-7 --log-level=pmd.net.virtio.driver,8 --no-pci --file-prefix=virtio \ + ./testpmd -n 4 -l 5-7 --log-level=pmd.net.virtio.driver,8 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \ -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2 >set fwd mac @@ -777,7 +777,7 @@ Test Case 12: loopback reconnect test with packed ring vectorized path and serve 8. Relaunch virtio-user and send packets:: - ./testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio \ + ./testpmd -n 4 -l 5-7 --no-pci --file-prefix=virtio --force-max-simd-bitwidth=512 \ --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,server=1,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1 \ -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=2 --txq=2 >set fwd mac @@ -799,4 +799,4 @@ Test Case 12: loopback reconnect test with packed ring vectorized path and serve 11. Check each RX/TX queue has packets:: - testpmd>stop \ No newline at end of file + testpmd>stop diff --git a/test_plans/perf_virtio_user_loopback_test_plan.rst b/test_plans/perf_virtio_user_loopback_test_plan.rst index 11514dd8..b1b24e7f 100644 --- a/test_plans/perf_virtio_user_loopback_test_plan.rst +++ b/test_plans/perf_virtio_user_loopback_test_plan.rst @@ -290,3 +290,31 @@ Test Case 9: loopback test with split ring inorder non-mergeable path 4. Repeat below command to get throughput 10 times,then check the average throughput can get expected data with below command:: testpmd>show port stats all + +Test Case 10: loopback test with packed ring vectorized path +============================================================ + +1. Launch vhost by below command:: + + rm -rf vhost-net* + ./testpmd -n 4 -l 2-4 --no-pci \ + --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i --nb-cores=1 --txd=1024 --rxd=1024 + testpmd>set fwd mac + +2. Launch virtio-user by below command:: + + ./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,packed_vq=1,in_order=1,mrg_rxbuf=0,vectorized=1 \ + -- -i --rss-ip --nb-cores=1 --txd=1024 --rxd=1024 + >set fwd mac + >start + +3. Send packets with vhost-testpmd,[frame_size] is the parameter changs in [64, 1518]:: + + testpmd>set txpkts [frame_size] + testpmd>start tx_first 32 + +4. Repeat below command to get throughput 10 times,then check the average throughput can get expected data with below command:: + + testpmd>show port stats all -- 2.25.1