]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Move entries to queue head in case of DMA mapping failure in airoha_dev_...
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 29 Apr 2026 12:02:31 +0000 (14:02 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 1 May 2026 01:08:48 +0000 (18:08 -0700)
commit75df490c9e8457990c8b227650f6491218ce018b
tree776f747990728b44545c34048d7ffbbf0319a124
parent7a33345153eeeda195c55f15be27074e4c3b5109
net: airoha: Move entries to queue head in case of DMA mapping failure in airoha_dev_xmit()

In order to respect the original descriptor order and avoid any
potential IOMMU fault or memory corruption, move pending queue entries
to the head of hw queue tx_list if the DMA mapping of current inflight
packet fails in airoha_dev_xmit routine.

Fixes: 3f47e67dff1f7 ("net: airoha: Add the capability to consume out-of-order DMA tx descriptors")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260429-airoha-xmit-unmap-error-path-v2-1-32e43b7c6d25@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c