summaryrefslogtreecommitdiff
path: root/crypto/skcipher.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-12-17 08:29:00 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2017-12-28 17:56:39 +1100
commitf696ab85aa28632425bebed97bcbe7018c892841 (patch)
tree46cf8cdc40f0fa908f31d1af42a0d2fcb4304c79 /crypto/skcipher.c
parent9f65cbe00490ea235b4f9250b00dd606c6edb206 (diff)
downloadlinux-crypto-f696ab85aa28632425bebed97bcbe7018c892841.tar.gz
linux-crypto-f696ab85aa28632425bebed97bcbe7018c892841.zip
crypto: tcrypt - use multi buf for ahash mb test
The multi buffer ahash speed test was allocating multiple buffers for use with the multiple outstanding requests it was starting but never actually using them (except to free them), instead using a different single statically allocated buffer for all requests. Fix this by actually using the allocated buffers for the test. It is noted that it may seem tempting to instead remove the allocation and free of the multiple buffers and leave things as they are since this is a hash test where the input is read only. However, after consideration I believe that multiple buffers better reflect real life scenario with regard to data cache and TLB behaviours etc. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/skcipher.c')
0 files changed, 0 insertions, 0 deletions