]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: chelsio - This fixes the libkcapi's cbc(aes) aio fail test cases
authorAyush Sawal <ayush.sawal@chelsio.com>
Wed, 5 Feb 2020 05:18:41 +0000 (10:48 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Feb 2020 09:05:25 +0000 (17:05 +0800)
commitac7aa8e112a860c6a3d6c3c294d6875a962c0a85
treef65794f0b89018094a69bd252ddc73aa2e2698ba
parent388fead043f8ab2b6b6dceae1ac0ea18956afbb6
crypto: chelsio - This fixes the libkcapi's cbc(aes) aio fail test cases

The libkcapi "cbc(aes)" failed tests are
symmetric asynchronous cipher one shot multiple test,
symmetric asynchronous cipher stream multiple test,
Symmetric asynchronous cipher vmsplice multiple test

In this patch a wait_for_completion is added in the chcr_aes_encrypt function,
which completes when the response of comes from the hardware.
This adds serialization for encryption in cbc(aes) aio case.

Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c
drivers/crypto/chelsio/chcr_crypto.h