From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D1504A0564; Tue, 24 Mar 2020 07:52:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C994A1C0AD; Tue, 24 Mar 2020 07:52:44 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 550771C02D for ; Tue, 24 Mar 2020 07:52:42 +0100 (CET) IronPort-SDR: 571geFpOzDOS2zkEDsRuOLrjBNC6TkpvDx1wMij96Xl1Dtuu4NwyEPA0RMqyMeFz046iPfT6co TJCMHQnn2xgw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2020 23:52:11 -0700 IronPort-SDR: i2MpbqV0euLYw05ySrmqYkwAE14/kDxJWix49UZY9Npy1n4McV2iMrqGcWiLQcNQVYER5OzjtS 61A7QCdW8BrQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,299,1580803200"; d="scan'208";a="270237881" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 23 Mar 2020 23:52:11 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Mar 2020 23:52:10 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Mar 2020 23:52:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.232]) with mapi id 14.03.0439.000; Tue, 24 Mar 2020 14:52:08 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug test case Thread-Index: AQHWAXkdB8rJ9p1X10e3yDqOvjtrTKhXToOw Date: Tue, 24 Mar 2020 06:52:07 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBF0A93@SHSMSX101.ccr.corp.intel.com> References: <20200323180458.6408-1-yinan.wang@intel.com> In-Reply-To: <20200323180458.6408-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug test case X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" 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 > Subject: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug = test > case >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > test_plans/hotplug_test_plan.rst | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) >=20 > 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 device= s, > with "--vdev" > run "port detach 0", check the error message of port not stopped. >=20 > run "stop", then "show port stats 0", check forwarding packages st= opped. > + > +Test Case 7: port detach & attach for vhost-user/virtio-user with "--vde= v" > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +1. Start testpmd with one vhost port:: > + > + $ ./testpmd -c 0xf -n 4 --no-pci --vdev 'eth_vhost0,iface=3Dvhost- > net,queues=3D1' -- -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=3Dvhost-net1,queues=3D1" > + 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-prefi= x=3Dvirtio1 > -- -i > + testpmd>port attach > net_virtio_user1,mac=3D00:01:02:03:04:05,path=3D./vhost- > net1,queues=3D1,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D0 > + 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 sid= e. > \ No newline at end of file > -- > 2.17.1