]> www.infradead.org Git - users/willy/pagecache.git/commit
net: airoha: Update tx cpu dma ring idx at the end of xmit loop
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 4 Oct 2024 13:51:26 +0000 (15:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Oct 2024 00:29:22 +0000 (17:29 -0700)
commit3dc6e998d18bfba6e0dc979d3cc68eba98dfeef7
tree0c9fdc41e1acea55d0b7024a95eeedb2e062867b
parentf50b5d74c68e551667e265123659b187a30fe3a5
net: airoha: Update tx cpu dma ring idx at the end of xmit loop

Move the tx cpu dma ring index update out of transmit loop of
airoha_dev_xmit routine in order to not start transmitting the packet
before it is fully DMA mapped (e.g. fragmented skbs).

Fixes: 23020f049327 ("net: airoha: Introduce ethernet support for EN7581 SoC")
Reported-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241004-airoha-eth-7581-mapping-fix-v1-1-8e4279ab1812@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/airoha_eth.c