From: Eric Biggers Date: Sat, 20 May 2023 17:31:05 +0000 (-0700) Subject: crypto: Kconfig - warn about performance overhead of CRYPTO_STATS X-Git-Tag: v6.5-rc1~108^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66dd59b7aa55d0ea6c0eebfbfe4353eadaac5e1b;p=thirdparty%2Fkernel%2Flinux.git crypto: Kconfig - warn about performance overhead of CRYPTO_STATS Make the help text for CRYPTO_STATS explicitly mention that it reduces the performance of the crypto API. Signed-off-by: Eric Biggers Acked-by: Ard Biesheuvel Signed-off-by: Herbert Xu --- diff --git a/crypto/Kconfig b/crypto/Kconfig index 42751d63cd4d9..fdf3742f1106b 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1393,6 +1393,9 @@ config CRYPTO_STATS help Enable the gathering of crypto stats. + Enabling this option reduces the performance of the crypto API. It + should only be enabled when there is actually a use case for it. + This collects data sizes, numbers of requests, and numbers of errors processed by: - AEAD ciphers (encrypt, decrypt)