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

2023-03-23 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alex Vesker > Sent: Thursday, March 23, 2023 2:34 PM > To: Alex Vesker ; Slava Ovsiienko > ; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; Suanming Mou ; Matan > Azrad > Cc: dev@dpdk.org; Ori Kam > Subject: [PATCH] net/mlx5/hws

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

2023-03-23 Thread Alex Vesker
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: 9047ee33 ("net/mlx5/hws: support synchronous drain") Signe