gro: Clean up tcpX_gro_receive checksum verification
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2013 02:32:11 +0000 (10:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Nov 2013 22:46:19 +0000 (14:46 -0800)
commitb8ee93ba80b5a0b6c3c06b65c34dd1276f16c047
tree11f6e9c6ef60f51391b9a4564c0f285fab23da97
parentcc5c00bbb44c5d68b883aa5cb9d01514a2525d94
gro: Clean up tcpX_gro_receive checksum verification

This patch simplifies the checksum verification in tcpX_gro_receive
by reusing the CHECKSUM_COMPLETE code for CHECKSUM_NONE.  All it
does for CHECKSUM_NONE is compute the partial checksum and then
treat it as if it came from the hardware (CHECKSUM_COMPLETE).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_offload.c
net/ipv6/tcpv6_offload.c