diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-02-26 06:12:36 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-02-26 06:12:36 +0300 |
| commit | 23a611b9b3bdcad2c63f291f14a9ea0ac50cc509 (patch) | |
| tree | 6beabac26eb00277a68faa13460a0eae3f07f9fd /include/linux/timerqueue.h | |
| parent | 51432958b5655e9f848b559ca59ae1a7f00a9166 (diff) | |
| parent | dd53a0e85969c6b2a5a4e4e46ba05b3187231017 (diff) | |
| download | linux-23a611b9b3bdcad2c63f291f14a9ea0ac50cc509.tar.xz | |
Merge branch 'net-stmmac-fix-interrupt-coalescing'
Russell King says:
====================
net: stmmac: fix interrupt coalescing
While cleaning up the descriptor handling, I noticed that the accounting
of transmit "packets" for interrupt coalescing was buggy in that it
takes the difference of the two indexes into the circular list of
transmit discriptors and merely subtracts one from the other without
regard for the indexes wrapping.
This can result in a negative number or very large positive number
which would have the effect of either reducing tx_q->tx_count_frames
or making that very large.
Either way, the result is numerically incorrect, and could trigger
interrupts or not trigger interrupts when required.
This series converts stmmac to use the circ_buf helpers, and then fixes
this problem.
====================
Link: https://patch.msgid.link/aZ1o2dmfpeiubCik@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
