gre: Use GSO flags to determine csum need instead of GRE flags
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 5 Feb 2016 23:28:01 +0000 (15:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 13:55:34 +0000 (08:55 -0500)
commit2e598af7135d1434b0ebf2e9c7ff8e014f48d572
tree4b7faf78f4a861c508d1b26d55f5fa549ea5bd7c
parentddff00d420432d54eb420bb33034bb8e22dd2543
gre: Use GSO flags to determine csum need instead of GRE flags

This patch updates the gre checksum path to follow something much closer to
the UDP checksum path.  By doing this we can avoid needing to do as much
header inspection and can just make use of the fields we were already
reading in the sk_buff structure.

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