Daniel Borkmann 2817a336d4 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 <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-03 23:04:57 -05:00
..
2012-07-19 10:43:03 -07:00
2013-10-19 19:36:18 -04:00
2013-01-27 22:46:33 -05:00
2013-10-28 20:07:50 -04:00
2013-10-08 23:19:24 -04:00
2013-10-09 00:01:25 -04:00
2013-10-17 16:11:04 -04:00
2012-08-06 13:40:47 -07:00
2013-06-04 16:43:42 -07:00
2013-10-08 16:27:33 -04:00
2012-05-16 15:17:08 -04:00