crypto: Kconfig - warn about performance overhead of CRYPTO_STATS
authorEric Biggers <ebiggers@google.com>
Sat, 20 May 2023 17:31:05 +0000 (10:31 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 24 May 2023 10:12:33 +0000 (18:12 +0800)
Make the help text for CRYPTO_STATS explicitly mention that it reduces
the performance of the crypto API.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig

index 42751d63cd4d964dc181b2830904b74252a754e1..fdf3742f1106bd57f293c0a179835dbb39cccd52 100644 (file)
@@ -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)