]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv6: update skb->csum when CE mark is propagated
authorEric Dumazet <edumazet@google.com>
Fri, 15 Jan 2016 12:56:56 +0000 (04:56 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:27 +0000 (15:43 -0700)
commitf9721ee808e67ebda6633098b2c6512a3e54fb3a
tree344573aba23e04e1c7ad7091d9b18f538376ca14
parentad8a731320c4cfaa80dbfbcbd01d079e09dd92c5
ipv6: update skb->csum when CE mark is propagated

Orabug: 23330562

[ Upstream commit 34ae6a1aa0540f0f781dd265366036355fdc8930 ]

When a tunnel decapsulates the outer header, it has to comply
with RFC 6080 and eventually propagate CE mark into inner header.

It turns out IP6_ECN_set_ce() does not correctly update skb->csum
for CHECKSUM_COMPLETE packets, triggering infamous "hw csum failure"
messages and stack traces.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2980502b9f6d3e15a4dd6695d4cfff8ec3213209)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
include/net/inet_ecn.h
net/ipv6/xfrm6_mode_tunnel.c