[IPV6]: Segmentation offload not set correctly on TCP children

TCP over IPV6 would incorrectly inherit the GSO settings.
This would cause kernel to send Tcp Segmentation Offload packets for
IPV6 data to devices that can't handle it. It caused the sky2 driver
to lock http://bugzilla.kernel.org/show_bug.cgi?id=7050
and the e1000 would generate bogus packets. I can't blame the
hardware for gagging if the upper layers feed it garbage.

This was a new bug in 2.6.18 introduced with GSO support.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Stephen Hemminger and committed by David S. Miller 59eed279 897522ea

+1 -1
+1 -1
net/ipv6/tcp_ipv6.c
··· 944 944 * comment in that function for the gory details. -acme 945 945 */ 946 946 947 - sk->sk_gso_type = SKB_GSO_TCPV6; 947 + newsk->sk_gso_type = SKB_GSO_TCPV6; 948 948 __ip6_dst_store(newsk, dst, NULL); 949 949 950 950 newtcp6sk = (struct tcp6_sock *)newsk;