summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/chelsio/chcr_crypto.h
diff options
context:
space:
mode:
authorHarsh Jain <harsh@chelsio.com>2017-06-23 16:15:11 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-12 12:38:08 +0200
commitd3f1d2f7863137c5d71e64041b48968db29b149e (patch)
treee355670658068522a14a1d71698c9d036c0b6869 /drivers/crypto/chelsio/chcr_crypto.h
parentcrypto: caam - properly set IV after {en,de}crypt (diff)
downloadlinux-d3f1d2f7863137c5d71e64041b48968db29b149e.tar.xz
linux-d3f1d2f7863137c5d71e64041b48968db29b149e.zip
crypto: chcr - Avoid algo allocation in softirq.
Thsi patch fixes calling "crypto_alloc_cipher" call in bottom halves. Pre allocate aes cipher required to update Tweak value for XTS. Signed-off-by: Harsh Jain <harsh@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 a4f95b014b46..30af1ee17b87 100644
--- a/drivers/crypto/chelsio/chcr_crypto.h
+++ b/drivers/crypto/chelsio/chcr_crypto.h
@@ -155,6 +155,7 @@
struct ablk_ctx {
struct crypto_skcipher *sw_cipher;
+ struct crypto_cipher *aes_generic;
__be32 key_ctx_hdr;
unsigned int enckey_len;
unsigned char ciph_mode;