aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c
diff options
context:
space:
mode:
authorMartin Schiller <mschiller@tdt.de>2016-08-18 12:03:17 +0200
committerJohn Crispin <john@phrozen.org>2016-08-20 05:33:09 +0200
commit070edfd92f8f83a93312a7df5f59048d74286584 (patch)
tree4de5631096240d062a879323964241d5ec605ed0 /package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c
parent93916613943ae095027f01acc521b4fcf174dea2 (diff)
downloadupstream-070edfd92f8f83a93312a7df5f59048d74286584.tar.gz
upstream-070edfd92f8f83a93312a7df5f59048d74286584.tar.bz2
upstream-070edfd92f8f83a93312a7df5f59048d74286584.zip
ltq-deu: fix cra_priority
With the default priority of 0, the DEU algos would be overlapped by the generic algos (if available). To fix this, set the cra_priority of the hardware algos to the recommended value of 300/400. Signed-off-by: Martin Schiller <mschiller@tdt.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c')
-rw-r--r--package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c
index 9c593aeb49..ea94c6460f 100644
--- a/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c
+++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c
@@ -790,7 +790,7 @@ static struct lq_des_alg des_drivers_alg [] = {
.cra_blocksize = DES_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct des_ctx),
.cra_type = &crypto_ablkcipher_type,
- .cra_priority = 300,
+ .cra_priority = 400,
.cra_module = THIS_MODULE,
.cra_ablkcipher = {
.setkey = lq_des_setkey,
@@ -810,7 +810,7 @@ static struct lq_des_alg des_drivers_alg [] = {
.cra_blocksize = DES_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct des_ctx),
.cra_type = &crypto_ablkcipher_type,
- .cra_priority = 300,
+ .cra_priority = 400,
.cra_module = THIS_MODULE,
.cra_ablkcipher = {
.setkey = lq_des_setkey,
@@ -850,7 +850,7 @@ static struct lq_des_alg des_drivers_alg [] = {
.cra_blocksize = DES_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct des_ctx),
.cra_type = &crypto_ablkcipher_type,
- .cra_priority = 300,
+ .cra_priority = 400,
.cra_module = THIS_MODULE,
.cra_ablkcipher = {
.setkey = lq_des3_ede_setkey,
@@ -870,7 +870,7 @@ static struct lq_des_alg des_drivers_alg [] = {
.cra_blocksize = DES_BLOCK_SIZE,
.cra_ctxsize = sizeof(struct des_ctx),
.cra_type = &crypto_ablkcipher_type,
- .cra_priority = 300,
+ .cra_priority = 400,
.cra_module = THIS_MODULE,
.cra_ablkcipher = {
.setkey = lq_des3_ede_setkey,