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