Re: [dpdk-dev] [PATCH v2 1/5] net/mlx5: change indexing for Tx SW ring

2017-07-03 Thread Nélio Laranjeiro
On Fri, Jun 30, 2017 at 12:23:29PM -0700, Yongseok Koh wrote: > For Tx SW ring (txq->elts[]), indexes are kept and used in > txq->elts_head/tail. Because of this, one entry must always be left unused > and it also makes code complex. Changed to store counters instead of > indexes in order to make t

[dpdk-dev] [PATCH v2 1/5] net/mlx5: change indexing for Tx SW ring

2017-06-30 Thread Yongseok Koh
For Tx SW ring (txq->elts[]), indexes are kept and used in txq->elts_head/tail. Because of this, one entry must always be left unused and it also makes code complex. Changed to store counters instead of indexes in order to make the code simpler and to reduce a few calculations. Signed-off-by: Yong