Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit 75fcc32

Browse files
reduce caam algo priority, ARM64 enhanced commands are actually faster
1 parent 696b9b1 commit 75fcc32

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/crypto/caam/caamalg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
/*
6161
* crypto alg
6262
*/
63-
#define CAAM_CRA_PRIORITY 3000
63+
#define CAAM_CRA_PRIORITY 299
6464
/* max key is sum of AES_MAX_KEY_SIZE, max split key size */
6565
#define CAAM_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + \
6666
CTR_RFC3686_NONCE_SIZE + \

drivers/crypto/caam/caamalg_qi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/*
2323
* crypto alg
2424
*/
25-
#define CAAM_CRA_PRIORITY 2000
25+
#define CAAM_CRA_PRIORITY 298
2626
/* max key is sum of AES_MAX_KEY_SIZE, max split key size */
2727
#define CAAM_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + \
2828
SHA512_DIGEST_SIZE * 2)

drivers/crypto/caam/caamalg_qi2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <soc/fsl/dpaa2-io.h>
2020
#include <soc/fsl/dpaa2-fd.h>
2121

22-
#define CAAM_CRA_PRIORITY 2000
22+
#define CAAM_CRA_PRIORITY 298
2323

2424
/* max key is sum of AES_MAX_KEY_SIZE, max split key size */
2525
#define CAAM_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE + \

drivers/crypto/caam/caamhash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
#include "key_gen.h"
6767
#include "caamhash_desc.h"
6868

69-
#define CAAM_CRA_PRIORITY 3000
69+
#define CAAM_CRA_PRIORITY 299
7070

7171
/* max hash key is max split key size */
7272
#define CAAM_MAX_HASH_KEY_SIZE (SHA512_DIGEST_SIZE * 2)

0 commit comments

Comments
 (0)