[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1405038561-14852-1-git-send-email-jeffrey.t.kirsher@intel.com>
Date: Thu, 10 Jul 2014 17:29:21 -0700
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: davem@...emloft.net
Cc: Amritha Nambiar <amritha.nambiar@...el.com>,
netdev@...r.kernel.org, nhorman@...hat.com, sassmann@...hat.com,
Joseph Gasparakis <joseph.gasparakis@...el.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Subject: [net] GRE: enable offloads for GRE
From: Amritha Nambiar <amritha.nambiar@...el.com>
To get offloads to work with Generic Routing Encapsulation (GRE), the
outer transport header has to be reset after skb_push is done. This
patch has the support for this fix and hence GRE offloading.
Signed-off-by: Amritha Nambiar <amritha.nambiar@...el.com>
Signed-off-by: Joseph Gasparakis <joseph.gasparakis@...el.com>
Tested-By: Jim Young <jamesx.m.young@...el.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
---
net/ipv4/gre_demux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/ipv4/gre_demux.c b/net/ipv4/gre_demux.c
index 4e9619b..0485bf7 100644
--- a/net/ipv4/gre_demux.c
+++ b/net/ipv4/gre_demux.c
@@ -68,6 +68,7 @@ void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi,
skb_push(skb, hdr_len);
+ skb_reset_transport_header(skb);
greh = (struct gre_base_hdr *)skb->data;
greh->flags = tnl_flags_to_gre_flags(tpi->flags);
greh->protocol = tpi->proto;
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists