]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
skbuff: add stub to help computing crc32c on SCTP packets
authorDavide Caratti <dcaratti@redhat.com>
Thu, 18 May 2017 13:44:37 +0000 (15:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2017 23:21:29 +0000 (19:21 -0400)
commit9617813dba5b6c112922c60cd2bc57c6e11ae907
treece7dfcb633751f2aaed7fe3b19988aa88f401270
parent6f5b24eed0278136c29c27f2a7b3a2b6a202ac68
skbuff: add stub to help computing crc32c on SCTP packets

sctp_compute_checksum requires crc32c symbol (provided by libcrc32c), so
it can't be used in net core. Like it has been done previously with other
symbols (e.g. ipv6_dst_lookup), introduce a stub struct skb_checksum_ops
to allow computation of crc32c checksum in net core after sctp.ko (and thus
libcrc32c) has been loaded.

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