Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754965AbaKNJo1 (ORCPT ); Fri, 14 Nov 2014 04:44:27 -0500 Received: from cmexedge2.emulex.com ([138.239.224.100]:41449 "EHLO CMEXEDGE2.ext.emulex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754747AbaKNJoY convert rfc822-to-8bit (ORCPT ); Fri, 14 Nov 2014 04:44:24 -0500 From: Sathya Perla To: Joe Stringer , "netdev@vger.kernel.org" CC: "shahed.shaikh@qlogic.com" , "amirv@mellanox.com" , "Dept-GELinuxNICDev@qlogic.com" , "therbert@google.com" , "gerlitz.or@gmail.com" , "alexander.duyck@gmail.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCHv2 net 2/4] be2net: Implement ndo_gso_check() Thread-Topic: [PATCHv2 net 2/4] be2net: Implement ndo_gso_check() Thread-Index: AQHP/6NVHRMIK3q5EUyQYvPYpJTwnZxf0/8g Date: Fri, 14 Nov 2014 09:43:52 +0000 Message-ID: References: <1415925495-59312-1-git-send-email-joestringer@nicira.com> <1415925495-59312-3-git-send-email-joestringer@nicira.com> In-Reply-To: <1415925495-59312-3-git-send-email-joestringer@nicira.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [138.239.140.194] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Joe Stringer [mailto:joestringer@nicira.com] > > Use vxlan_gso_check() to advertise offload support for this NIC. > > Signed-off-by: Joe Stringer Acked-by: Sathya Perla Thanks! > --- > v2: Refactor out vxlan helper. > --- > drivers/net/ethernet/emulex/benet/be_main.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/net/ethernet/emulex/benet/be_main.c > b/drivers/net/ethernet/emulex/benet/be_main.c > index 9a18e79..3e8475c 100644 > --- a/drivers/net/ethernet/emulex/benet/be_main.c > +++ b/drivers/net/ethernet/emulex/benet/be_main.c > @@ -4421,6 +4421,11 @@ static void be_del_vxlan_port(struct net_device > *netdev, sa_family_t sa_family, > "Disabled VxLAN offloads for UDP port %d\n", > be16_to_cpu(port)); > } > + > +static bool be_gso_check(struct sk_buff *skb, struct net_device *dev) > +{ > + return vxlan_gso_check(skb); > +} > #endif > > static const struct net_device_ops be_netdev_ops = { > @@ -4450,6 +4455,7 @@ static const struct net_device_ops be_netdev_ops > = { > #ifdef CONFIG_BE2NET_VXLAN > .ndo_add_vxlan_port = be_add_vxlan_port, > .ndo_del_vxlan_port = be_del_vxlan_port, > + .ndo_gso_check = be_gso_check, > #endif > }; > > -- > 1.7.10.4 -- 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/