summaryrefslogtreecommitdiff
path: root/drivers/crypto/hifn_795x.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-05-07 18:36:17 +0400
committerHerbert Xu <herbert@gondor.apana.org.au>2008-07-10 16:35:12 +0400
commit6cd3d674ddd1706226d4c395440ef1997fd72381 (patch)
treea755aa6545cd545dbb4fb414044307fde2c7bf76 /drivers/crypto/hifn_795x.c
parent4b804b53ef5a3c1a49c11bfff2754e0334cc932e (diff)
downloadlinux-6cd3d674ddd1706226d4c395440ef1997fd72381.tar.xz
[HIFN]: Fix max queue length value
All but the last element of the command and result descriptor rings can be used for crypto requests, fix HIFN_QUEUE_LENGTH. Signed-off-by: Patrick McHardy <kaber@trash.net> Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hifn_795x.c')
-rw-r--r--drivers/crypto/hifn_795x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index a4b1cea59ae6..d6f042370d45 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -371,7 +371,7 @@ static atomic_t hifn_dev_number;
#define HIFN_D_DST_DALIGN 4
-#define HIFN_QUEUE_LENGTH HIFN_D_CMD_RSIZE-5
+#define HIFN_QUEUE_LENGTH HIFN_D_CMD_RSIZE-1
#define AES_MIN_KEY_SIZE 16
#define AES_MAX_KEY_SIZE 32