Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751299AbaKFCoK (ORCPT ); Wed, 5 Nov 2014 21:44:10 -0500 Received: from mail-ie0-f179.google.com ([209.85.223.179]:32783 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbaKFCoG (ORCPT ); Wed, 5 Nov 2014 21:44:06 -0500 MIME-Version: 1.0 In-Reply-To: <20141105.211558.969082848816106943.davem@davemloft.net> References: <20141105.163825.1433973842938441546.davem@davemloft.net> <20141106010501.GA18339@gmail.com> <20141105.211558.969082848816106943.davem@davemloft.net> Date: Wed, 5 Nov 2014 18:44:04 -0800 Message-ID: Subject: Re: [PATCH net 0/5] Implement ndo_gso_check() for vxlan nics From: Tom Herbert To: David Miller Cc: Joe Stringer , Or Gerlitz , Linux Netdev List , Sathya Perla , Jeff Kirsher , "linux.nics" , Amir Vadai , "shahed.shaikh" , dept-gelinuxnicdev , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 5, 2014 at 6:15 PM, David Miller wrote: > From: Joe Stringer > Date: Wed, 5 Nov 2014 17:06:46 -0800 > >> My impression was that the changes are more likely to be >> hardware-specific (like the i40e changes) rather than software-specific, >> like changes that might be integrated into the helper. > > I think there is more commonality amongst hardware capabilities, > and this is why I want the helper to play itself out. > >> That said, I can rework for one helper. The way I see it would be the >> same code as these patches, as "vxlan_gso_check(struct sk_buff *)" in >> drivers/net/vxlan.c which would be called from each driver. Is that what >> you had in mind? > > Yes. Note that this code is not VXLAN specific, it will also accept NVGRE and GRE/UDP with keyid and TEB. I imagine all these cases should be indistinguishable to the hardware so they probably just work (which would be cool!). It might be better to name and locate the helper function to reflect that. -- 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/