[PATCH] net/mlx5/hws: fix send sync drain empty queue check

Raslan Darawsheh rasland at nvidia.com
Thu Mar 23 20:42:55 CET 2023


Hi,

> -----Original Message-----
> From: Alex Vesker <valex at nvidia.com>
> Sent: Thursday, March 23, 2023 2:34 PM
> To: Alex Vesker <valex at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; NBU-Contact-Thomas Monjalon (EXTERNAL)
> <thomas at monjalon.net>; Suanming Mou <suanmingm at nvidia.com>; Matan
> Azrad <matan at nvidia.com>
> Cc: dev at dpdk.org; Ori Kam <orika at nvidia.com>
> Subject: [PATCH] net/mlx5/hws: fix send sync drain empty queue check
> 
> The function that checks if the queue is empty used on queue action for SYNC
> and ASYNC drain didn't function correctly since cur_post is a free running value
> and not cyclic.
> The fix is bitwise AND cur_post to get the real value.
> 
> Fixes: 90488887ee33 ("net/mlx5/hws: support synchronous drain")
> Signed-off-by: Alex Vesker <valex at nvidia.com>
> Reviewed-by: Erez Shitrit <erezsh at nvidia.com>
> Acked-by: Matan Azrad matan at nvidia.com

Fixed Acked-by tag,
Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh


More information about the dev mailing list