diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-10-30 11:50:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-03 23:04:57 -0500 |
commit | 2817a336d4d533fb8b68719723cd60ea7dd7c09e (patch) | |
tree | 71aac3aa2a48588fd0b5372cca9499bd1cbe2a5f /virt | |
parent | efba721f636ee016859d86d15748650119402b10 (diff) | |
download | linux-2817a336d4d533fb8b68719723cd60ea7dd7c09e.tar.bz2 |
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>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions