From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E3E8E7CEA for ; Tue, 27 Mar 2018 11:04:07 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2018 02:04:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,366,1517904000"; d="scan'208";a="31672858" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 27 Mar 2018 02:04:04 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 27 Mar 2018 02:04:04 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 27 Mar 2018 02:04:03 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.235]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.226]) with mapi id 14.03.0319.002; Tue, 27 Mar 2018 17:04:02 +0800 From: "Liu, Yong" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] Add test plan about vhost qemu mtu Thread-Index: AQHTwm+zwSbCCISTKEinvlznH1CTK6PjzkEA Date: Tue, 27 Mar 2018 09:04:02 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62FCB75C@SHSMSX103.ccr.corp.intel.com> References: <1588091696-8008-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1588091696-8008-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2NiNDM2NGQtOTJjMy00MjFmLWFkMDYtNjlhYWRmNWI4Njg2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ5dW9JRzhDZlpRSmtsWmFqUW5cL3JVQncwelBLenkrN1lhMzZNZFNtWnNFVjVmTGxLSXNoQmhqQ0J4K3JkVWk5VyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 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] Add test plan about vhost qemu mtu 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: , X-List-Received-Date: Tue, 27 Mar 2018 09:04:08 -0000 Lihong, Some comments are inline. Thanks Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Wednesday, April 29, 2020 12:35 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] Add test plan about vhost qemu mtu >=20 > Signed-off-by: lihong > --- > test_plans/vhost_qemu_mtu_test_plan.rst | 82 > +++++++++++++++++++++++++++++++++ > 1 file changed, 82 insertions(+) > create mode 100644 test_plans/vhost_qemu_mtu_test_plan.rst >=20 > diff --git a/test_plans/vhost_qemu_mtu_test_plan.rst > b/test_plans/vhost_qemu_mtu_test_plan.rst > new file mode 100644 > index 0000000..3c9c0ab > --- /dev/null > +++ b/test_plans/vhost_qemu_mtu_test_plan.rst > @@ -0,0 +1,82 @@ > +.. Copyright (c) <2018>, 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 > +Vhost TSO Test Plan > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +The feature test the setting of MTU value of virtio-net and kernel drive= r. > + > +Prerequisites: > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +The guests kernel should grand than 4.10 > +The qemu version should greater or equal to 2.9 > + > +Test Case: Test kernel driver in guests > +=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. Launch the tetspmd by below commands on host:: > + > + ./testpmd -c 0xc -n 4 --socket-mem 2048,2048 \ > + --vdev 'net_vhost0,iface=3Dvhost-net,queues=3D1' \ > + -- -i --txd=3D512 --rxd=3D128 --nb-cores=3D1 --port-topology=3Dchain= ed > + > +2. Launch VM:: > + > + Use the qemu_2.9 or qemu 2.10 to start the VM and the VM kernel > should > + grand than 4.10, set the mtu value to 8888 Please use reasonable MTU setting, like 68, 1500, 9000.=20 > + > + taskset -c 4,5 qemu-system-x86_64 -name vm0 -enable-kvm \ > + -chardev socket,path=3D/tmp/vm0_qga0.sock,server,nowait,id=3Dvm0_qga= 0 \ > + -device virtio-serial -device > virtserialport,chardev=3Dvm0_qga0,name=3Dorg.qemu.guest_agent.0 \ > + -daemonize -monitor unix:/tmp/vm0_monitor.sock,server,nowait \ > + -chardev socket,id=3Dchar0,path=3D./vhost-net -netdev type=3Dvhost- > user,id=3Dnetdev0,chardev=3Dchar0,vhostforce \ > + -device virtio-net- > pci,netdev=3Dnetdev0,mac=3D52:54:00:00:00:01,mrg_rxbuf=3Don,host_mtu=3D88= 88 \ > + -cpu host -smp 4 -m 2048 -object memory-backend- > file,id=3Dmem,size=3D2048M,mem-path=3D/mnt/huge,share=3Don \ > + -numa node,memdev=3Dmem -mem-prealloc -drive file=3D/home/osimg/ubun= tu- > ker-410.img -vnc :4 > + > +3. Check the MTU value in VM:: > + > + Use the ifconfig command to check the MTU value of > + virtio kernel driver is 8888 in VM. > + > +Test Case: Test the virtio-net MTU > +=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 Please change case name format, use name like "MTU in pmd" and "MTU in virt= io-net".=20 Here I only saw basic output check, I think still need function test here.= =20 > + > +1. Continue use the VM in Test Case1, bind the kernel driver to igb_uio:= : > + > +2. Launch testpmd in VM:: > + > + ./testpmd -c 0x03 -n 3 \ > + -- -i --txd=3D512 --rxd=3D128 --tx-offloads=3D0x0 --enable-hw-vlan-s= trip > + > +3. Run `show port info 0` in VM, and check the MTU value is equal to 888= 8 > -- > 2.7.4