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 A39E8A04EF; Wed, 4 Dec 2019 01:44:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 56B621BF75; Wed, 4 Dec 2019 01:44:01 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id C181D1BF74 for ; Wed, 4 Dec 2019 01:43:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2019 16:43:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,275,1571727600"; d="scan'208";a="213640703" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 03 Dec 2019 16:43:57 -0800 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Dec 2019 16:43:56 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.90]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.46]) with mapi id 14.03.0439.000; Wed, 4 Dec 2019 08:43:55 +0800 From: "He, Zhiwei" To: "Jiang, JunyuX" , "dts@dpdk.org" CC: "Jiang, JunyuX" Thread-Topic: [dts] [PATCH] test_plans: add test plan enable_jumboframe_for_vf Thread-Index: AQHVqbMPATMi6A+3/0CLeiANDCMVjKepJDUA Date: Wed, 4 Dec 2019 00:43:54 +0000 Message-ID: <09777F12A863964D9F4AE780D4FEA3E83E70BC83@SHSMSX104.ccr.corp.intel.com> References: <20191203015211.3878-1-junyux.jiang@intel.com> In-Reply-To: <20191203015211.3878-1-junyux.jiang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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] test_plans: add test plan enable_jumboframe_for_vf 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" Acked by zhiwei -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Junyu Jiang Sent: Tuesday, December 3, 2019 9:52 AM To: dts@dpdk.org Cc: Jiang, JunyuX Subject: [dts] [PATCH] test_plans: add test plan enable_jumboframe_for_vf Signed-off-by: Junyu Jiang --- .../enable_jumboframe_for_vf_test_plan.rst | 158 ++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 test_plans/enable_jumboframe_for_vf_test_plan.rst diff --git a/test_plans/enable_jumboframe_for_vf_test_plan.rst b/test_plans= /enable_jumboframe_for_vf_test_plan.rst new file mode 100644 index 0000000..ff93a93 --- /dev/null +++ b/test_plans/enable_jumboframe_for_vf_test_plan.rst @@ -0,0 +1,158 @@ +.. 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=3D=3D=3D=3D=3D=3D=3D= =3D +VF enable jumbo frame by configuring DPDK PF Tests=20 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D + +Description +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +when do MTU set on VF port of ixgbe NIC, jumbo frame mode need enable=20 +by host pf, to receive Jumbo Frames with a configurable maximum packet=20 +length that is greater than the standard maximum Ethernet frame length (15= 18 bytes). + +Prerequisites +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +1. Hardware: + Ethernet Controller 10G X550T 1563 + Ethernet Connection X552/X557-AT 10GBASE-T 15ad + =20 +2.Bind PF ports to igb_uio driver:: + + usertools/dpdk-devbind.py --bind=3Digb_uio 0000:af:00.0 + =20 +3.Create 1 VF device from PF devices,then bind the created VF to igb_uio d= river:: + + echo 1 > /sys/bus/pci/devices/0000\:af\:00.0/max_vfs + usertools/dpdk-devbind.py --bind=3Digb_uio 0000:af:10.0 + +4.Start testpmd on host:: + + ./x86_64-native-linux-gcc/app/testpmd -c 0xf -n 4 -w af:00.0 --file-prefi= x=3DPF -- -i + testpmd> set verbose 1 + testpmd> set promisc 0 off + testpmd> start +=20 +5.Start VF testpmd:: + + ./x86_64-native-linux-gcc/app/testpmd -c 0xf -n 4 -w af:10.0 --file-prefi= x=3DVF -- -i + testpmd> set verbose 1 + testpmd> start + =20 +Test Case1: Mtu is greater than 1518 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + =20 +Set MTU on vf port:: + + testpmd> stop + testpmd> port stop 0 + testpmd> port config mtu 0 2000 + testpmd> port start 0 + testpmd> start + +Send the packet what the length is greater than 1518 less than 2000 to PF = port:: + + sendp([Ether(dst=3D'B4:96:91:57:78:FC')/IP()/("X" * 1600)],=20 +iface=3D"enp175s0f1", count=3D1) + +Send the packet what the length is greater than 1518 less than 2000 to VF = port:: + + sendp([Ether(dst=3D'CE:43:0B:2E:AE:64')/IP()/("X" * 1600)],=20 +iface=3D"enp175s0f1", count=3D1) + =20 +Check that packets length greater than the standard maximum frame=20 +(1518) less than 2000 can received on VF port and PF port. +=20 +Send the packet what the length is greater than 2000 to PF port:: + + sendp([Ether(dst=3D'B4:96:91:57:78:FC')/IP()/("X" * 2100)],=20 +iface=3D"enp175s0f1", count=3D1) +=09 +Send the packet what the length is greater than 2000 to VF port:: +=09 + sendp([Ether(dst=3D'CE:43:0B:2E:AE:64')/IP()/("X" * 2100)],=20 +iface=3D"enp175s0f1", count=3D1) + +Check that packets length greater than 2000 can not received on VF port an= d PF port. + =20 +Quit VF testpmd, and then restart the VF testpmd:: + + testpmd> quit + ./x86_64-native-linux-gcc/app/testpmd -c 0xf -n 4 -w af:10.0 --file-prefi= x=3DVF -- -i + testpmd> set verbose 1 + testpmd> start + +Send the packet what the length is greater than 1518 less than 2000 to VF = port again:: + =20 + sendp([Ether(dst=3D'CE:43:0B:2E:AE:64')/IP()/("X" * 1600)],=20 +iface=3D"enp175s0f1", count=3D1) + =20 +Check that packets length greater than the standard maximum frame=20 +(1518) less than 2000 can received on VF port. + =20 +Send the pkts what the length is greater than 2000 to VF port again:: + + sendp([Ether(dst=3D'CE:43:0B:2E:AE:64')/IP()/("X" * 2100)],=20 +iface=3D"enp175s0f1", count=3D1) +=09 +Check that packets length greater than 2000 can not received on VF port.=20 +=20 +Test case2: The maximum mtu(9710) +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D + +Set MTU on vf port:: + + testpmd> stop + testpmd> port stop 0 + testpmd> port config mtu 0 9710 + testpmd> port start 0 + testpmd> start + =20 +Send the packet what the length is 9710 to PF port:: + + sendp([Ether(dst=3D'B4:96:91:57:78:FC')/IP()/("X" * 9676)],=20 +iface=3D"enp175s0f1", count=3D1) +=09 +Send the packet what the length is 9710 to VF port:: +=09 + sendp([Ether(dst=3D'CE:43:0B:2E:AE:64')/IP()/("X" * 9676)],=20 +iface=3D"enp175s0f1", count=3D1) +=09 +Check that packets length is 9710 can received on VF port and PF port. + +Quit VF testpmd, and then restart the VF testpmd:: + + testpmd> quit + ./x86_64-native-linux-gcc/app/testpmd -c 0xf -n 4 -w af:10.0 --file-prefi= x=3DVF -- -i + testpmd> set verbose 1 + testpmd> start + =20 +Send the pkts what the length is 9710 to VF port:: + + sendp([Ether(dst=3D'CE:43:0B:2E:AE:64')/IP()/("X" * 9676)],=20 +iface=3D"enp175s0f1", count=3D1) + +Check that packets length is 9710 can received on VF port. -- 2.17.1