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 41CB0A0567; Fri, 13 Mar 2020 07:55:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2020B1C011; Fri, 13 Mar 2020 07:55:40 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 5E6011BF97 for ; Fri, 13 Mar 2020 07:55:38 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Mar 2020 23:55:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,547,1574150400"; d="scan'208";a="389840736" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 12 Mar 2020 23:55:37 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:55:36 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Mar 2020 23:55:36 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.43]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.144]) with mapi id 14.03.0439.000; Fri, 13 Mar 2020 14:55:34 +0800 From: "Tu, Lijuan" To: "Wang, Yinan" , "dts@dpdk.org" CC: "Wang, Yinan" Thread-Topic: [dts] [PATCH v1] test_plans: remove vhost_pmd_xstats_test plan Thread-Index: AQHV951zomg5HKc73Ua8Mz9ZpgF1BahGGYig Date: Fri, 13 Mar 2020 06:55:34 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBEC91C@SHSMSX101.ccr.corp.intel.com> References: <20200311050019.8246-1-yinan.wang@intel.com> In-Reply-To: <20200311050019.8246-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.2.0.6 dlp-reaction: no-action 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: remove vhost_pmd_xstats_test plan 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yinan > Sent: Wednesday, March 11, 2020 1:00 PM > To: dts@dpdk.org > Cc: Wang, Yinan > Subject: [dts] [PATCH v1] test_plans: remove vhost_pmd_xstats_test plan >=20 > From: Wang Yinan >=20 > Signed-off-by: Wang Yinan > --- > test_plans/vhost_pmd_xstats_test_plan.rst | 124 ---------------------- > 1 file changed, 124 deletions(-) > delete mode 100644 test_plans/vhost_pmd_xstats_test_plan.rst >=20 > diff --git a/test_plans/vhost_pmd_xstats_test_plan.rst > b/test_plans/vhost_pmd_xstats_test_plan.rst > deleted file mode 100644 > index 5ae1dd1..0000000 > --- a/test_plans/vhost_pmd_xstats_test_plan.rst > +++ /dev/null > @@ -1,124 +0,0 @@ > -.. Copyright (c) <2016-2017>, 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 > -Vhost PMD Xstats Tests > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - > -This test plan will cover the basic vhost pmd xstats case and will be wo= rked - > as a regression test plan. In the test plan, we will use vhost as a pmd p= ort -in > testpmd. > - > -Test Case1: xstats based on packet size - > =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 TX-->Virtio RX-->Virtio TX-->Vhost RX-->NIC-->TG > - > -1. Bind one physical port to igb_uio, then launch the testpmd > - > -2. Launch VM1 with using hugepage, 2048M memory, 2 cores, > - 1 sockets, 1 virtio-net-pci:: > - > - taskset -c 6-7 qemu-system-x86_64 -name us-vhost-vm1 -cpu host - > enable-kvm > - -m 2048 -object memory-backend-file,id=3Dmem,size=3D2048M,mem- > path=3D/mnt/huge, > - share=3Don -numa node,memdev=3Dmem -mem-prealloc -smp > cores=3D2,sockets=3D1 -drive > - file=3D/home/osimg/ubuntu16.img -chardev socket,id=3Dchar0,path=3D.= /vhost- > net > - -netdev type=3Dvhost-user,id=3Dmynet1,chardev=3Dchar0,vhostforce,qu= eues=3D1 > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,mq=3Don > - -netdev tap,id=3Dipvm1,ifname=3Dtap3,script=3D/etc/qemu-ifup -devic= e rtl8139, > - netdev=3Dipvm1,id=3Dnet0,mac=3D00:00:00:00:10:01 -localtime -vnc :1= 0 - > daemonize > - > -3. On VM1, run testpmd > - > -4. On host, testpmd, set ports to the mac forward mode:: > - > - testpmd>set fwd mac > - testpmd>start tx_first > - > -5. On VM, testpmd, set port to the mac forward mode:: > - > - testpmd>set fwd mac > - testpmd>start > - > -6. On host run "show port xstats all" at least twice to check the packet= s > number > - > -7. Let TG generate different size of packets, send 10000 packets for eac= h > packet > - sizes(64,128,255, 512, 1024, 1523), check the statistic number is cor= rect > - > -8. On host run "clear port xstats all" , then all the statistic date sho= uld be 0 > - > -Test Case2: xstats based on packet types - > =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 > - > -Similar as Test Case1, all steps are similar except step 6, 7: > - > -6. On host run "show port xstats all" at least twice to check the packet= s type: > - > -7. Let TG generate different type of packets, broadcast, multicast, ucas= t, > check > - the statistic number is correct > - > -8. On host run "clear port xstats all" , then all the statistic date sho= uld be 0 > - > -Test Case3: stability case with multiple queues - > =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 > - > -1. No need bind any physical port to igb_uio,then launch the testpmd > - > -2. Launch VM1, set queues=3D2, vectors=3D2xqueues+2, mq=3Don, with using > hugepage, > - 2048M memory, 2 cores, 1 sockets, 1 virtio-net-pci:: > - > - taskset -c 6-7 qemu-system-x86_64 -name us-vhost-vm1 -cpu host - > enable-kvm > - -m 2048 -object memory-backend-file,id=3Dmem,size=3D2048M,mem- > path=3D/mnt/huge,\ > - share=3Don -numa node,memdev=3Dmem -mem-prealloc \ > - -smp cores=3D2,sockets=3D1 -drive file=3D/home/osimg/ubuntu16.img = \ > - -chardev socket,id=3Dchar0,path=3D./vhost-net \ > - -netdev type=3Dvhost-user,id=3Dmynet1,chardev=3Dchar0,vhostforce,qu= eues=3D1 > \ > - -device virtio-net- > pci,mac=3D52:54:00:00:00:01,netdev=3Dmynet1,mrg_rxbuf=3Doff,mq=3Don \ > - -netdev tap,id=3Dipvm1,ifname=3Dtap3,script=3D/etc/qemu-ifup -devic= e rtl8139, > - netdev=3Dipvm1,id=3Dnet0,mac=3D00:00:00:00:10:01 -localtime -vnc :1= 0 - > daemonize > - > -3. On VM1, run testpmd > - > -4. On host, testpmd, set ports to the mac forward mode:: > - > - testpmd>set fwd io retry > - testpmd>start tx_first 8 > - > -5. On VM, testpmd, set port to the mac forward mode:: > - > - testpmd>start > - > -6. Send packets for 30 minutes, check the Xstats still can work correctl= y:: > - > - testpmd>show port xstats all > -- > 2.17.1