aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qce/ablkcipher.c
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2019-09-19 18:33:02 -0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-10-05 01:06:20 +1000
commitf65eae617e5d0d43575b767b02d9bd04f8349fd2 (patch)
tree0db1dade6ff37b66ecbf304749102129d011370b /drivers/crypto/qce/ablkcipher.c
parentcrypto: chtls - simplify a bit 'create_flowc_wr_skb()' (diff)
downloadlinux-dev-f65eae617e5d0d43575b767b02d9bd04f8349fd2.tar.xz
linux-dev-f65eae617e5d0d43575b767b02d9bd04f8349fd2.zip
crypto: qce - add CRYPTO_ALG_KERN_DRIVER_ONLY flag
Set the CRYPTO_ALG_KERN_DRIVER_ONLY flag to all algorithms exposed by the qce driver, since they are all hardware accelerated, accessible through a kernel driver only, and not available directly to userspace. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qce/ablkcipher.c')
-rw-r--r--drivers/crypto/qce/ablkcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qce/ablkcipher.c b/drivers/crypto/qce/ablkcipher.c
index 7a98bf5cc967..f0b59a8bbed0 100644
--- a/drivers/crypto/qce/ablkcipher.c
+++ b/drivers/crypto/qce/ablkcipher.c
@@ -380,7 +380,7 @@ static int qce_ablkcipher_register_one(const struct qce_ablkcipher_def *def,
alg->cra_priority = 300;
alg->cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC |
- CRYPTO_ALG_NEED_FALLBACK;
+ CRYPTO_ALG_NEED_FALLBACK | CRYPTO_ALG_KERN_DRIVER_ONLY;
alg->cra_ctxsize = sizeof(struct qce_cipher_ctx);
alg->cra_alignmask = 0;
alg->cra_type = &crypto_ablkcipher_type;