Files
linux/include
Eric Dumazet 7fab8b2f0c net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
commit 88078d98d1 upstream.

After working on IP defragmentation lately, I found that some large
packets defeat CHECKSUM_COMPLETE optimization because of NIC adding
zero paddings on the last (small) fragment.

While removing the padding with pskb_trim_rcsum(), we set skb->ip_summed
to CHECKSUM_NONE, forcing a full csum validation, even if all prior
fragments had CHECKSUM_COMPLETE set.

We can instead compute the checksum of the part we are trimming,
usually smaller than the part we keep.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-08 11:25:32 +01:00
..
2015-11-07 01:30:10 +01:00
2018-08-06 16:24:39 +02:00
2018-09-09 20:04:36 +02:00
2017-10-05 09:41:48 +02:00