[dpdk-dev] [PATCH v2] regex/mlx5: fix sq free check on enqueue
Thomas Monjalon
thomas at monjalon.net
Wed Jul 29 16:51:35 CEST 2020
29/07/2020 04:14, Yuval Avnery:
> Free sq check had a bug, causing jobs to overwrite.
Reworded with Ori's help:
regex/mlx5: fix overrun on enqueueing
When enqueueing a buffer the PMD check if there is room
in its send queue (SQ).
The current implementation did not take into account that
queue indices are wrapping around, which may result in
consumer index (sq->ci) can have bigger value than than
the producer index (sq->pi).
>
> Fixes: 8740ba5fe57f ("regex/mlx5: add enqueue implementation")
Fixes: 4d4e245ad637 ("regex/mlx5: support enqueue")
> Signed-off-by: Yuval Avnery <yuvalav at mellanox.com>
> Acked-by: Ori Kam <orika at mellanox.com>
Applied, thanks
More information about the dev
mailing list