summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/chelsio/chcr_crypto.h
diff options
context:
space:
mode:
authorAyush Sawal <ayush.sawal@chelsio.com>2020-02-05 10:48:41 +0530
committerHerbert Xu <herbert@gondor.apana.org.au>2020-02-13 17:05:25 +0800
commit1c502e2e2d79b6a4c800c3806c70b58ad6ae784d (patch)
treef65794f0b89018094a69bd252ddc73aa2e2698ba /drivers/crypto/chelsio/chcr_crypto.h
parent4fb3d8ba2824db0b8553602daef82fe27f50bba2 (diff)
downloadlinux-1c502e2e2d79b6a4c800c3806c70b58ad6ae784d.tar.gz
linux-1c502e2e2d79b6a4c800c3806c70b58ad6ae784d.tar.bz2
linux-1c502e2e2d79b6a4c800c3806c70b58ad6ae784d.zip
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>
Diffstat (limited to 'drivers/crypto/chelsio/chcr_crypto.h')
-rw-r--r--drivers/crypto/chelsio/chcr_crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/chelsio/chcr_crypto.h b/drivers/crypto/chelsio/chcr_crypto.h
index 6db2df8c8a05..9207d88c5538 100644
--- a/drivers/crypto/chelsio/chcr_crypto.h
+++ b/drivers/crypto/chelsio/chcr_crypto.h
@@ -254,6 +254,7 @@ struct chcr_context {
unsigned char rx_qidx;
unsigned char tx_chan_id;
unsigned char pci_chan_id;
+ struct completion cbc_aes_aio_done;
struct __crypto_ctx crypto_ctx[0];
};