Hi, > -----Original Message----- > From: Alexander Kozyrev <[email protected]> > Sent: Monday, November 16, 2020 9:48 PM > To: [email protected] > Cc: [email protected]; Raslan Darawsheh <[email protected]>; Slava > Ovsiienko <[email protected]>; Matan Azrad <[email protected]> > Subject: [PATCH] net/mlx5: fix WQE counter assert in free completion queue > > The following assertion fails in case RTE_ENABLE_ASSERT is enabled: > PANIC in mlx5_tx_handle_completion(): > assert "(txq->fcqs[txq->cq_ci & txq->cqe_m] >> 16) > == cqe->wqe_counter" failed > > The free completion queue only contains an expected WQE counter if > RTE_LIBRTE_MLX5_DEBUG is enabled as well. Thus enabling > RTE_ENABLE_ASSERT alone causes the assert to fail. > > Compile the assert conditionally only if RTE_ENABLE_ASSERT is enabled. > > Fixes: 0afacb04f5 ("common/mlx5: remove NDEBUG") > Cc: [email protected] > > Signed-off-by: Alexander Kozyrev <[email protected]> > Acked-by: Viacheslav Ovsiienko <[email protected]> > --- Patch applied to next-net-mlx,
Kindest regards, Raslan Darawsheh

