summaryrefslogtreecommitdiff
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2014-08-31 22:12:42 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-09-02 04:36:27 (GMT)
commitd96535a17dbbafd567961d14c08c0984ddda9c3c (patch)
treeaa07db9a2ef6ea095f7b38ec3be18c92d4f55506 /net/ipv4/udp.c
parent5a21232983aa7acfe7fd26170832a9e0a4a7b4ae (diff)
downloadlinux-d96535a17dbbafd567961d14c08c0984ddda9c3c.tar.xz
net: Infrastructure for checksum unnecessary conversions
For normal path, added skb_checksum_try_convert which is called to attempt to convert CHECKSUM_UNNECESSARY to CHECKSUM_COMPLETE. The primary condition to allow this is that ip_summed is CHECKSUM_NONE and csum_valid is true, which will be the state after consuming a CHECKSUM_UNNECESSARY. For GRO path, added skb_gro_checksum_try_convert which is the GRO analogue of skb_checksum_try_convert. The primary condition to allow this is that NAPI_GRO_CB(skb)->csum_cnt == 0 and NAPI_GRO_CB(skb)->csum_valid is set. This implies that we have consumed all available CHECKSUM_UNNECESSARY checksums in the GRO path. Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions