aboutsummaryrefslogtreecommitdiffstats
path: root/package/qos-scripts/files/usr/lib/qos/generate.sh
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2010-02-26 17:22:53 +0000
committerTravis Kemen <thepeople@openwrt.org>2010-02-26 17:22:53 +0000
commit42ce671058d75a0797f6cd56e9844105e23e5e14 (patch)
treee3008f87ecabffcbdae7671dcfc25ecf9aceb108 /package/qos-scripts/files/usr/lib/qos/generate.sh
parent159d57a5b40b59f586bf0103bdb44b1c5c6d53c2 (diff)
downloadupstream-42ce671058d75a0797f6cd56e9844105e23e5e14.tar.gz
upstream-42ce671058d75a0797f6cd56e9844105e23e5e14.tar.bz2
upstream-42ce671058d75a0797f6cd56e9844105e23e5e14.zip
This patch allows the user to specify esfq as the leaf qdisc, as well as perturb and hash parameters, closes #1893
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19874 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/qos-scripts/files/usr/lib/qos/generate.sh')
-rwxr-xr-xpackage/qos-scripts/files/usr/lib/qos/generate.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/qos-scripts/files/usr/lib/qos/generate.sh b/package/qos-scripts/files/usr/lib/qos/generate.sh
index 9fc146b81c..02c3933d19 100755
--- a/package/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/package/qos-scripts/files/usr/lib/qos/generate.sh
@@ -315,8 +315,10 @@ start_interface() {
cls_var maxrate "$class" limitrate $dir 100
cls_var prio "$class" priority $dir 1
cls_var avgrate "$class" avgrate $dir 0
+ cls_var qdisc_esfq "$class" qdisc_esfq $dir ""
+ [ "$qdisc_esfq" != "" ] && add_insmod sch_esfq
config_get classnr "$class" classnr
- append cstr "$classnr:$prio:$avgrate:$pktsize:$pktdelay:$maxrate" "$N"
+ append cstr "$classnr:$prio:$avgrate:$pktsize:$pktdelay:$maxrate:$qdisc_esfq" "$N"
done
append ${prefix}q "$(tcrules)" "$N"
export dev_${dir}="ifconfig $dev up txqueuelen 5 >&- 2>&-