[dpdk-stable] [EXT] [dpdk-dev] [PATCH] crypto/mlx5: fix crypto QP indexing

Akhil Goyal gakhil at marvell.com
Fri Sep 24 19:47:22 CEST 2021


> The crypto QP consumer (ci) and producer (pi) indexes are increased
> with each successful enqueue/dequeue operations.
> 
> However the QP pi index is calculated with a wraparound the number
> of elements while the QP ci does not.
> 
> This is causing incorrect engine calculation for encqueued WQ values
> (wq->pi - wq->ci) and eventually the device stops accepting new enqueue
> operations.
> 
> Fixed by removing the wraparound on QP pi and using a temp calculation
> where wraparound values are needed.
> 
> Fixes: 8e196c08ab53 ("crypto/mlx5: support enqueue/dequeue operations")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Tal Shnaiderman <talshn at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
Applied to dpdk-next-crypto



More information about the stable mailing list