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)
commit1c502e2e2d79b6a4c800c3806c70b58ad6ae784d
treef65794f0b89018094a69bd252ddc73aa2e2698ba
parent4fb3d8ba2824db0b8553602daef82fe27f50bba2
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