From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8DF8EA0579; Wed, 7 Apr 2021 09:18:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B53A141047; Wed, 7 Apr 2021 09:18:22 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 9163B4069F for ; Wed, 7 Apr 2021 09:18:21 +0200 (CEST) IronPort-SDR: grwZw6XMut8HPT0eo52qa+0CeKaZ5V5scz9NoHcHSbkRSLP/1IyWuvnSPf4nyZIjT4rrUOy2eO 87Xr4F+EHAgw== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="180375681" X-IronPort-AV: E=Sophos;i="5.82,201,1613462400"; d="scan'208";a="180375681" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 00:18:20 -0700 IronPort-SDR: TBOHAquNKXVOLjGSO6YecqZxAe/2q9SbftRAAnUmFGdsMBF/vLU8YrhT3OKRj4ycF+JTLujsCQ iWtDou4FQvsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,201,1613462400"; d="scan'208";a="448978511" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by fmsmga002.fm.intel.com with ESMTP; 07 Apr 2021 00:18:16 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Wed, 7 Apr 2021 11:59:47 -0400 Message-Id: <20210407155948.823493-3-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210407155948.823493-1-yinan.wang@intel.com> References: <20210407155948.823493-1-yinan.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V3 2/3] test_plans/vhost_virtio_user_interrupt_test_plan.rst X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" Add cases for cbdma packed ring test. Signed-off-by: Yinan Wang --- .../vhost_virtio_user_interrupt_test_plan.rst | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/test_plans/vhost_virtio_user_interrupt_test_plan.rst b/test_plans/vhost_virtio_user_interrupt_test_plan.rst index 07c1d882..4ef4cac4 100644 --- a/test_plans/vhost_virtio_user_interrupt_test_plan.rst +++ b/test_plans/vhost_virtio_user_interrupt_test_plan.rst @@ -246,3 +246,51 @@ flow: TG --> NIC --> Vhost --> Virtio 4. Stop sending packets with packet generator, check virtio-user related core change to sleep status. 5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again. + +Test Case9: LSC event between vhost-user and virtio-user with packed ring and cbdma enabled +=========================================================================================== + +flow: Vhost <--> Virtio + +1. Bind one cbdma port to igb_uio driver, then start vhost-user side:: + + ./testpmd -c 0x3000 -n 4 -w 00:04.0 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0@00:04.0]' -- -i + testpmd>set fwd mac + testpmd>start + +2. Start virtio-user side:: + + ./testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,packed_vq=1 -- -i --tx-offloads=0x00 + testpmd>set fwd mac + testpmd>start + +3. Check the virtio-user side link status:: + + testpmd> show port info 0 + #it should show "up" + +4. Quit the vhost-user side with testpmd, then check the virtio-user side link status:: + + testpmd> show port info 0 + #it should show "down" + +Test Case10: Packed ring virtio-user interrupt test with vhost-user as backend and cbdma enabled +================================================================================================ + +flow: TG --> NIC --> Vhost --> Virtio + +1. Bind one cbdma port and one NIC port to igb_uio, launch testpmd with a virtual vhost device as backend:: + + ./testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0@00:04.0]' -- -i --rxq=1 --txq=1 + testpmd>start + +2. Start l3fwd-power with a virtio-user device:: + + ./l3fwd-power -c 0xc000 -n 4 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \ + --vdev=virtio_user0,path=./vhost-net,packed_vq=1 -- -p 1 -P --config="(0,0,14)" --parse-ptype + +3. Send packets with packet generator, check the virtio-user related core can be wakeup status. + +4. Stop sending packets with packet generator, check virtio-user related core change to sleep status. + +5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again. -- 2.25.1