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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:14 +0000 (07:29 -0800)
commit99834e4d7c5e441e268eb718e41d7e83343477fb
treef4ece82d62656309706d542a5232ef360eace348
parentd8f703112e39ab0d58bc140d2f8db80add02acf7
gro: Clean up tcpX_gro_receive checksum verification

[ Upstream commit b8ee93ba80b5a0b6c3c06b65c34dd1276f16c047 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_offload.c
net/ipv6/tcpv6_offload.c