From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D1F952C49 for ; Thu, 9 Mar 2017 04:57:05 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2017 19:57:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,266,1486454400"; d="scan'208";a="233992036" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 08 Mar 2017 19:57:04 -0800 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 8 Mar 2017 19:57:04 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 8 Mar 2017 19:57:04 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Thu, 9 Mar 2017 11:57:02 +0800 From: "Xing, Beilei" To: "Yigit, Ferruh" , "Wu, Jingjing" CC: "Zhang, Helin" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 3/3] net/i40e: enable cloud filter for MPLS Thread-Index: AQHSlAMFjuCOWTJQJUqImSmK4eJprqGKnZSAgAFIJQA= Date: Thu, 9 Mar 2017 03:57:01 +0000 Message-ID: <94479800C636CB44BD422CB454846E01315A7BE5@SHSMSX101.ccr.corp.intel.com> References: <1488534236-29904-1-git-send-email-beilei.xing@intel.com> <1488534236-29904-4-git-send-email-beilei.xing@intel.com> In-Reply-To: Accept-Language: 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: [dpdk-dev] [PATCH 3/3] net/i40e: enable cloud filter for MPLS X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2017 03:57:06 -0000 > -----Original Message----- > From: Yigit, Ferruh > Sent: Thursday, March 9, 2017 12:06 AM > To: Xing, Beilei ; Wu, Jingjing > Cc: Zhang, Helin ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 3/3] net/i40e: enable cloud filter for MPL= S >=20 > On 3/3/2017 9:43 AM, Beilei Xing wrote: > > This patch enables MPLSoUDP and MPLSoGRE cloud filter with replace > > cloud filter. > > > > Signed-off-by: Beilei Xing >=20 > <...> >=20 > > @@ -1286,6 +1286,9 @@ eth_i40e_dev_init(struct rte_eth_dev *dev) > > if (ret < 0) > > goto err_init_fdir_filter_list; > > > > + i40e_replace_mpls_l1_filter(pf); > > + i40e_replace_mpls_cloud_filter(pf); >=20 > Hi Beilei, >=20 > Can you please help me to understand what has been replaced here, and > why? * Cloud filters type is a combination of up to 3 L1 filters. * L1 filter depends on Type Rule index. First, there's no MPLS label as L1 filter currently, so we need to add MPLS= label by replacing some existing L1 filter, here we replace IMAC. Second, there's no MPLS label as cloud filter currently, So here we add a n= ew cloud filter type TEID_MPLS (0x11) to replace Inner MAC filter(0xA). According to datasheet, the following filter types are supported by cloud f= ilter. 6:0: Filter type: * 0x0: Reserved * 0x1: Reserved=20 * 0x2: Reserved=20 * 0x3: Inner MAC, Inner VLAN (for NVGRE, VXLAN or, Geneve or VXLAN-GPE pack= ets) * 0x4: Inner MAC, Inner VLAN, Tenant ID (for NVGRE, VXLAN, or Geneve or VXL= AN-GPE packets) * 0x5: Reserved=20 * 0x6: {Inner MAC, Tenant ID} (NVGRE packet, or VXLAN, /Geneve or VXLAN-GPE= packets). * 0x7: Reserved=20 * 0x8: Reserved=20 * 0x9: Outer MAC L2 filter * 0xA: Inner MAC filter * 0xB: Outer MAC, Tenant ID, Inner MAC * 0xC: Application Destination IP * 0xD: Application Source-IP, Inner MAC. * 0xE - 0x3F: Reserved. >=20 > Thanks, > ferruh >=20 > <...>