From: Neal Cardwell Date: Fri, 10 Jan 2014 01:47:17 +0000 (-0500) Subject: gre_offload: simplify GRE header length calculation in gre_gso_segment() X-Git-Tag: v3.14-rc1~94^2~218 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b884b1a46f205d56e33c0391c1d04644d846f41e;p=pandora-kernel.git 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 Cc: Eric Dumazet Cc: H.K. Jerry Chu Cc: Pravin B Shelar Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed