diff options
author | Eric Dumazet <edumazet@google.com> | 2018-04-18 21:43:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-19 20:44:11 +0300 |
commit | 88078d98d1bb085d72af8437707279e203524fa5 (patch) | |
tree | bf20f9ebb371aa14ce699ad9be0afc093babd04b /net/ipv6/ip6_fib.c | |
parent | 292eba02dbb4c41da840e462e51ee97d80d873d1 (diff) | |
download | linux-88078d98d1bb085d72af8437707279e203524fa5.tar.xz |
net: pskb_trim_rcsum() and CHECKSUM_COMPLETE are friends
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>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
0 files changed, 0 insertions, 0 deletions