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

Nélio Laranjeiro nelio.laranjeiro at 6wind.com
Fri Jun 30 14:20:35 CEST 2017


On Wed, Jun 28, 2017 at 04:03:59PM -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 the code simpler and to reduce a few calculations.
> 
> Signed-off-by: Yongseok Koh <yskoh at mellanox.com>

Acked-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>

-- 
Nélio Laranjeiro
6WIND


More information about the dev mailing list