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 9A37DA046B for ; Wed, 29 May 2019 04:13:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8E4073576; Wed, 29 May 2019 04:13:13 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B73D29E4 for ; Wed, 29 May 2019 04:13:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 May 2019 19:13:11 -0700 X-ExtLoop1: 1 Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 28 May 2019 19:13:11 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 28 May 2019 19:13:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.18]) with mapi id 14.03.0415.000; Wed, 29 May 2019 10:13:09 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] rename vxlan_gpe_support_in_i40e Thread-Index: AQHVD63OyM2vB6rubEKQRvIYyvft5KaBaLyQ Date: Wed, 29 May 2019 02:13:08 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA864DB@SHSMSX101.ccr.corp.intel.com> References: <1558400280-4375-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1558400280-4375-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: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTc3N2QyNWEtMGE0NS00NThkLWExZjktZGE5ZjQ1M2NmYWUxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZmI2cVc2TkVMZEVJaFRuUmdjZFAxWnBtUUVnYVR2a0E5aEUwZHY4cEVKWVwvUHBYd0RyQms5Z2c1MFoyQ3FtdHIifQ== 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] rename vxlan_gpe_support_in_i40e 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 lihong > Sent: Tuesday, May 21, 2019 8:58 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1] rename vxlan_gpe_support_in_i40e >=20 > Signed-off-by: lihong > --- > test_plans/vxlan_gpe_support_in_i40e.rst | 120 ---------------= ------ > test_plans/vxlan_gpe_support_in_i40e_test_plan.rst | 120 > +++++++++++++++++++++ > 2 files changed, 120 insertions(+), 120 deletions(-) delete mode 100644 > test_plans/vxlan_gpe_support_in_i40e.rst > create mode 100644 test_plans/vxlan_gpe_support_in_i40e_test_plan.rst >=20 > diff --git a/test_plans/vxlan_gpe_support_in_i40e.rst > b/test_plans/vxlan_gpe_support_in_i40e.rst > deleted file mode 100644 > index 02be05e..0000000 > --- a/test_plans/vxlan_gpe_support_in_i40e.rst > +++ /dev/null > @@ -1,120 +0,0 @@ > -.. Copyright (c) <2016-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 > -I40E VXLAN-GPE Support Tests > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > - > -Prerequisites > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - > -1. The DUT has at least 2 DPDK supported I40E NIC ports:: > - > - Tester DUT > - eth1 <---> PORT 0 > - eth2 <---> PORT 1 > - > -2. Support igb_uio driver:: > - > - modprobe uio > - insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko > - ./usertools/dpdk-devbind.py --bind=3Digb_uio 04:00.0 04:00.1 > - > -Test Case 1: VXLAN-GPE ipv4 packet detect - > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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. Start testpmd:: > - > - # testpmd -c 0xf -n 4 -- -i > - > -2. Add VXLAN-GPE packet type support in test pmd and enable verbose log:= : > - > - testpmd> set fwd io > - testpmd> set verbose 1 > - testpmd> port config 0 udp_tunnel_port add vxlan-gpe 4790 > - > -3. Send VXLAN-GPE packets to testpmd and check received packets:: > - > - scapy> > pkt=3DEther(dst=3D"3C:FD:FE:A8:C8:20")/IP(src=3D"18.0.0.1")/UDP(dport=3D4= 790,sport > =3D43)/VXLAN(flags=3D12)/IP(src=3D"10.0.0.1") > - scapy> sendp(pkt1, iface=3D"ens802f1", count=3D1) > - > -4. Expected output from testpmd:: > - > - src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:A8:C8:20 - type=3D0x0800 - = length=3D70 - > nb_segs=3D1 - RSS hash=3D0x51ed6fc5 - RSS > - queue=3D0x2 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN > TUNNEL_GRENAT INNER_L3_IPV4_EXT_UNKNOWN > - INNER_L4_NONFRAG - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=3D14= - > l3_len=3D20 - l4_len=3D8 > - - VXLAN packet: packet type =3D24721, Destination UDP port =3D4790, = VNI =3D 0 - > Receive queue=3D0x2 > - > -Test Case 2: VXLAN-GPE tunnel remove test - > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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. After Test Case 1, delete the VXLAN-GPE packet type:: > - > - testpmd> port config 0 udp_tunnel_port rm vxlan-gpe 4790 > - > -2. Send VXLAN-GPE packets to testpmd and check the received packets > - > -3. Expected result:: > - > - testpmd should treat the packet as a normal UDP packet > - > -Test Case 3: Tunnel filter VXLAN-GPE support - > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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. Start testpmd with tunneling packet type to vxlan and disable receive > side > - scale for hardware limitation:: > - > - # testpmd -c ffff -n 4 -- -i --disable-rss --rxq=3D4 --txq=3D4 --nb-= cores=3D8 --nb- > ports=3D2 --tx-offloads=3D0x8fff > - > -2. Set rxonly packet forwarding mode and enable verbose log:: > - > - testpmd> set fwd rxonly > - testpmd> set verbose 1 > - > -3. Add one new Cloud filter as table listed first:: > - > - testpmd> tunnel_filter add 0 11:22:33:44:55:66 00:00:20:00:00:01 > 192.168.2.2 1 vxlan-gpe imac-ivlan 1 3 > - > -4. Then send one packet and check packet was forwarded into right queue. > - > -+------------+------------+------------+----------+----------+--------+-= ------+ > -| Outer Mac | Inner Mac | Inner Vlan | Outer Ip | Inner Ip | Vni ID | > -| Queue | > -+------------+------------+------------+----------+----------+--------+-= ------+ > -| No | Yes | Yes | No | No | No | = 1 | > -+------------+------------+------------+----------+----------+--------+-= ------+ > -| No | Yes | Yes | No | No | Yes | = 1 | > -+------------+------------+------------+----------+----------+--------+-= ------+ > -| No | Yes | No | No | No | Yes | = 1 | > -+------------+------------+------------+----------+----------+--------+-= ------+ > -| No | Yes | No | No | No | No | = 1 | > -+------------+------------+------------+----------+----------+--------+-= ------+ > -| Yes | Yes | No | No | Yes | Yes | = 1 | > -+------------+------------+------------+----------+----------+--------+-= ------+ > -| No | No | No | No | Yes | No | = 1 | > -+------------+------------+------------+----------+----------+--------+-= ------+ > diff --git a/test_plans/vxlan_gpe_support_in_i40e_test_plan.rst > b/test_plans/vxlan_gpe_support_in_i40e_test_plan.rst > new file mode 100644 > index 0000000..905bd88 > --- /dev/null > +++ b/test_plans/vxlan_gpe_support_in_i40e_test_plan.rst > @@ -0,0 +1,120 @@ > +.. 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 > +I40E VXLAN-GPE Support Tests > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +1. The DUT has at least 2 DPDK supported I40E NIC ports:: > + > + Tester DUT > + eth1 <---> PORT 0 > + eth2 <---> PORT 1 > + > +2. Support igb_uio driver:: > + > + modprobe uio > + insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko > + ./usertools/dpdk-devbind.py --bind=3Digb_uio 04:00.0 04:00.1 > + > +Test Case 1: VXLAN-GPE ipv4 packet detect > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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. Start testpmd:: > + > + # testpmd -c 0xf -n 4 -- -i > + > +2. Add VXLAN-GPE packet type support in test pmd and enable verbose log:= : > + > + testpmd> set fwd io > + testpmd> set verbose 1 > + testpmd> port config 0 udp_tunnel_port add vxlan-gpe 4790 > + > +3. Send VXLAN-GPE packets to testpmd and check received packets:: > + > + scapy> > pkt=3DEther(dst=3D"3C:FD:FE:A8:C8:20")/IP(src=3D"18.0.0.1")/UDP(dport=3D4= 790,sport > =3D43)/VXLAN(flags=3D12)/IP(src=3D"10.0.0.1") > + scapy> sendp(pkt1, iface=3D"ens802f1", count=3D1) > + > +4. Expected output from testpmd:: > + > + src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:A8:C8:20 - type=3D0x0800 - = length=3D70 - > nb_segs=3D1 - RSS hash=3D0x51ed6fc5 - RSS > + queue=3D0x2 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN > TUNNEL_GRENAT INNER_L3_IPV4_EXT_UNKNOWN > + INNER_L4_NONFRAG - sw ptype: L2_ETHER L3_IPV4 L4_UDP - l2_len=3D14= - > l3_len=3D20 - l4_len=3D8 > + - VXLAN packet: packet type =3D24721, Destination UDP port =3D4790, = VNI > + =3D 0 - Receive queue=3D0x2 > + > +Test Case 2: VXLAN-GPE tunnel remove test > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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. After Test Case 1, delete the VXLAN-GPE packet type:: > + > + testpmd> port config 0 udp_tunnel_port rm vxlan-gpe 4790 > + > +2. Send VXLAN-GPE packets to testpmd and check the received packets > + > +3. Expected result:: > + > + testpmd should treat the packet as a normal UDP packet > + > +Test Case 3: Tunnel filter VXLAN-GPE support > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=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. Start testpmd with tunneling packet type to vxlan and disable receive > side > + scale for hardware limitation:: > + > + # testpmd -c ffff -n 4 -- -i --disable-rss --rxq=3D4 --txq=3D4 > + --nb-cores=3D8 --nb-ports=3D2 --tx-offloads=3D0x8fff > + > +2. Set rxonly packet forwarding mode and enable verbose log:: > + > + testpmd> set fwd rxonly > + testpmd> set verbose 1 > + > +3. Add one new Cloud filter as table listed first:: > + > + testpmd> tunnel_filter add 0 11:22:33:44:55:66 00:00:20:00:00:01 > + 192.168.2.2 1 vxlan-gpe imac-ivlan 1 3 > + > +4. Then send one packet and check packet was forwarded into right queue. > + > ++------------+------------+------------+----------+----------+--------+-= ------+ > +| Outer Mac | Inner Mac | Inner Vlan | Outer Ip | Inner Ip | Vni ID | > +| Queue | > ++------------+------------+------------+----------+----------+--------+-= ------+ > +| No | Yes | Yes | No | No | No | = 1 | > ++------------+------------+------------+----------+----------+--------+-= ------+ > +| No | Yes | Yes | No | No | Yes | = 1 | > ++------------+------------+------------+----------+----------+--------+-= ------+ > +| No | Yes | No | No | No | Yes | = 1 | > ++------------+------------+------------+----------+----------+--------+-= ------+ > +| No | Yes | No | No | No | No | = 1 | > ++------------+------------+------------+----------+----------+--------+-= ------+ > +| Yes | Yes | No | No | Yes | Yes | = 1 | > ++------------+------------+------------+----------+----------+--------+-= ------+ > +| No | No | No | No | Yes | No | = 1 | > ++------------+------------+------------+----------+----------+--------+-= ------+ > -- > 2.7.4