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 8C22DA0564; Tue, 24 Mar 2020 02:09:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5591A1C0B1; Tue, 24 Mar 2020 02:09:03 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 898111C0AD for ; Tue, 24 Mar 2020 02:09:01 +0100 (CET) IronPort-SDR: od4Aj5pYzVJ7lD1MGJ1qSsQNz08/IeAVNiA4s9UHtMb8R9AZTiT9TEh1Yi6L15/JGT4Bm5QGM6 74eXPyO8XALQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2020 18:09:00 -0700 IronPort-SDR: 0a59XOfzEk+JzU6ymd7PYpbIBRtm85Fp+S9MD87SYAWLs3556FffnPbIcaIE1Y9z5gBK20k3ON H0S30+0+KaDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,298,1580803200"; d="scan'208";a="238060721" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by fmsmga007.fm.intel.com with ESMTP; 23 Mar 2020 18:08:59 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Mon, 23 Mar 2020 18:03:17 +0000 Message-Id: <20200323180317.6304-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [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" From: Wang Yinan Signed-off-by: Wang Yinan --- test_plans/hotplug_mp_test_plan.rst | 72 +++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) 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 Quit primary and secondary processes + +Test Case: Repeat to attach/detach vhost-user from primary or secondary +======================================================================= +Start sample code as primary then secondary:: + + ./hotplug_mp --proc-type=auto + +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=vhost-net,queues=1,client=0 + 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 +======================================================================= +Start sample code as primary then secondary:: + + ./hotplug_mp --proc-type=auto + +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=00:01:02:03:04:05,path=/home/yinan/dpdk/vhost-net,packed_vq=1,mrg_rxbuf=1,in_order=0 + 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