Re: [dpdk-dev] [PATCH v2 17/17] net/bnxt: modify ring index logic

2020-12-09 Thread Lance Richardson
On Wed, Dec 9, 2020 at 2:28 PM Ajit Khaparde wrote: > > Change the ring logic so that the index increments > unbounded and mask it only when needed. > > Modify the existing macros so that the index is not masked. > Add a new macro RING_IDX() to mask it only when needed. > > Signed-off-by: Ajit Kha

[dpdk-dev] [PATCH v2 17/17] net/bnxt: modify ring index logic

2020-12-09 Thread Ajit Khaparde
Change the ring logic so that the index increments unbounded and mask it only when needed. Modify the existing macros so that the index is not masked. Add a new macro RING_IDX() to mask it only when needed. Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_cpr.h | 10 ++- driv