UPSTREAM: net: skb_needs_check() accepts CHECKSUM_NONE for tx

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 <>
Cc: Willem de Bruijn <>
Signed-off-by: David S. Miller <>
(cherry picked from commit 6e7bc478c9a006c701c14476ec9d389a484b4864)
Signed-off-by: Amey Deshpande <>


Change-Id: If9ce2f92157845e8d2d78bb0b3bbb8a080201c58
Commit-Ready: Amey Deshpande <>
Tested-by: Amey Deshpande <>
Reviewed-by: Guenter Roeck <>
1 file changed