diff options
author | Patrick McHardy <kaber@trash.net> | 2008-05-07 16:36:17 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-07-10 14:35:12 +0200 |
commit | 6cd3d674ddd1706226d4c395440ef1997fd72381 (patch) | |
tree | a755aa6545cd545dbb4fb414044307fde2c7bf76 /drivers/crypto/hifn_795x.c | |
parent | [HIFN]: Properly initialize ivsize for CBC modes (diff) | |
download | linux-6cd3d674ddd1706226d4c395440ef1997fd72381.tar.xz linux-6cd3d674ddd1706226d4c395440ef1997fd72381.zip |
[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.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; #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 |