[dts] [PATCH v1] test_plans: add vhost launching cmd in hotplug_mp_test_plan

Yinan yinan.wang at intel.com
Thu Apr 2 17:49:16 CEST 2020


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

Signed-off-by: Wang Yinan <yinan.wang at intel.com>
---
 test_plans/hotplug_mp_test_plan.rst | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/test_plans/hotplug_mp_test_plan.rst b/test_plans/hotplug_mp_test_plan.rst
index c4f149d..086f691 100644
--- a/test_plans/hotplug_mp_test_plan.rst
+++ b/test_plans/hotplug_mp_test_plan.rst
@@ -275,7 +275,11 @@ Repeat above attach and detach for 2 times
 Quit primary and secondary processes
 
 Test Case: Repeat to attach/detach virtio-user from primary or secondary
-========================================================================
+=======================================================================
+Launch vhost port with testpmd::
+
+    ./x86_64-native-linuxapp-gcc/app/testpmd -n 4 -l 2-3  --socket-mem 1024,1024 --legacy-mem     --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0'     -- -i --nb-cores=1
+
 Start sample code as primary then secondary::
 
      ./hotplug_mp --proc-type=auto
@@ -288,7 +292,7 @@ Check primary and secondary processes don't have any device::
 Attach a virtual device from primary or secondary, check primary and
 secondary processes attach the share device successfully::
 
-    example> attach net_virtio_user0,mac=00:01:02:03:04:05,path=/home/yinan/dpdk/vhost-net,packed_vq=1,mrg_rxbuf=1,in_order=0
+    example> attach net_virtio_user0,mac=00:01:02:03:04:05,path=vhost-net,packed_vq=1,mrg_rxbuf=1,in_order=0
     example> list
     list all etherdev
     0       net_virtio_user0
@@ -308,4 +312,4 @@ secondary processes fail to detach same device again
 
 Repeat above attach and detach for 2 times
 
-Quit primary and secondary processes
+Quit primary and secondary processes
\ No newline at end of file
-- 
2.17.1



More information about the dts mailing list