Commit fa60b81
net: stmmac: fix handling of zero coalescing tx-usecs
Setting ethtool -C eth0 tx-usecs 0 is supposed to disable the use of the
coalescing timer but currently it gets programmed with zero delay
instead.
Disable the use of the coalescing timer if tx-usecs is zero by
preventing it from being restarted. Note that to keep things simple we
don't start/stop the timer when the coalescing settings are changed, but
just let that happen on the next transmit or timer expiry.
Fixes: 8fce333 ("net: stmmac: Rework coalesce timer and fix multi-queue races")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 6eadb0b commit fa60b81
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2704 | 2704 | | |
2705 | 2705 | | |
2706 | 2706 | | |
2707 | | - | |
2708 | | - | |
2709 | | - | |
| 2707 | + | |
2710 | 2708 | | |
2711 | 2709 | | |
2712 | 2710 | | |
| |||
2995 | 2993 | | |
2996 | 2994 | | |
2997 | 2995 | | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
2998 | 3000 | | |
2999 | 3001 | | |
3000 | | - | |
| 3002 | + | |
3001 | 3003 | | |
3002 | 3004 | | |
3003 | 3005 | | |
| |||
0 commit comments