forked from Openwrt/openwrt
5fe80218f9
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.78 Manually rebased: bcm27xx/patches-6.1/950-0865-usb-dwc3-Set-DMA-and-coherent-masks-early.patch bcm27xx/patches-6.1/950-0124-Add-support-for-all-the-downstream-rpi-sound-card-dr.patch All other patches automatically rebased. Build system: x86/64 Build-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3, logic/xiaomi_redmi-router-ax6000-ubootmod Run-tested: x86/64/AMD Cezanne, ramips/tplink_archer-a6-v3, logic/xiaomi_redmi-router-ax6000-ubootmod Signed-off-by: John Audia <therealgraysky@proton.me>
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
From 039550960a2235cfe2dfaa773df9f98f8da31a0c Mon Sep 17 00:00:00 2001
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
Date: Wed, 18 Oct 2023 14:35:50 +0200
|
|
Subject: [PATCH 3/3] 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 | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/ethernet/stmicro/stmmac/common.h
|
|
+++ b/drivers/net/ethernet/stmicro/stmmac/common.h
|
|
@@ -287,7 +287,7 @@ struct stmmac_safety_stats {
|
|
#define MIN_DMA_RIWT 0x10
|
|
#define DEF_DMA_RIWT 0xa0
|
|
/* Tx coalesce parameters */
|
|
-#define STMMAC_COAL_TX_TIMER 1000
|
|
+#define STMMAC_COAL_TX_TIMER 5000
|
|
#define STMMAC_MAX_COAL_TX_TICK 100000
|
|
#define STMMAC_TX_MAX_FRAMES 256
|
|
#define STMMAC_TX_FRAMES 25
|