[dts] [PATCH 03/11 v1] test_plans: add packed ring test case for pvp_virtio_user_2M_hugepages

Yinan yinan.wang at intel.com
Fri Feb 28 07:09:39 CET 2020


From: Wang Yinan <yinan.wang at intel.com>

Signed-off-by: Wang Yinan <yinan.wang at intel.com>
---
 ...pvp_virtio_user_2M_hugepages_test_plan.rst | 24 +++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/test_plans/pvp_virtio_user_2M_hugepages_test_plan.rst b/test_plans/pvp_virtio_user_2M_hugepages_test_plan.rst
index 8a8355f..6a80b89 100644
--- a/test_plans/pvp_virtio_user_2M_hugepages_test_plan.rst
+++ b/test_plans/pvp_virtio_user_2M_hugepages_test_plan.rst
@@ -39,8 +39,8 @@ Description
 
 Before 18.05, virtio-user can only work 1G hugepage. After 18.05, more hugepage pages can be represented by single fd (file descriptor)file, so virtio-user can work with 2M hugepage now. The key parameter is "--single-file-segments" when launch virtio-user.
 
-Test Case1:  Basic test for virtio-user 2M hugepage
-===================================================
+Test Case1:  Basic test for virtio-user split ring 2M hugepage
+==============================================================
 
 1. Before the test, plese make sure only 2M hugepage are mounted in host.
 
@@ -55,6 +55,26 @@ Test Case1:  Basic test for virtio-user 2M hugepage
     --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/sock0,queues=1 -- -i
 
 
+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
+
+Test Case1:  Basic test for virtio-user packed ring 2M hugepage
+===============================================================
+
+1. Before the test, plese make sure only 2M hugepage are mounted in host.
+
+2. Bind one port to igb_uio, launch vhost::
+
+    ./testpmd -l 3-4 -n 4 --socket-mem 1024,1024 --file-prefix=vhost \
+    --vdev 'net_vhost0,iface=/tmp/sock0,queues=1' -- -i
+
+3. Launch virtio-user with 2M hugepage::
+
+    ./testpmd -l 5-6 -n 4  --no-pci --socket-mem 1024,1024 --single-file-segments --file-prefix=virtio-user \
+    --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/sock0,packed_vq=1,queues=1 -- -i
+
+
 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
\ No newline at end of file
-- 
2.17.1



More information about the dts mailing list