From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 07EA8A00E6 for ; Fri, 19 Apr 2019 01:53:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F0D871B466; Fri, 19 Apr 2019 01:53:24 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 3BCCF1B445 for ; Fri, 19 Apr 2019 01:53:23 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2019 16:53:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,367,1549958400"; d="scan'208";a="150582756" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 18 Apr 2019 16:53:21 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 16:53:21 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 16:53:20 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.153]) with mapi id 14.03.0415.000; Fri, 19 Apr 2019 07:53:18 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans/virtio_user_interrupt: add test plan for virtio-user interrupt test Thread-Index: AQHU9P+zZmcCEo0OEUaUuGkUQRszfqZCmcIg Date: Thu, 18 Apr 2019 23:53:18 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA63F16@SHSMSX101.ccr.corp.intel.com> References: <20190417022402.6064-1-yinan.wang@intel.com> In-Reply-To: <20190417022402.6064-1-yinan.wang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmJmNDFmZjQtMWY0NS00MjYwLTkxNzMtOTZiNmQ2ZDI0ZDU0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibWlsb3ROT1FKbkp3dVVyWW5zc2wzNUQ0eEx0cFwvMWF2VGl0VldpWm1aWGI2Tlh4MUdEVVdiSllGMExkUnBWaDYifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH v1] test_plans/virtio_user_interrupt: add test plan for virtio-user interrupt test 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" Applying: test_plans/virtio_user_interrupt: add test plan for virtio-user i= nterrupt test .git/rebase-apply/patch:58: trailing whitespace. ./testpmd -c 0x7c -n 4 --socket-mem 1024,1024 --legacy-mem --vdev 'net_= vhost0,iface=3Dvhost-net,queues=3D1' -- -i --rxq=3D1 --txq=3D1 .git/rebase-apply/patch:65: trailing whitespace. .git/rebase-apply/patch:86: trailing whitespace. ping -I tap0 1.1.1.2 .git/rebase-apply/patch:93: trailing whitespace. .git/rebase-apply/patch:119: trailing whitespace. #it should show "down" warning: squelched 1 whitespace error warning: 6 lines add whitespace errors. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Tuesday, April 16, 2019 7:24 PM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans/virtio_user_interrupt: add test plan= for > virtio-user interrupt test >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > .../virtio_user_interrupt_test_plan.rst | 109 ++++++++++++++++++ > 1 file changed, 109 insertions(+) > create mode 100644 test_plans/virtio_user_interrupt_test_plan.rst >=20 > diff --git a/test_plans/virtio_user_interrupt_test_plan.rst > b/test_plans/virtio_user_interrupt_test_plan.rst > new file mode 100644 > index 0000000..dadb117 > --- /dev/null > +++ b/test_plans/virtio_user_interrupt_test_plan.rst > @@ -0,0 +1,109 @@ > +.. Copyright (c) <2019>, Intel Corporation > + All rights reserved. > + > + Redistribution and use in source and binary forms, with or without > + modification, are permitted provided that the following conditions > + are met: > + > + - Redistributions of source code must retain the above copyright > + notice, this list of conditions and the following disclaimer. > + > + - Redistributions in binary form must reproduce the above copyright > + notice, this list of conditions and the following disclaimer in > + the documentation and/or other materials provided with the > + distribution. > + > + - Neither the name of Intel Corporation nor the names of its > + contributors may be used to endorse or promote products derived > + from this software without specific prior written permission. > + > + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND > CONTRIBUTORS > + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT > + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND > FITNESS > + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE > + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, > INDIRECT, > + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES > + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS > OR > + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) > + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN > CONTRACT, > + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) > + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF > ADVISED > + OF THE POSSIBILITY OF SUCH DAMAGE. > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +vhost/virtio-user interrupt mode test plan > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Virtio-user interrupt need test with l3fwd-power sample, small packets > send from traffic generator to virtio side, check virtio-user cores can b= e > 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 > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D > + > +flow: TG --> NIC --> Vhost --> Virtio > + > +1. Bind one NIC port to igb_uio, launch testpmd with a virtual vhost dev= ice > as backend:: > + > + ./testpmd -c 0x7c -n 4 --socket-mem 1024,1024 --legacy-mem --vdev > 'net_vhost0,iface=3Dvhost-net,queues=3D1' -- -i --rxq=3D1 --txq=3D1 > + testpmd>start > + > +2. Start l3fwd-power with a virtio-user device:: > + > + ./l3fwd-power -c 0xc000 -n 4 --socket-mem 1024,1024 --log-level=3D'u= ser1,7' > --no-pci --file-prefix=3Dl3fwd-pwd \ > + --vdev=3Dvirtio_user0,path=3D./vhost-net -- -p 1 -P --config=3D"(0,0= ,14)" > + --parse-ptype > + > +3. Send packets with packet generator, check the virtio-user related cor= e > 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 rela= ted > core change to wakeup status again. > + > +Test Case2: Virtio-user interrupt test with vhost-net as backend > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D=3D=3D=3D=3D=3D > + > +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 --l= og- > level=3D'user1,7' --no-pci --file-prefix=3Dl3fwd-pwd \ > + --vdev=3Dvirtio_user0,path=3D/dev/vhost-net -- -p 1 -P > + --config=3D"(0,0,14)" --parse-ptype > + > +2. Vhost-net will generate one tap device, normally, it's TAP0, config i= t 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 co= re > change to wakeup status again. > + > +Test Case3: LSC event between vhost-user and virtio-user > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D=3D=3D=3D=3D=3D > + > +flow: Vhost <--> Virtio > + > +1. Start vhost-user side:: > + > + ./testpmd -c 0x3000 -n 4 --socket-mem 1024,1024 --no-pci --file- > prefix=3Dvhost --vdev 'net_vhost0,iface=3Dvhost-net,queues=3D1,client=3D0= ' -- -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=3Dvirtio --vdev=3Dnet_virtio_user0,mac=3D00:01:02:03:04:05,path=3D= ./vhost- > net -- -i --tx-offloads=3D0x00 > + 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 sid= e link > status:: > + > + testpmd> show port info 0 > + #it should show "down" > + > -- > 2.17.1