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 35A51A034F; Thu, 1 Apr 2021 09:52:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AB1F14109A; Thu, 1 Apr 2021 09:52:03 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 89B2040141 for ; Thu, 1 Apr 2021 09:52:01 +0200 (CEST) IronPort-SDR: Wc5AkgUF0Ihd4/qrl2lKlSARwVIor10o5WMRZ4F+rm1nQXUk+Y8aJndaKwVuX+QbSXYdUzGzag j2vSUyaMB04Q== X-IronPort-AV: E=McAfee;i="6000,8403,9940"; a="179305526" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="179305526" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 00:51:59 -0700 IronPort-SDR: 05UtvikqsJcM1qRtnFNi6nbxleR+7e/yG/+YW/stPTykJX5xk4PN46vswOwmUMV9B8pD7pfOWg wqMN5voUUckQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="394405342" Received: from dpdk-yinan-ntb1.sh.intel.com ([10.67.119.39]) by orsmga002.jf.intel.com with ESMTP; 01 Apr 2021 00:51:56 -0700 From: Yinan Wang To: dts@dpdk.org Cc: Yinan Wang Date: Thu, 1 Apr 2021 12:34:19 -0400 Message-Id: <20210401163419.680532-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 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