Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cd3d674 authored by Patrick McHardy's avatar Patrick McHardy Committed by Herbert Xu
Browse files

[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: default avatarPatrick McHardy <kaber@trash.net>
Acked-by: default avatarEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4b804b53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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