[PATCH v4 00/19] Wire up CRC32 library functions to arch-optimized code
Eric Biggers
ebiggers at kernel.org
Thu Dec 12 13:37:34 PST 2024
On Sun, Dec 01, 2024 at 05:08:25PM -0800, Eric Biggers wrote:
> This patchset applies to v6.13-rc1 and is also available in git via:
>
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git crc32-lib-v4
>
> CRC32 is a family of common non-cryptographic integrity check algorithms
> that are fairly fast with a portable C implementation and become far
> faster still with the CRC32 or carryless multiplication instructions
> that most CPUs have. 9 architectures already have optimized code for at
> least some CRC32 variants; however, except for arm64 this optimized code
> was only accessible through the crypto API, not the library functions.
>
> This patchset fixes that so that the CRC32 library functions use the
> optimized code. This allows users to just use the library instead of
> the crypto API. This is much simpler and also improves performance due
> to eliminating the crypto API overhead including an indirect call. Some
> examples of updating users are included at the end of the patchset.
FYI, this patchset is now in linux-next via the crc-next branch in my repo.
Additional reviews and acks would always be appreciated, of course.
- Eric
More information about the linux-riscv
mailing list