Commit 447707cf authored by Timo Teräs's avatar Timo Teräs

main/iproute2-qos: make certain tuning configurable, and saner default

pfifo queue limit was way too low, and htb r2q could be bigger too.
make it possible to override it from conf.d and fix the defaults.
parent 1e67fc9e
# Contributor: <iilluzion@gmail.com>
# Maintainer: <iilluzion@gmail.com>
pkgname=iproute2-qos
pkgver=0.4
pkgrel=6
pkgver=0.5
pkgrel=0
pkgdesc="Scripts to set up quality of service with iproute2"
url="http://git.alpinelinux.org/cgit/aports"
arch="noarch"
......@@ -24,15 +24,15 @@ package() {
"$pkgdir"/etc/conf.d/qos.ifb0.sample
}
md5sums="ab98a71be7061382c722851b16b9c20f qos.initd
md5sums="7ce518659968574121395fd7ab7081e7 qos.initd
79cecb47b3d1f623d2f6790044b3afee qos.eth0.sample
f1233d4e7e728f16b26302ecb03e418e qos.ifb0.sample
785aff5d4284c47038a009797c576e34 setup-qos"
sha256sums="ca5a74e398335bc49868964a43448f4e90d2a08518364a31b0af81375ebc509c qos.initd
sha256sums="acb08087367d1211cd8f7c30cb44ffc2b1f50baefce077b440e0facc3c9544ed qos.initd
2bc8c94374024bb1f58fcbfdc0996b615146fb51c415b70593352a6823119455 qos.eth0.sample
c141f41178d2794f873db12fbd609ed94ffdc10df12ed1039e55991bdd87d4ce qos.ifb0.sample
b54a81f973ba59031d317bef4a80bf6c70a8a53843f4d6301b1c14fef7be2718 setup-qos"
sha512sums="662de55a64ab82ff3b2cf3a169a6b9897e313702509f770ba28d965bdb388fb113f002aed88edbf32ad518c781a52263772b4161e1716cf233459b69228d0f27 qos.initd
sha512sums="ac329c26b44e0e7ff6a1469626fbd166351d05135b9e688fcda7d96649e81a65ab927d04f98b80e6b0b9010ecf46fff17b27d67d673f8fa23cab7dd8fd454959 qos.initd
9c4ca37a6416dc6bc4e0b3fbce0568cbd9c31f3c0fde1d3c8b713bf8b185859c948121ddc4182e2b133b29fab63f4d928aca27205568fc656f2787829beef243 qos.eth0.sample
720396a86552de052faad47c22a5b295d00de01ac81fad109c5c6a7bad1b05ac9282a5edc175149361228480aad2d246b2def7fc1fa3d7acdcbe12ea9ef9a2ac qos.ifb0.sample
112a9fd7789751d2feeef9e007accc0138134818f3e13ddb62250e6d77b82a3ba34edcf7b475cf15f89b6c71ea50b943037f61c44ca54e5d1ea304bdc04ff0ae setup-qos"
......@@ -67,8 +67,8 @@ bits()
expand_leaf_qdisc()
{
case "$1" in
pfifo) echo "pfifo limit 5";;
sfq) echo "sfq perturb 10";;
pfifo) echo "pfifo limit ${PFIFO_LIMIT-20480}";;
sfq) echo "sfq perturb ${SFQ_PERTURB-10}";;
red) echo "red min $RED_MIN max $RED_MAX burst $RED_BURST limit $RED_LIMIT probability $RED_PROB avpkt $RED_AVPKT";;
esac
}
......@@ -225,7 +225,7 @@ set_filters()
#
set_htb()
{
$ECHO tc qdisc add dev $DEV root handle 1 htb default 60
$ECHO tc qdisc add dev $DEV root handle 1 htb default 60 r2q ${HTB_R2Q-100}
$ECHO tc class add dev $DEV parent 1: classid 1:2 htb rate $DEV_RATE burst $(($DEV_RATE*5/4))
$ECHO tc class add dev $DEV parent 1:2 classid 1:30 htb rate $WAN_SUB_RATE burst $(($WAN_SUB_RATE*5/4))
$ECHO tc class add dev $DEV parent 1:30 classid 1:40 htb rate $INTERACTIVE_RATE ceil $WAN_SUB_RATE prio 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment