Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: introduce CONFIG_NET_CRC32C

Add a hidden kconfig symbol NET_CRC32C that will group together the
functions that calculate CRC32C checksums of packets, so that these
don't have to be built into NET-enabled kernels that don't need them.

Make skb_crc32c_csum_help() (which is called only when IP_SCTP is
enabled) conditional on this symbol, and make IP_SCTP select it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://patch.msgid.link/20250519175012.36581-2-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Biggers and committed by
Jakub Kicinski
55d22ee0 51ebe6b1

+7
+4
net/Kconfig
··· 75 75 config NET_SHAPER 76 76 bool 77 77 78 + config NET_CRC32C 79 + bool 80 + select CRC32 81 + 78 82 menu "Networking options" 79 83 80 84 source "net/packet/Kconfig"
+2
net/core/dev.c
··· 3596 3596 } 3597 3597 EXPORT_SYMBOL(skb_checksum_help); 3598 3598 3599 + #ifdef CONFIG_NET_CRC32C 3599 3600 int skb_crc32c_csum_help(struct sk_buff *skb) 3600 3601 { 3601 3602 __le32 crc32c_csum; ··· 3636 3635 return ret; 3637 3636 } 3638 3637 EXPORT_SYMBOL(skb_crc32c_csum_help); 3638 + #endif /* CONFIG_NET_CRC32C */ 3639 3639 3640 3640 __be16 skb_network_protocol(struct sk_buff *skb, int *depth) 3641 3641 {
+1
net/sctp/Kconfig
··· 11 11 select CRYPTO 12 12 select CRYPTO_HMAC 13 13 select CRYPTO_SHA1 14 + select NET_CRC32C 14 15 select NET_UDP_TUNNEL 15 16 help 16 17 Stream Control Transmission Protocol