net/bnxt: modify ring index logic
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 7 Dec 2020 17:54:30 +0000 (09:54 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commitc7de4195cc4c397c20452a67f7262c07858a1371
tree6be5a9d31c9a0d47704903f624d261a49965d3e5
parent68e2bebf7be82024ec9d3ff2d5fe7fcf2491d86a
net/bnxt: modify ring index logic

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 <ajit.khaparde@broadcom.com>
Acked-by: Lance Richardson <lance.richardson@broadcom.com>
12 files changed:
drivers/net/bnxt/bnxt_cpr.h
drivers/net/bnxt/bnxt_hwrm.c
drivers/net/bnxt/bnxt_reps.c
drivers/net/bnxt/bnxt_ring.c
drivers/net/bnxt/bnxt_ring.h
drivers/net/bnxt/bnxt_rxr.c
drivers/net/bnxt/bnxt_rxr.h
drivers/net/bnxt/bnxt_rxtx_vec_common.h
drivers/net/bnxt/bnxt_rxtx_vec_neon.c
drivers/net/bnxt/bnxt_rxtx_vec_sse.c
drivers/net/bnxt/bnxt_txr.c
drivers/net/bnxt/bnxt_txr.h