gso: Only allow GSO_PARTIAL if we can checksum the inner protocol
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 2 May 2016 16:38:18 +0000 (09:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 17:32:27 +0000 (13:32 -0400)
commit36c983824b6f17b93258153ff5b05c33c34e44ba
tree4f18f854521d5ada2852b8832e58cb6898e54df5
parentd7fb5a80492169cd737d51042f4ee03b09be0ef6
gso: Only allow GSO_PARTIAL if we can checksum the inner protocol

This patch addresses a possible issue that can occur if we get into any odd
corner cases where we support TSO for a given protocol but not the checksum
or scatter-gather offload.  There are few drivers floating around that
setup their tunnels this way and by enforcing the checksum piece we can
avoid mangling any frames.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c