tcp: Handle CHECKSUM_PARTIAL for SYNACK packets for IPv6
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 11 Apr 2010 02:15:54 +0000 (02:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Apr 2010 22:29:08 +0000 (15:29 -0700)
commit8ad50d96db58c58ba67ec1c6f9d3dae0db52338a
treef5ebb8a02edcc15b9a8f534909fe908334e364a5
parent419f9f896074ce8b21e88066e6f3515f18e5641c
tcp: Handle CHECKSUM_PARTIAL for SYNACK packets for IPv6

tcp: Handle CHECKSUM_PARTIAL for SYNACK packets for IPv6

This patch moves the common code between tcp_v6_send_check and
tcp_v6_gso_send_check into a new function __tcp_v6_send_check.

It then uses the new function in tcp_v6_send_synack as well as
tcp_v6_send_response so that they handle CHECKSUM_PARTIAL properly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Yinghai <yinghai.lu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c