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 BFCDAA0564; Tue, 24 Mar 2020 02:10:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB1851C0AD; Tue, 24 Mar 2020 02:10:43 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 550141C0AB for ; Tue, 24 Mar 2020 02:10:42 +0100 (CET) IronPort-SDR: zFLiJl8uISsfx8PA7SHnOd2MLhxsuS0+NzdxQypARdOy2LdtGR3G5G5XYVwlotn1jijQJSIAKW y3YwyQ8WoDCw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2020 18:10:41 -0700 IronPort-SDR: o1YhJsXyCLb2bQ9fapg2CPyJOPdzo2v78ZBvPQp2aQbpa5fG/WmCu++ekzt4H8ZQNr7+L/43Jw 3kAgoYEJWEqg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,298,1580803200"; d="scan'208";a="240105932" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by orsmga008.jf.intel.com with ESMTP; 23 Mar 2020 18:10:40 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Mon, 23 Mar 2020 18:04:58 +0000 Message-Id: <20200323180458.6408-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 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_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