summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/linux-2.4/patches/generic/213-htb_disable_hysteresis.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-15 13:22:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-15 13:22:57 +0000
commitb4f12fb36fe525bf2d74bd99e83418954b66c9ac (patch)
treeb91037262c0f19031e5fcbd94b3522150c8ce2df /openwrt/target/linux/linux-2.4/patches/generic/213-htb_disable_hysteresis.patch
parent0fb3620001b150b9fc4025c3cf8836a5cb69f8ad (diff)
downloadmtk-20170518-b4f12fb36fe525bf2d74bd99e83418954b66c9ac.zip
mtk-20170518-b4f12fb36fe525bf2d74bd99e83418954b66c9ac.tar.gz
mtk-20170518-b4f12fb36fe525bf2d74bd99e83418954b66c9ac.tar.bz2
add fix for htb with tsc timers and disable hysteresis for more precise shaping
SVN-Revision: 2497
Diffstat (limited to 'openwrt/target/linux/linux-2.4/patches/generic/213-htb_disable_hysteresis.patch')
-rw-r--r--openwrt/target/linux/linux-2.4/patches/generic/213-htb_disable_hysteresis.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/openwrt/target/linux/linux-2.4/patches/generic/213-htb_disable_hysteresis.patch b/openwrt/target/linux/linux-2.4/patches/generic/213-htb_disable_hysteresis.patch
new file mode 100644
index 0000000..5d0ff92
--- /dev/null
+++ b/openwrt/target/linux/linux-2.4/patches/generic/213-htb_disable_hysteresis.patch
@@ -0,0 +1,11 @@
+--- linux.old/net/sched/sch_htb.c 2005-11-15 14:09:41.548066000 +0100
++++ linux.dev/net/sched/sch_htb.c 2005-11-15 14:08:34.000000000 +0100
+@@ -74,7 +74,7 @@
+ #define HTB_EWMAC 2 /* rate average over HTB_EWMAC*HTB_HSIZE sec */
+ #define HTB_DEBUG 1 /* compile debugging support (activated by tc tool) */
+ #define HTB_RATECM 1 /* whether to use rate computer */
+-#define HTB_HYSTERESIS 1/* whether to use mode hysteresis for speedup */
++#define HTB_HYSTERESIS 0/* whether to use mode hysteresis for speedup */
+ #define HTB_QLOCK(S) spin_lock_bh(&(S)->dev->queue_lock)
+ #define HTB_QUNLOCK(S) spin_unlock_bh(&(S)->dev->queue_lock)
+ #define HTB_VER 0x30011 /* major must be matched with number suplied by TC as version */