diff options
author | Tero Kristo <t-kristo@ti.com> | 2023-05-12 13:40:44 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-05-19 11:45:43 +0300 |
commit | a69c500018b97edec48ce9d41620748761322c83 (patch) | |
tree | 9a193f62adc45bac630b2e8920f9ecf3c7f5e0b3 /drivers/crypto/sa2ul.h | |
parent | 6c19f3bfff0344cdc02e7b074062a9acd026f010 (diff) | |
download | linux-a69c500018b97edec48ce9d41620748761322c83.tar.xz |
crypto: sa2ul - change unsafe data size limit to 255 bytes
256 bytes is quite often used in performance benchmarks and this size
appears to be also working just fine, so mark it as safe so that we do
not fallback to software implementation for this packet size. Otherwise
there is a strange bump up in crypto performance at 256 byte packet size.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Jayesh Choudhary <j-choudhary@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/sa2ul.h')
-rw-r--r-- | drivers/crypto/sa2ul.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/sa2ul.h b/drivers/crypto/sa2ul.h index 92bf97232a29..12c17a68d350 100644 --- a/drivers/crypto/sa2ul.h +++ b/drivers/crypto/sa2ul.h @@ -170,7 +170,7 @@ struct sa_tfm_ctx; * the following range, so avoid using it. */ #define SA_UNSAFE_DATA_SZ_MIN 240 -#define SA_UNSAFE_DATA_SZ_MAX 256 +#define SA_UNSAFE_DATA_SZ_MAX 255 struct sa_match_data; |