net: Add inet_proto_csum_replace_by_diff utility function
authorTom Herbert <tom@herbertland.com>
Mon, 17 Aug 2015 20:42:26 +0000 (13:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2015 04:33:06 +0000 (21:33 -0700)
commitabc5d1ff3e8f9b4a9d274818459b123e31981dc9
treebfe90be833065a4707499800e25c8b65bcbb25b0
parent4b048d6d9d0b0b90e1e94f2393796bbf1fa8df4e
net: Add inet_proto_csum_replace_by_diff utility function

This function updates a checksum field value and skb->csum based on
a value which is the difference between the old and new checksum.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/checksum.h
net/core/utils.c