From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 1A49A5A15 for ; Wed, 21 Jan 2015 17:42:12 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 21 Jan 2015 08:28:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,442,1418112000"; d="scan'208";a="640477463" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga001.jf.intel.com with ESMTP; 21 Jan 2015 08:28:17 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.81]) by IRSMSX107.ger.corp.intel.com ([169.254.10.75]) with mapi id 14.03.0195.001; Wed, 21 Jan 2015 16:28:16 +0000 From: "Ananyev, Konstantin" To: Olivier MATZ , "Liu, Jijiang" Thread-Topic: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine Thread-Index: AQHQFSvOf5ZHcwOIQ0S6LPFf4KIhoZyLUqAAgADVrYCAJ+m7AIAAhGKAgAAcY4CAAAaCgIABXQMAgAAfBJCAAZMJAIAEQKUAgACGkwCAAQFCAIAAcvAAgAEemACAAkDH8IAB1gMAgARiT1CAACVrgIAAHEZAgAFUrACAADW5sIAAKFUAgACV94CAAMyvAIAADcQg Date: Wed, 21 Jan 2015 16:28:16 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258213DEA1E@irsmsx105.ger.corp.intel.com> References: <1418173403-30202-1-git-send-email-jijiang.liu@intel.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DA7CC5@SHSMSX101.ccr.corp.intel.com> <2601191342CEEE43887BDE71AB977258213D3897@irsmsx105.ger.corp.intel.com> <54AFB13E.2080200@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DA85A1@SHSMSX101.ccr.corp.intel.com> <54B3B35A.5030803@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DA8E36@SHSMSX101.ccr.corp.intel.com> <54B4EB92.40209@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DB0789@SHSMSX101.ccr.corp.intel.com> <2601191342CEEE43887BDE71AB977258213D4FCF@irsmsx105.ger.corp.intel.com> <54B94A18.5030700@6wind.com> <2601191342CEEE43887BDE71AB977258213DCD25@irsmsx105.ger.corp.intel.com> <54BD16F1.6050409@6wind.com> <2601191342CEEE43887BDE71AB977258213DDF46@irsmsx105.ger.corp.intel.com> <54BE4C70.7050406@6wind.com> <2601191342CEEE43887BDE71AB977258213DE5FB@irsmsx105.ger.corp.intel.com> <54BE9B56.7050108@6wind.com> <1ED644BD7E0A5F4091CF203DAFB8E4CC01DB55DB@SHSMSX101.ccr.corp.intel.com> <54BFC4D6.2010903@6wind.com> In-Reply-To: <54BFC4D6.2010903@6wind.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2015 16:42:13 -0000 Hi Olivier, > -----Original Message----- > From: Olivier MATZ [mailto:olivier.matz@6wind.com] > Sent: Wednesday, January 21, 2015 3:25 PM > To: Liu, Jijiang; Ananyev, Konstantin > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and cs= um forwarding engine >=20 > Hi, >=20 > On 01/21/2015 04:12 AM, Liu, Jijiang wrote: > >>>>> Ok, and why it should be our problem? > >>>>> We have a lot of things done in a different manner then > >>>>> linux/freebsd kernel drivers, Why now it became a problem? > >>>> > >>>> If linux doesn't need an equivalent flag for doing the same thing, i= t > >>>> probably means we don't need it either. > >>> > >>> Probably yes .... Or probably not. > >>> Why do we need to guess what was the intention of guys who wrote that > >> part of linux driver? > >> > >> Because the dpdk looks very similar to that part of linux driver. > > > > A guy from Intel who have already confirmed that the NVGRE is not sup= ported yet in Linux kernel. > > > > He said "So far as I know it is not yet supported and I have no informa= tion on when it will be." >=20 > I added the support of Ether over GRE, IP over GRE and IP over IP > tunnels in csumonly to do the test. I ask the csum forward engine > to calculate inner IP+TCP checksums, and outer IP (case 6 in [1]). > Here are the results: >=20 > 1/ When I use I40E_TXD_CTX_UDP_TUNNELING: > - vxlan: all checksums ok > - eth over gre: all checksums ok > - ip over gre: not transmitted by hw > - ip over ip: all checksums wrong (set to 0 by hw) >=20 > 2/ When I use I40E_TXD_CTX_GRE_TUNNELING: > - vxlan: checksums ok > - eth over gre: all checksums ok > - ip over gre: all checksums ok > - ip over ip: all checksums wrong (set to 0 by hw) >=20 > 3/ When I use 00b: > - vxlan: all checksums ok > - eth over gre: all checksums ok > - ip over gre: all checksums ok > - ip over ip: checksums wrong (set to 0 by hw) Wow, so there is absolutely no difference in results for L4TUNT=3D2(GRE) an= d L4TUNT=3D0, right? And IP over IP doesn't work at all? I suppose you set L4TUNLEN as described in spec for each case, right? That looks really weird to me and as I can see completely contradicts with = what spec. I suppose we'll need to reproduce all that tests on our HW too. Could you send to us a patch with your changes, so we can try same thing? Or just a dump of TDD and TCD values for each case.=20 Konstantin >=20 > All the ip over ip tests do not work yet for an unknown reason. > There is maybe something wrong in my app or in the driver > (although the registers looks consistent with the datasheet). >=20 > I think we could use 3/ for all tunnels, because the ipip case > is supposed to work according to the datasheet, and all other cases > work too. >=20 > It would allow to remove the UDP_TUNNELING flag from mbuf API. >=20 > I will send a RFC patch that provides the API change and this new > feature in csum forward engine, with full tests on ixgbe and i40e > and explanations for all changes. >=20 > Regards, > Olivier >=20 > [1] http://dpdk.org/ml/archives/dev/2015-January/011127.html