]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: bnxt: Use dma_unmap_len for TX completion unmapping
authorJoe Damato <joe@dama.to>
Wed, 8 Apr 2026 23:05:53 +0000 (16:05 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 17:54:32 +0000 (10:54 -0700)
commit3cb430e62c83823b76fc7dc1aec8dc7bbf81a729
tree3e2e6811628da2487d42dd2a55c021f64b633f0a
parent637237d3d93cab7f183075f4fadbfbf62663c6f4
net: bnxt: Use dma_unmap_len for TX completion unmapping

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@kernel.org>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20260408230607.2019402-5-joe@dama.to
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c