mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
crypto: qat - lower priority for skcipher and aead algorithms
commit 8024774190a5ef2af2c5846f60a50b23e0980a32 upstream. Most kernel applications utilizing the crypto API operate synchronously and on small buffer sizes, therefore do not benefit from QAT acceleration. Reduce the priority of QAT implementations for both skcipher and aead algorithms, allowing more suitable alternatives to be selected by default. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Link: https://lore.kernel.org/all/20250613012357.GA3603104@google.com/ Cc: stable@vger.kernel.org Acked-by: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ea95d4e8a2
commit
fd28441795
@@ -1277,7 +1277,7 @@ static struct aead_alg qat_aeads[] = { {
|
||||
.base = {
|
||||
.cra_name = "authenc(hmac(sha1),cbc(aes))",
|
||||
.cra_driver_name = "qat_aes_cbc_hmac_sha1",
|
||||
.cra_priority = 4001,
|
||||
.cra_priority = 100,
|
||||
.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY,
|
||||
.cra_blocksize = AES_BLOCK_SIZE,
|
||||
.cra_ctxsize = sizeof(struct qat_alg_aead_ctx),
|
||||
@@ -1294,7 +1294,7 @@ static struct aead_alg qat_aeads[] = { {
|
||||
.base = {
|
||||
.cra_name = "authenc(hmac(sha256),cbc(aes))",
|
||||
.cra_driver_name = "qat_aes_cbc_hmac_sha256",
|
||||
.cra_priority = 4001,
|
||||
.cra_priority = 100,
|
||||
.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY,
|
||||
.cra_blocksize = AES_BLOCK_SIZE,
|
||||
.cra_ctxsize = sizeof(struct qat_alg_aead_ctx),
|
||||
@@ -1311,7 +1311,7 @@ static struct aead_alg qat_aeads[] = { {
|
||||
.base = {
|
||||
.cra_name = "authenc(hmac(sha512),cbc(aes))",
|
||||
.cra_driver_name = "qat_aes_cbc_hmac_sha512",
|
||||
.cra_priority = 4001,
|
||||
.cra_priority = 100,
|
||||
.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY,
|
||||
.cra_blocksize = AES_BLOCK_SIZE,
|
||||
.cra_ctxsize = sizeof(struct qat_alg_aead_ctx),
|
||||
@@ -1329,7 +1329,7 @@ static struct aead_alg qat_aeads[] = { {
|
||||
static struct skcipher_alg qat_skciphers[] = { {
|
||||
.base.cra_name = "cbc(aes)",
|
||||
.base.cra_driver_name = "qat_aes_cbc",
|
||||
.base.cra_priority = 4001,
|
||||
.base.cra_priority = 100,
|
||||
.base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY,
|
||||
.base.cra_blocksize = AES_BLOCK_SIZE,
|
||||
.base.cra_ctxsize = sizeof(struct qat_alg_skcipher_ctx),
|
||||
@@ -1347,7 +1347,7 @@ static struct skcipher_alg qat_skciphers[] = { {
|
||||
}, {
|
||||
.base.cra_name = "ctr(aes)",
|
||||
.base.cra_driver_name = "qat_aes_ctr",
|
||||
.base.cra_priority = 4001,
|
||||
.base.cra_priority = 100,
|
||||
.base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY,
|
||||
.base.cra_blocksize = 1,
|
||||
.base.cra_ctxsize = sizeof(struct qat_alg_skcipher_ctx),
|
||||
@@ -1365,7 +1365,7 @@ static struct skcipher_alg qat_skciphers[] = { {
|
||||
}, {
|
||||
.base.cra_name = "xts(aes)",
|
||||
.base.cra_driver_name = "qat_aes_xts",
|
||||
.base.cra_priority = 4001,
|
||||
.base.cra_priority = 100,
|
||||
.base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_NEED_FALLBACK |
|
||||
CRYPTO_ALG_ALLOCATES_MEMORY,
|
||||
.base.cra_blocksize = AES_BLOCK_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user