test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Wang, Yinan" <yinan.wang@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Wang, Yinan" <yinan.wang@intel.com>
Subject: Re: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug	test case
Date: Tue, 24 Mar 2020 06:52:07 +0000	[thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBF0A93@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20200323180458.6408-1-yinan.wang@intel.com>

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


      reply	other threads:[~2020-03-24  6:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-23 18:04 Yinan
2020-03-24  6:52 ` Tu, Lijuan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8CE3E05A3F976642AAB0F4675D0AD20E0BBF0A93@SHSMSX101.ccr.corp.intel.com \
    --to=lijuan.tu@intel.com \
    --cc=dts@dpdk.org \
    --cc=yinan.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).