Re: [net-next v4 06/12] net: bnxt: Add TX inline buffer infrastructure

From: Pavan Chebbi

Date: Sat Mar 21 2026 - 03:27:59 EST


On Fri, Mar 20, 2026 at 8:12 PM Joe Damato <joe@xxxxxxx> wrote:
>
> Add per-ring pre-allocated inline buffer fields (tx_inline_buf,
> tx_inline_dma, tx_inline_size) to bnxt_tx_ring_info and helpers to
> allocate and free them. A producer and consumer (tx_inline_prod,
> tx_inline_cons) are added to track which slot(s) of the inline buffer
> are in-use.
>
> The inline buffer will be used by the SW USO path for pre-allocated,
> pre-DMA-mapped per-segment header copies. In the future, this
> could be extended to support TX copybreak.
>
> Allocation helper is marked __maybe_unused in this commit because it
> will be wired in later.
>
> Suggested-by: Jakub Kicinski <kuba@xxxxxxxxxx>
> Signed-off-by: Joe Damato <joe@xxxxxxx>
> ---
> rfcv2:
> - Added a producer and consumer to correctly track the in use header slots.
>
> drivers/net/ethernet/broadcom/bnxt/bnxt.c | 35 +++++++++++++++++++++++
> drivers/net/ethernet/broadcom/bnxt/bnxt.h | 6 ++++
> 2 files changed, 41 insertions(+)
>

Reviewed-by: Pavan Chebbi <pavan.chebbi@xxxxxxxxxxxx>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature