crypto: inside-secure - increase the batch size
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Thu, 15 Jun 2017 07:56:28 +0000 (09:56 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2017 03:21:47 +0000 (11:21 +0800)
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>
drivers/crypto/inside-secure/safexcel.h

index abe0f59d147301aceeda4c0eeb1c933369457569..304c5838c11a0e2e0e012148f98ef777630c7f6c 100644 (file)
@@ -23,7 +23,7 @@
 #define EIP197_MAX_TOKENS                      5
 #define EIP197_MAX_RINGS                       4
 #define EIP197_FETCH_COUNT                     1
-#define EIP197_MAX_BATCH_SZ                    8
+#define EIP197_MAX_BATCH_SZ                    EIP197_DEFAULT_RING_SIZE
 
 #define EIP197_GFP_FLAGS(base) ((base).flags & CRYPTO_TFM_REQ_MAY_SLEEP ? \
                                 GFP_KERNEL : GFP_ATOMIC)