From 070edfd92f8f83a93312a7df5f59048d74286584 Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Thu, 18 Aug 2016 12:03:17 +0200 Subject: 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 --- package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c | 1 + 1 file changed, 1 insertion(+) (limited to 'package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c') diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c index a447c15fe8..7287a82f54 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_sha1_hmac.c @@ -332,6 +332,7 @@ static struct shash_alg ifxdeu_sha1_hmac_alg = { .base = { .cra_name = "hmac(sha1)", .cra_driver_name= "ifxdeu-sha1_hmac", + .cra_priority = 400, .cra_ctxsize = sizeof(struct sha1_hmac_ctx), .cra_flags = CRYPTO_ALG_TYPE_DIGEST, .cra_blocksize = SHA1_HMAC_BLOCK_SIZE, -- cgit v1.2.3