Skip to content
Commit b8ee93ba authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>

Cheers,
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cc5c00bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment