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 5B6B3A0564; Tue, 24 Mar 2020 08:10:08 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 238DD1C0AD; Tue, 24 Mar 2020 08:10:08 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8D3FF1C07E for ; Tue, 24 Mar 2020 08:10:06 +0100 (CET) IronPort-SDR: 48AxLekH270gVzPvn+9z44tJC51De3z3FYqDIW0JNdacLhLPH87ha6QrXUpTP/FSrz6DCZLN8H UQ3Lt5WWkGsA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2020 23:52:07 -0700 IronPort-SDR: m/yFf9tFB/7m3e0wZcdUh2JPHWnsLAmBVt60719ezxiA+uC3kCBZ5FY50Gej8GMCNJX7Bl4wRr QAySOCCFkQpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,299,1580803200"; d="scan'208";a="357329791" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 23 Mar 2020 23:52:07 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Mar 2020 23:52:06 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 23 Mar 2020 23:52:06 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 23 Mar 2020 23:52:06 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.235]) with mapi id 14.03.0439.000; Tue, 24 Mar 2020 14:52:04 +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_mp test case Thread-Index: AQHWAXjYlnSsN5/PD0+oj+ku099BpahXTn6w Date: Tue, 24 Mar 2020 06:52:03 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBF0A84@SHSMSX101.ccr.corp.intel.com> References: <20200323180317.6304-1-yinan.wang@intel.com> In-Reply-To: <20200323180317.6304-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_mp 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:03 AM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: add vhost-user/virtio-user hotplug_= mp > test case >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > test_plans/hotplug_mp_test_plan.rst | 72 > +++++++++++++++++++++++++++++ > 1 file changed, 72 insertions(+) >=20 > diff --git a/test_plans/hotplug_mp_test_plan.rst > b/test_plans/hotplug_mp_test_plan.rst > index db4758b..a69ea6f 100644 > --- a/test_plans/hotplug_mp_test_plan.rst > +++ b/test_plans/hotplug_mp_test_plan.rst > @@ -237,3 +237,75 @@ secondary processes fail to detach same device > again Repeat above attach and detach for 2 times >=20 > Quit primary and secondary processes > + > +Test Case: Repeat to attach/detach vhost-user from primary or secondary > +=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 > +Start sample code as primary then secondary:: > + > + ./hotplug_mp --proc-type=3Dauto > + > +Check primary and secondary processes don't have any device:: > + > + example> list > + list all etherdev > + > +Attach a virtual device from primary or secondary, check primary and > +secondary processes attach the share device successfully:: > + > + example> attach net_vhost0,iface=3Dvhost-net,queues=3D1,client=3D0 > + example> list > + list all etherdev > + 0 net_vhost0 > + > +Attach the same virtual device from primary or secondary, check primary > +and secondary processes fail to attach same device again > + > +Detach the virtual device from primary or secondary, check primary and > +secondary processes detach the share device successfully:: > + > + example> detach net_vhost0 > + example> list > + list all etherdev > + > +Detach the same virtual device from primary or secondary, check primary > +and secondary processes fail to detach same device again > + > +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 > +=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 > +Start sample code as primary then secondary:: > + > + ./hotplug_mp --proc-type=3Dauto > + > +Check primary and secondary processes don't have any device:: > + > + example> list > + list all etherdev > + > +Attach a virtual device from primary or secondary, check primary and > +secondary processes attach the share device successfully:: > + > + example> attach > net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D/home/yinan/dpdk/vhost- > net,packed_vq=3D1,mrg_rxbuf=3D1,in_order=3D0 > + example> list > + list all etherdev > + 0 net_virtio_user0 > + > +Attach the same virtual device from primary or secondary, check primary > +and secondary processes fail to attach same device again > + > +Detach the virtual device from primary or secondary, check primary and > +secondary processes detach the share device successfully:: > + > + example> detach net_virtio_user0 > + example> list > + list all etherdev > + > +Detach the same virtual device from primary or secondary, check primary > +and secondary processes fail to detach same device again > + > +Repeat above attach and detach for 2 times > + > +Quit primary and secondary processes > \ No newline at end of file > -- > 2.17.1