From: Eric Dumazet Date: Mon, 23 Jan 2012 01:22:09 +0000 (+0000) Subject: tg3: fix ipv6 header length computation X-Git-Tag: v3.3-rc2~37^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a1195559f2e20bd975f58e50f53ebe84d5cca6;p=pandora-kernel.git tg3: fix ipv6 header length computation tg3_start_xmit() makes the wrong assumption for TSOV6 that skb->head doesnt include any payload data. if (skb_is_gso_v6(skb)) hdr_len = skb_headlen(skb) - ETH_HLEN; This is not true anymore after commit f07d960df3 (tcp: avoid frag allocation for small frames) We should instead use : skb_transport_offset(skb) + tcp_hdrlen(skb) Its also true for IPv4 Signed-off-by: Eric Dumazet CC: Matt Carlson CC: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed