Re: [PATCH net-next v2 2/3] net: Add inet_proto_csum_replace_by_diff utility function

2015-08-17 Thread David Miller
From: Tom Herbert t...@herbertland.com Date: Mon, 17 Aug 2015 09:56:50 -0700 +void inet_proto_csum_replace_by_diff(__sum16 *sum, struct sk_buff *skb, + __wsum diff, int pseudohdr); ... +void inet_proto_csum_replace_by_diff(__sum16 *sum, struct sk_buff *skb, +

[PATCH net-next v2 2/3] net: Add inet_proto_csum_replace_by_diff utility function

2015-08-17 Thread Tom Herbert
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 t...@herbertland.com --- include/net/checksum.h | 2 ++ net/core/utils.c | 13 + 2 files changed, 15 insertions(+)