]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: increase TX coalesce timer to 5ms
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 18 Oct 2023 12:35:50 +0000 (14:35 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Oct 2023 13:41:31 +0000 (15:41 +0200)
commit039550960a2235cfe2dfaa773df9f98f8da31a0c
treed41aba8c1f603fc2b0069f38a55d61ce7e9524e5
parenta594166387fe08e6f5a32130c400249a35b298f9
net: stmmac: increase TX coalesce timer to 5ms

Commit 8fce33317023 ("net: stmmac: Rework coalesce timer and fix
multi-queue races") decreased the TX coalesce timer from 40ms to 1ms.

This caused some performance regression on some target (regression was
reported at least on ipq806x) in the order of 600mbps dropping from
gigabit handling to only 200mbps.

The problem was identified in the TX timer getting armed too much time.
While this was fixed and improved in another commit, performance can be
improved even further by increasing the timer delay a bit moving from
1ms to 5ms.

The value is a good balance between battery saving by prevending too
much interrupt to be generated and permitting good performance for
internet oriented devices.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/common.h