net/sctp: Refactor SCTP skb checksum computation
authorJoe Stringer <joe@wand.net.nz>
Thu, 25 Jul 2013 01:52:05 +0000 (10:52 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Jul 2013 03:07:15 +0000 (20:07 -0700)
commit024ec3deac33ddbd81f3c887506f132b24ea21a7
tree32e21519a6180435415dc89628929d0e6ed56ecf
parente7428e95a06fb516fac1308bd0e176e27c0b9287
net/sctp: Refactor SCTP skb checksum computation

This patch consolidates the SCTP checksum calculation code from various
places to a single new function, sctp_compute_cksum(skb, offset).

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Reviewed-by: Julian Anastasov <ja@ssi.bg>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/checksum.h
net/netfilter/ipvs/ip_vs_proto_sctp.c
net/netfilter/nf_nat_proto_sctp.c
net/sctp/input.c