Netdev List
 help / color / mirror / Atom feed
* [PATCH v2 net-next 6/6] gre: When GRE csum is present count as encap layer wrt csum
@ 2014-08-22 20:34 Tom Herbert
  0 siblings, 0 replies; only message in thread
From: Tom Herbert @ 2014-08-22 20:34 UTC (permalink / raw)
  To: davem, netdev


In GRE demux if the GRE checksum pop rcv encapsulation so that any
encapsulated checksums are treated as tunnel checksums.

Signed-off-by: Tom Herbert <therbert@google.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 0485bf7..7c1a8ff 100644
--- a/net/ipv4/gre_demux.c
+++ b/net/ipv4/gre_demux.c
@@ -125,6 +125,7 @@ static int parse_gre_header(struct sk_buff *skb, struct tnl_ptk_info *tpi,
 			*csum_err = true;
 			return -EINVAL;
 		}
+		skb_pop_rcv_encapsulation(skb);
 		options++;
 	}
 
-- 
2.1.0.rc2.206.gedb03e5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-22 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-22 20:34 [PATCH v2 net-next 6/6] gre: When GRE csum is present count as encap layer wrt csum Tom Herbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox