Skip to content

Commit

Permalink
[HIFN]: Fix max queue length value
Browse files Browse the repository at this point in the history
    
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>
  • Loading branch information
Patrick McHardy authored and Herbert Xu committed Jul 10, 2008
1 parent 4b804b5 commit 6cd3d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/hifn_795x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cd3d67

Please sign in to comment.