diff options
author | Patrick McHardy <kaber@trash.net> | 2008-05-07 10:36:17 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-07-10 08:35:12 -0400 |
commit | 6cd3d674ddd1706226d4c395440ef1997fd72381 (patch) | |
tree | a755aa6545cd545dbb4fb414044307fde2c7bf76 | |
parent | 4b804b53ef5a3c1a49c11bfff2754e0334cc932e (diff) |
[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>
-rw-r--r-- | drivers/crypto/hifn_795x.c | 2 |
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; | |||
371 | 371 | ||
372 | #define HIFN_D_DST_DALIGN 4 | 372 | #define HIFN_D_DST_DALIGN 4 |
373 | 373 | ||
374 | #define HIFN_QUEUE_LENGTH HIFN_D_CMD_RSIZE-5 | 374 | #define HIFN_QUEUE_LENGTH HIFN_D_CMD_RSIZE-1 |
375 | 375 | ||
376 | #define AES_MIN_KEY_SIZE 16 | 376 | #define AES_MIN_KEY_SIZE 16 |
377 | #define AES_MAX_KEY_SIZE 32 | 377 | #define AES_MAX_KEY_SIZE 32 |