net: skb_needs_check() accepts CHECKSUM_NONE for tx
authorEric Dumazet <edumazet@google.com>
Fri, 3 Feb 2017 22:29:42 +0000 (14:29 -0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Nov 2017 21:12:41 +0000 (22:12 +0100)
commitbf98a1be38f65c5dfd27af5e7a04f50afa2cb088
tree1b9e33edd12e3a86d848b0a88246427d02964b8e
parent1bff8a2960fc6617cf10c5ac050958275aba6e58
net: skb_needs_check() accepts CHECKSUM_NONE for tx

commit 6e7bc478c9a006c701c14476ec9d389a484b4864 upstream.

My recent change missed fact that UFO would perform a complete
UDP checksum before segmenting in frags.

In this case skb->ip_summed is set to CHECKSUM_NONE.

We need to add this valid case to skb_needs_check()

Fixes: b2504a5dbef3 ("net: reduce skb_warn_bad_offload() noise")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
net/core/dev.c