Commit 3dc6e99
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: 23020f0 ("net: airoha: Introduce ethernet support for EN7581 SoC")
Reported-by: Felix Fietkau <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/20241004-airoha-eth-7581-mapping-fix-v1-1-8e4279ab1812@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>1 parent f50b5d7 commit 3dc6e99
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2471 | 2471 | | |
2472 | 2472 | | |
2473 | 2473 | | |
2474 | | - | |
2475 | | - | |
2476 | | - | |
2477 | | - | |
2478 | 2474 | | |
2479 | 2475 | | |
2480 | 2476 | | |
| |||
2483 | 2479 | | |
2484 | 2480 | | |
2485 | 2481 | | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
2486 | 2487 | | |
2487 | 2488 | | |
2488 | 2489 | | |
| |||
0 commit comments