Re: [net-next v3 05/12] net: bnxt: Use dma_unmap_len for TX completion unmapping
From: Pavan Chebbi
Date: Thu Mar 19 2026 - 07:39:28 EST
On Thu, Mar 19, 2026 at 12:43 AM Joe Damato <joe@xxxxxxx> wrote:
>
> Store the DMA mapping length in each TX buffer descriptor via
> dma_unmap_len_set at submit time, and use dma_unmap_len at completion
> time.
>
> This is a no-op for normal packets but prepares for software USO,
> where header BDs set dma_unmap_len to 0 because the header buffer
> is unmapped collectively rather than per-segment.
>
> Suggested-by: Jakub Kicinski <kuba@xxxxxxxxxx>
> Signed-off-by: Joe Damato <joe@xxxxxxx>
> ---
> rfcv2:
> - Use some local variables to shortern long lines. No functional change from
> rfcv1.
>
> drivers/net/ethernet/broadcom/bnxt/bnxt.c | 63 ++++++++++++++---------
> 1 file changed, 40 insertions(+), 23 deletions(-)
>
LGTM.
Reviewed-by: Pavan Chebbi <pavan.chebbi@xxxxxxxxxxxx>
Thanks.
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature