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

This patch moves the common code between tcp_v4_send_check and
tcp_v4_gso_send_check into a new function __tcp_v4_send_check.

It then uses the new function in tcp_v4_send_synack so that it
handles 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>

No differences found