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

crypto: inside-secure - increase the batch size

Increase the batch size to the maximum number of requests a ring can
handle at a time (its size). This is possible now that the request
queues are per hw ring. This improves performances.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Antoine Ténart and committed by
Herbert Xu
e826934e 5eb0cc66

+1 -1
+1 -1
drivers/crypto/inside-secure/safexcel.h
··· 23 23 #define EIP197_MAX_TOKENS 5 24 24 #define EIP197_MAX_RINGS 4 25 25 #define EIP197_FETCH_COUNT 1 26 - #define EIP197_MAX_BATCH_SZ 8 26 + #define EIP197_MAX_BATCH_SZ EIP197_DEFAULT_RING_SIZE 27 27 28 28 #define EIP197_GFP_FLAGS(base) ((base).flags & CRYPTO_TFM_REQ_MAY_SLEEP ? \ 29 29 GFP_KERNEL : GFP_ATOMIC)