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 7BA6DA0546; Wed, 7 Apr 2021 09:06:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7386114100C; Wed, 7 Apr 2021 09:06:15 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 9F2FE4069F for ; Wed, 7 Apr 2021 09:06:13 +0200 (CEST) IronPort-SDR: kPGZaqrScwz2zg15qsBmZbNpXngv1joDIGuA3ho80qzOHZsgfgbW2+gloGyZ2RqD9MsXk6Qes9 cUry2yMMf26A== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="190036758" X-IronPort-AV: E=Sophos;i="5.82,201,1613462400"; d="scan'208";a="190036758" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 00:06:13 -0700 IronPort-SDR: TlFlnsJ6VhcgMMEy48uoC3ER2rK9IslekmM5nsCP9dx++s97xYUPVPFCnd7fadfKbeXqREAP8Y AZbrYq/334vw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,201,1613462400"; d="scan'208";a="458235964" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by orsmga001.jf.intel.com with ESMTP; 07 Apr 2021 00:06:11 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Wed, 7 Apr 2021 11:47:47 -0400 Message-Id: <20210407154748.823186-2-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210407154748.823186-1-yinan.wang@intel.com> References: <20210407154748.823186-1-yinan.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2 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