summaryrefslogtreecommitdiff
path: root/net/ipv4/udp_offload.c
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2015-02-11 03:30:28 +0300
committerDavid S. Miller <davem@davemloft.net>2015-02-12 02:12:10 +0300
commit6edec0e61b1e52f9144935d28c9088f5b202e61c (patch)
tree6c0be33e56894f48033f6fffbe253bea3852e91c /net/ipv4/udp_offload.c
parent26c4f7da3e413da697a7beb22ad496390eda7da0 (diff)
downloadlinux-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/ipv4/udp_offload.c')
0 files changed, 0 insertions, 0 deletions