]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: introduce CONFIG_NET_CRC32C
authorEric Biggers <ebiggers@google.com>
Mon, 19 May 2025 17:50:03 +0000 (10:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 22:39:58 +0000 (15:39 -0700)
commit55d22ee0358597185f8f5272558ec7cf1a49eb41
tree6d3f0cd2bc45a590a39145c70fca091be924564f
parent51ebe6b14f669019a9e59e315d7c460065468f8e
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>
net/Kconfig
net/core/dev.c
net/sctp/Kconfig