]> 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)
commit9e140bb7b7d0807c37f91db56bc1d4cf2764e7b4
tree4b7faf78f4a861c508d1b26d55f5fa549ea5bd7c
parent74b1893b306b8335b3665f8aa5e5de039ffb460c
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