]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jan 2016 20:07:23 +0000 (15:07 -0500)
commit5b241530c33d49b28edae41f98ecc669da3f0d46
tree11df908434ac0da470b34a08fd254df1429c4e65
parent85a54225174882e2cedfa4e3d2707d78bdd99384
ipv6: update skb->csum when CE mark is propagated

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>
include/net/inet_ecn.h
net/ipv6/xfrm6_mode_tunnel.c