Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751541AbaKGEvr (ORCPT ); Thu, 6 Nov 2014 23:51:47 -0500 Received: from na3sys009aog128.obsmtp.com ([74.125.149.141]:53009 "HELO na3sys009aog128.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751385AbaKGEvo (ORCPT ); Thu, 6 Nov 2014 23:51:44 -0500 From: Joe Stringer To: "Vick, Matthew" Subject: Re: [linux-nics] [PATCH net 3/5] fm10k: Implement ndo_gso_check() Date: Fri, 7 Nov 2014 17:51:32 +1300 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) Cc: "Kirsher, Jeffrey T" , Linux NICS , "shahed.shaikh" , "sathya.perla" , Linux Netdev List , Vadai , Linux Kernel , Tom Herbert , "dept-gelinuxnicdev" , Or Gerlitz , "Amir@isotope.jf.intel.com" References: <1415138202-1197-1-git-send-email-joestringer@nicira.com> <20141107003821.GA10692@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201411071751.33390.joestringer@nicira.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 07 Nov 2014 14:20:08 Vick, Matthew wrote: > On 11/6/14, 4:55 PM, "Joe Stringer" wrote: > >On Thu, Nov 06, 2014 at 11:58:32PM +0000, Vick, Matthew wrote: > >> On 11/5/14, 11:36 AM, "Jeff Kirsher" > >> > >>wrote: > >> Hi Joe, fm10k's hardware is pretty lax about the header size. As long as > >> the total header length (outer+inner) is 184 bytes or less we're golden, > >> so if I'm not mistaken that leaves us with a max of 130 bytes beyond the > >> tunnel header. > > > >Oh, okay. To be more explicit, in the case of UDP tunnels I take it that > >you're talking about L2+L3+(L4+)tunnel+L2+L3+L4 <= 184? (L4 perhaps > >optional depending on the tunnel protocol used) > > > >In that case, the fm10k_gso_check would use something closer to > >"skb_inner_transport_header(skb) - skb_mac_header(skb) > 184", or > >perhaps 164 to allow for inner L4 header (?). > > > >Joe > > Yes, I'm talking about the full shebang. > > I like the 164 check, personally (with appropriate #define for > readability). Thanks for the feedback, I take it that this approach is preferable over the other one involving an skb_gso_check() + fm10k_tx_encap_offload() call? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/