diff options
author | Tom Herbert <therbert@google.com> | 2015-02-11 03:30:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-12 02:12:10 +0300 |
commit | 6edec0e61b1e52f9144935d28c9088f5b202e61c (patch) | |
tree | 6c0be33e56894f48033f6fffbe253bea3852e91c /net/ipv6/udp_offload.c | |
parent | 26c4f7da3e413da697a7beb22ad496390eda7da0 (diff) | |
download | linux-6edec0e61b1e52f9144935d28c9088f5b202e61c.tar.xz |
net: Clarify meaning of CHECKSUM_PARTIAL for receive path
The current meaning of CHECKSUM_PARTIAL for validating checksums
is that _all_ checksums in the packet are considered valid.
However, in the manner that CHECKSUM_PARTIAL is set only the checksum
at csum_start+csum_offset and any preceding checksums may
be considered valid. If there are checksums in the packet after
csum_offset it is possible they have not been verfied.
This patch changes CHECKSUM_PARTIAL logic in skb_csum_unnecessary and
__skb_gro_checksum_validate_needed to only considered checksums
referring to csum_start and any preceding checksums (with starting
offset before csum_start) to be verified.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp_offload.c')
0 files changed, 0 insertions, 0 deletions