summaryrefslogtreecommitdiff
path: root/package
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
commit3c4dd6fb024967d1b3bb605ba2ef9c619c95daf4 (patch)
tree9602b0e2191f8b4bfe4a935ef044737b3ea4ae9f /package
parent35967a174c2bbeec5c88897542c6de22a397c67a (diff)
downloadmtk-20170518-3c4dd6fb024967d1b3bb605ba2ef9c619c95daf4.zip
mtk-20170518-3c4dd6fb024967d1b3bb605ba2ef9c619c95daf4.tar.gz
mtk-20170518-3c4dd6fb024967d1b3bb605ba2ef9c619c95daf4.tar.bz2
qos-scripts: fix RED burst calculation
SVN-Revision: 6878
Diffstat (limited to 'package')
-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 8220d99..d236b2d 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"
}
}