test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug test case
@ 2020-03-23 18:04 Yinan
  2020-03-24  6:52 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Yinan @ 2020-03-23 18:04 UTC (permalink / raw)
  To: dts; +Cc: Wang Yinan

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

Signed-off-by: Wang Yinan <yinan.wang@intel.com>
---
 test_plans/hotplug_test_plan.rst | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/test_plans/hotplug_test_plan.rst b/test_plans/hotplug_test_plan.rst
index fb0b7e0..c1316e2 100644
--- a/test_plans/hotplug_test_plan.rst
+++ b/test_plans/hotplug_test_plan.rst
@@ -335,3 +335,30 @@ Test Case 6: port detach & attach for virtual devices, with "--vdev"
       run "port detach 0", check the error message of port not stopped.
 
       run "stop", then "show port stats 0", check forwarding packages stopped.
+
+Test Case 7: port detach & attach for vhost-user/virtio-user with "--vdev"
+==========================================================================
+
+1. Start testpmd with one vhost port::
+
+      $ ./testpmd -c 0xf -n 4 --no-pci --vdev 'eth_vhost0,iface=vhost-net,queues=1' -- -i
+
+2. Detach port 0 after port closed::
+
+      run "port stop 0".
+      run "port detach 0", check port detached successful.
+
+3. Re-attach port 0::
+
+      run "port attach eth_vhost1,iface=vhost-net1,queues=1"
+      run "port start 0". #then check socket generated
+
+4. Launch virtio-user and attach one virtio-user port::
+
+      ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 --no-pci --file-prefix=virtio1 -- -i
+      testpmd>port attach net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-net1,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0
+      testpmd>port start 0
+
+5. Run "start" on vhost port and run "start tx_first 32" on virtio-user port.
+
+6. Run "show port stats all", check port 0 can rx/tx packets on both side.
\ No newline at end of file
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug test case
  2020-03-23 18:04 [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug test case Yinan
@ 2020-03-24  6:52 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-03-24  6:52 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan
> Sent: Tuesday, March 24, 2020 2:05 AM
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>
> Subject: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug test
> case
> 
> From: Wang Yinan <yinan.wang@intel.com>
> 
> Signed-off-by: Wang Yinan <yinan.wang@intel.com>
> ---
>  test_plans/hotplug_test_plan.rst | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/test_plans/hotplug_test_plan.rst
> b/test_plans/hotplug_test_plan.rst
> index fb0b7e0..c1316e2 100644
> --- a/test_plans/hotplug_test_plan.rst
> +++ b/test_plans/hotplug_test_plan.rst
> @@ -335,3 +335,30 @@ Test Case 6: port detach & attach for virtual devices,
> with "--vdev"
>        run "port detach 0", check the error message of port not stopped.
> 
>        run "stop", then "show port stats 0", check forwarding packages stopped.
> +
> +Test Case 7: port detach & attach for vhost-user/virtio-user with "--vdev"
> +===============================================================
> ===========
> +
> +1. Start testpmd with one vhost port::
> +
> +      $ ./testpmd -c 0xf -n 4 --no-pci --vdev 'eth_vhost0,iface=vhost-
> net,queues=1' -- -i
> +
> +2. Detach port 0 after port closed::
> +
> +      run "port stop 0".
> +      run "port detach 0", check port detached successful.
> +
> +3. Re-attach port 0::
> +
> +      run "port attach eth_vhost1,iface=vhost-net1,queues=1"
> +      run "port start 0". #then check socket generated
> +
> +4. Launch virtio-user and attach one virtio-user port::
> +
> +      ./testpmd -n 4 -l 7-8 --socket-mem 1024,1024 --no-pci --file-prefix=virtio1
> -- -i
> +      testpmd>port attach
> net_virtio_user1,mac=00:01:02:03:04:05,path=./vhost-
> net1,queues=1,packed_vq=1,mrg_rxbuf=1,in_order=0
> +      testpmd>port start 0
> +
> +5. Run "start" on vhost port and run "start tx_first 32" on virtio-user port.
> +
> +6. Run "show port stats all", check port 0 can rx/tx packets on both side.
> \ No newline at end of file
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 18:04 [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug test case Yinan
2020-03-24  6:52 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox