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 4E253A0565; Fri, 28 Feb 2020 14:15:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3F22F1C001; Fri, 28 Feb 2020 14:15:27 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D921E1BFFB for ; Fri, 28 Feb 2020 14:15:25 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2020 05:15:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,496,1574150400"; d="scan'208";a="439231553" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by fmsmga006.fm.intel.com with ESMTP; 28 Feb 2020 05:15:24 -0800 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Fri, 28 Feb 2020 06:09:45 +0000 Message-Id: <20200228060947.26001-10-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200228060947.26001-1-yinan.wang@intel.com> References: <20200228060947.26001-1-yinan.wang@intel.com> Subject: [dts] [PATCH 09/11 v1] test_plans: add packed ring test cases for vhost_virtio_user_interrupt 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 --- .../vhost_virtio_user_interrupt_test_plan.rst | 88 +++++++++++++++++-- 1 file changed, 80 insertions(+), 8 deletions(-) diff --git a/test_plans/vhost_virtio_user_interrupt_test_plan.rst b/test_plans/vhost_virtio_user_interrupt_test_plan.rst index d948dc7..149d373 100644 --- a/test_plans/vhost_virtio_user_interrupt_test_plan.rst +++ b/test_plans/vhost_virtio_user_interrupt_test_plan.rst @@ -34,11 +34,13 @@ vhost/virtio-user interrupt mode test plan ========================================== -Virtio-user interrupt need test with l3fwd-power sample, small packets send from traffic generator to virtio side, check virtio-user cores can be wakeup status, and virtio-user cores should be sleep status after stop sending packets from traffic generator. -This test plan cover both vhost-net and vhost-user as the backend. +Virtio-user interrupt need test with l3fwd-power sample, small packets send from traffic generator +to virtio side, check virtio-user cores can be wakeup status, and virtio-user cores should be sleep +status after stop sending packets from traffic generator.This test plan cover both vhost-net and +vhost-user as the backend. -Test Case1: Virtio-user interrupt test with vhost-user as backend -================================================================= +Test Case1: Split ring virtio-user interrupt test with vhost-user as backend +============================================================================ flow: TG --> NIC --> Vhost --> Virtio @@ -58,8 +60,8 @@ flow: TG --> NIC --> Vhost --> Virtio 5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again. -Test Case2: Virtio-user interrupt test with vhost-net as backend -=============================================================================== +Test Case2: Split ring virtio-user interrupt test with vhost-net as backend +=========================================================================== flow: Tap --> Vhost-net --> Virtio @@ -80,8 +82,8 @@ flow: Tap --> Vhost-net --> Virtio 5. Restart sending packets with tap device, check virtio-user related core change to wakeup status again. -Test Case3: LSC event between vhost-user and virtio-user -=============================================================================== +Test Case3: LSC event between vhost-user and virtio-user with split ring +======================================================================== flow: Vhost <--> Virtio @@ -106,3 +108,73 @@ flow: Vhost <--> Virtio testpmd> show port info 0 #it should show "down" + +Test Case4: Packed ring virtio-user interrupt test with vhost-user as backend +============================================================================= + +flow: TG --> NIC --> Vhost --> Virtio + +1. Bind one NIC port to igb_uio, launch testpmd with a virtual vhost device as backend:: + + ./testpmd -c 0x7c -n 4 --socket-mem 1024,1024 --legacy-mem --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i --rxq=1 --txq=1 + testpmd>start + +2. Start l3fwd-power with a virtio-user device:: + + ./l3fwd-power -c 0xc000 -n 4 --socket-mem 1024,1024 --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. + +Test Case5: Packed ring virtio-user interrupt test with vhost-net as backend with +================================================================================= + +flow: Tap --> Vhost-net --> Virtio + +1. Start l3fwd-power with a virtio-user device, vhost-net as backend:: + + ./l3fwd-power -c 0xc000 -n 4 --socket-mem 1024,1024 --legacy-mem --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \ + --vdev=virtio_user0,path=/dev/vhost-net,packed_vq=1 -- -p 1 -P --config="(0,0,14)" --parse-ptype + +2. Vhost-net will generate one tap device, normally, it's TAP0, config it and generate packets on it using pind cmd:: + + ifconfig tap0 up + ifconfig tap0 1.1.1.1 + ping -I tap0 1.1.1.2 + +3. Check the virtio-user related core can be wake up. + +4. Stop sending packets with tap device, check virtio-user related core change to sleep status. + +5. Restart sending packets with tap device, check virtio-user related core change to wakeup status again. + +Test Case6: LSC event between vhost-user and virtio-user with packed ring +========================================================================= + +flow: Vhost <--> Virtio + +1. Start vhost-user side:: + + ./testpmd -c 0x3000 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i + testpmd>set fwd mac + testpmd>start + +2. Start virtio-user side:: + + ./testpmd -c 0xc000 -n 4 --socket-mem 1024,1024 --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" -- 2.17.1