aboutsummaryrefslogtreecommitdiffstats
path: root/package/qos-scripts/files/usr
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-07 00:20:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-07 00:20:48 +0000
commit87caff348210a2d7ab74bffb859201f098aa1a9f (patch)
treebe3c38cc2df0a7137f9d5f714f3b0b51537d3b3e /package/qos-scripts/files/usr
parentd9e746e0b0e54afc5f21bd03ae4c0e4b56a94771 (diff)
downloadupstream-87caff348210a2d7ab74bffb859201f098aa1a9f.tar.gz
upstream-87caff348210a2d7ab74bffb859201f098aa1a9f.tar.bz2
upstream-87caff348210a2d7ab74bffb859201f098aa1a9f.zip
qos-scripts: fix RED burst calculation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6878 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/qos-scripts/files/usr')
-rw-r--r--package/qos-scripts/files/usr/lib/qos/tcrules.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/qos-scripts/files/usr/lib/qos/tcrules.awk b/package/qos-scripts/files/usr/lib/qos/tcrules.awk
index 8220d99ca2..d236b2df93 100644
--- a/package/qos-scripts/files/usr/lib/qos/tcrules.awk
+++ b/package/qos-scripts/files/usr/lib/qos/tcrules.awk
@@ -88,7 +88,8 @@ END {
if (min < avpkt) min = avpkt
dqb = 8 * min;
max = int(2.1*min)
- rburst = int((1.5*min + max) / (3 * avpkt))
+ rburst = int((2*min + max) / (3 * avpkt))
+ if (rburst < 2) rburst = 2
print "red min " min " max " max " burst " rburst " avpkt " avpkt " limit " dqb " probability 0.04 ecn"
}
}