Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tero Kristo and committed by
Herbert Xu
a69c5000 6c19f3bf

+1 -1
+1 -1
drivers/crypto/sa2ul.h
··· 170 170 * the following range, so avoid using it. 171 171 */ 172 172 #define SA_UNSAFE_DATA_SZ_MIN 240 173 - #define SA_UNSAFE_DATA_SZ_MAX 256 173 + #define SA_UNSAFE_DATA_SZ_MAX 255 174 174 175 175 struct sa_match_data; 176 176