]> git.baikalelectronics.ru Git - kernel.git/commit
gre_offload: simplify GRE header length calculation in gre_gso_segment()
authorNeal Cardwell <ncardwell@google.com>
Fri, 10 Jan 2014 01:47:17 +0000 (20:47 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jan 2014 19:53:49 +0000 (11:53 -0800)
commit4859454730589371f6c1bd3f3c6526b1366021d1
treef444f75b77d4954e8cd0fda24a208fa6ebc377aa
parent767396a5ca90d02a52b029cb713e5a578695b802
gre_offload: simplify GRE header length calculation in gre_gso_segment()

Simplify the GRE header length calculation in gre_gso_segment().
Switch to an approach that is simpler, faster, and more general. The
new approach will continue to be correct even if we add support for
the optional variable-length routing info that may be present in a GRE
header.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: H.K. Jerry Chu <hkchu@google.com>
Cc: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/gre_offload.c