From: Daniel Borkmann Date: Wed, 30 Oct 2013 10:50:51 +0000 (+0100) Subject: net: skb_checksum: allow custom update/combine for walking skb X-Git-Tag: v3.13-rc1~105^2~76^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2817a336d4d533fb8b68719723cd60ea7dd7c09e;p=pandora-kernel.git net: skb_checksum: allow custom update/combine for walking skb Currently, skb_checksum walks over 1) linearized, 2) frags[], and 3) frag_list data and calculats the one's complement, a 32 bit result suitable for feeding into itself or csum_tcpudp_magic(), but unsuitable for SCTP as we're calculating CRC32c there. Hence, in order to not re-implement the very same function in SCTP (and maybe other protocols) over and over again, use an update() + combine() callback internally to allow for walking over the skb with different algorithms. Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- Reading git-diff-tree failed