]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit03646cd5d98791bf4dba2f33eafbaedd1ed7b4f5
tree4f18f854521d5ada2852b8832e58cb6898e54df5
parent0d4e21522936db6187658f8b1cdae500f5a93763
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