[dpdk-dev] [PATCH v3 17/17] net/bnxt: modify ring index logic
Lance Richardson
h.lance.richardson at gmail.com
Thu Dec 10 15:23:30 CET 2020
On Wed, Dec 9, 2020 at 6:59 PM Ajit Khaparde <ajitkhaparde at gmail.com> 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.
> -
> v2->v3: Updated the index calculation in Tx completion processing.
>
> Signed-off-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
> ---
> drivers/net/bnxt/bnxt_cpr.h | 10 ++-
> drivers/net/bnxt/bnxt_hwrm.c | 4 +-
> drivers/net/bnxt/bnxt_reps.c | 4 +-
> drivers/net/bnxt/bnxt_ring.c | 39 +++++----
> drivers/net/bnxt/bnxt_ring.h | 40 ++++++---
> drivers/net/bnxt/bnxt_rxr.c | 110 +++++++++++++-----------
> drivers/net/bnxt/bnxt_rxr.h | 4 +-
> drivers/net/bnxt/bnxt_rxtx_vec_common.h | 14 +--
> drivers/net/bnxt/bnxt_rxtx_vec_neon.c | 16 ++--
> drivers/net/bnxt/bnxt_rxtx_vec_sse.c | 16 ++--
> drivers/net/bnxt/bnxt_txr.c | 51 ++++++-----
> drivers/net/bnxt/bnxt_txr.h | 6 +-
> 12 files changed, 179 insertions(+), 135 deletions(-)
>
Acked-by: Lance Richardson <lance.richardson at broadcom.com>
(Note: sending from a personal email account to avoid incompatible
footer forced by corporate policy. Ideally I would submit a patch to
add a mailmap entry with this email address, but we don't seem to
have a .mailmap file for this repository.)
More information about the dev
mailing list