net: Move skb_has_shared_frag check out of GRE code and into segmentation
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 5 Feb 2016 23:27:55 +0000 (15:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 13:55:34 +0000 (08:55 -0500)
commitddff00d420432d54eb420bb33034bb8e22dd2543
treefa2c13ae3708f32259da676c3b2c750e7ead8572
parent08b64fcca942733413bc5ac2321d57021d3e8578
net: Move skb_has_shared_frag check out of GRE code and into segmentation

The call skb_has_shared_frag is used in the GRE path and skb_checksum_help
to verify that no frags can be modified by an external entity.  This check
really doesn't belong in the GRE path but in the skb_segment function
itself.  This way any protocol that might be segmented will be performing
this check before attempting to offload a checksum to software.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c
net/ipv4/gre_offload.c