Re: [dpdk-dev] [PATCH] net/mlx5: fix assert for Tx completion queue count

2018-07-24 Thread Shahaf Shuler
Monday, July 23, 2018 9:00 PM, Yongseok Koh: > Subject: [PATCH] net/mlx5: fix assert for Tx completion queue count > > There should be at least one Tx CQE remained if Tx WQ and txq->elts[] have > available slots to send a packet because the size of Tx CQ is exactly > calculated > from the size of

[dpdk-dev] [PATCH] net/mlx5: fix assert for Tx completion queue count

2018-07-23 Thread Yongseok Koh
There should be at least one Tx CQE remained if Tx WQ and txq->elts[] have available slots to send a packet because the size of Tx CQ is exactly calculated from the size of other resources. As it is guaranteed, it is checked by an assertion. max_elts is checked after the assertion for Tx CQ. If no