From: Eric Dumazet Date: Sat, 19 Oct 2013 18:42:54 +0000 (-0700) Subject: net: generalize skb_segment() X-Git-Tag: v3.13-rc1~105^2~158^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=030737bcc3c404e273e97dbe06fe9561699a411b;p=pandora-kernel.git net: generalize skb_segment() While implementing GSO/TSO support for IPIP, I found skb_segment() was assuming network header was immediately following mac header. Its not really true in the case inet_gso_segment() is stacked : By the time tcp_gso_segment() is called, network header points to the inner IP header. Let's instead assume nothing and pick the current offsets found in original skb, we have skb_headers_offset_update() helper for that. Also move the csum_start update inside skb_headers_offset_update() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed