net: introduce skb_crc32c_csum_help
authorDavide Caratti <dcaratti@redhat.com>
Thu, 18 May 2017 13:44:38 +0000 (15:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2017 23:21:29 +0000 (19:21 -0400)
commitb72b5bf6a8fc9065f270ae135bbd47abb9d96790
tree3ef3e49136727497d5722cdd4eed3c9419661d4d
parent9617813dba5b6c112922c60cd2bc57c6e11ae907
net: introduce skb_crc32c_csum_help

skb_crc32c_csum_help is like skb_checksum_help, but it is designed for
checksumming SCTP packets using crc32c (see RFC3309), provided that
libcrc32c.ko has been loaded before. In case libcrc32c is not loaded,
invoking skb_crc32c_csum_help on a skb results in one the following
printouts:

warn_crc32c_csum_update: attempt to compute crc32c without libcrc32c.ko
warn_crc32c_csum_combine: attempt to compute crc32c without libcrc32c.ko

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/linux/skbuff.h
net/core/dev.c