]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1d5826195a9d95b6ff156be17874c24193fc79c
tree4b7faf78f4a861c508d1b26d55f5fa549ea5bd7c
parent1e4dd9ef0d64de7fe06d1f4e96ff30905673fb4a
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