]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - crypto/tcrypt.c
crypto: tcrypt - use multi buf for ahash mb test
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 17 Dec 2017 08:29:00 +0000 (08:29 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Dec 2017 06:56:39 +0000 (17:56 +1100)
commit7c3f13238992884abf3782dcc8e97e0862e5c23e
treeb81b21d7d9a3687cdbbf04b5a337c11a81bd6215
parent0e4b52942b1c76f89e0dcb829f72e123d0678f54
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>
crypto/tcrypt.c