summaryrefslogtreecommitdiffstats
path: root/arch/sparc/crypto/crc32c_glue.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-09-15 09:06:30 -0700
committerDavid S. Miller <davem@davemloft.net>2012-09-15 09:06:30 -0700
commit1080362425793f67e36dc690973e13e4a9631b4d (patch)
tree7c41ddc540679c9782ca9b448cbca8f52e9b6d47 /arch/sparc/crypto/crc32c_glue.c
parentc69ad0a3f7d871aa61fb669fb41c951df6660a61 (diff)
downloadlinux-1080362425793f67e36dc690973e13e4a9631b4d.tar.bz2
sparc64: Adjust crypto priorities.
Make the crypto opcode implementations have a higher priority than those provides by the ring buffer based Niagara crypto device. Also, several crypto opcode hashes were not setting the priority value at all. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/crypto/crc32c_glue.c')
-rw-r--r--arch/sparc/crypto/crc32c_glue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc/crypto/crc32c_glue.c b/arch/sparc/crypto/crc32c_glue.c
index ec31cdb20a14..0bd89cea8d8e 100644
--- a/arch/sparc/crypto/crc32c_glue.c
+++ b/arch/sparc/crypto/crc32c_glue.c
@@ -20,6 +20,8 @@
#include <asm/pstate.h>
#include <asm/elf.h>
+#include "opcodes.h"
+
/*
* Setting the seed allows arbitrary accumulators and flexible XOR policy
* If your algorithm starts with ~0, then XOR with ~0 before you set
@@ -130,7 +132,7 @@ static struct shash_alg alg = {
.base = {
.cra_name = "crc32c",
.cra_driver_name = "crc32c-sparc64",
- .cra_priority = 150,
+ .cra_priority = SPARC_CR_OPCODE_PRIORITY,
.cra_blocksize = CHKSUM_BLOCK_SIZE,
.cra_ctxsize = sizeof(u32),
.cra_alignmask = 7,