Hi, > -----Original Message----- > From: Alexander Kozyrev <akozy...@nvidia.com> > Sent: Monday, November 16, 2020 9:48 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh <rasl...@nvidia.com>; Slava > Ovsiienko <viachesl...@nvidia.com>; Matan Azrad <ma...@nvidia.com> > 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: sta...@dpdk.org > > Signed-off-by: Alexander Kozyrev <akozy...@nvidia.com> > Acked-by: Viacheslav Ovsiienko <viachesl...@nvidia.com> > --- Patch applied to next-net-mlx,
Kindest regards, Raslan Darawsheh