Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48a5fc77 authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller
Browse files

gre: When GRE csum is present count as encap layer wrt csum



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

Signed-off-by: default avatarTom Herbert <therbert@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 57c67ff4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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++;
	}