Repository navigation
Commit 88fd650
committed
net: macb: credit unsent frames to BQL in macb_tx_error_task()
The frames dropped on a TX error are never returned to BQL. Each error
shrinks the BQL budget for good until the queue stops with an empty
ring.
netdev_tx_reset_queue() is not safe here as the task runs without
tx_ptr_lock, so macb_start_xmit() may still be queueing.
Fixes: e6a5321 ("net: cadence: macb: Implement BQL")
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>1 parent b04406d commit 88fd650
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
1360 | | - | |
1361 | 1360 | | |
1362 | 1361 | | |
1363 | | - | |
1364 | 1362 | | |
1365 | 1363 | | |
1366 | 1364 | | |
| |||
1374 | 1372 | | |
1375 | 1373 | | |
1376 | 1374 | | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
1377 | 1381 | | |
1378 | 1382 | | |
1379 | 1383 | | |
| |||
0 commit comments