Skip to content

Commit

Permalink
add support for disabling the shaper on up or downlink
Browse files Browse the repository at this point in the history
since jg for example has 100Mbit link, htb can't run that fast.
Nor is there much of a bloat problem from that direction at that speed.

So, addd the ability to disable shaping in one direction or the other
by specifying a 0 for that shaper param.
  • Loading branch information
Dave Taht committed Dec 2, 2013
1 parent 0fca0cd commit 14e05d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion net/aqm-scripts/files/usr/lib/aqm/functions.sh
Expand Up @@ -108,7 +108,7 @@ get_flows() {
[ $1 -gt 69999 ] && FLOWS=512
[ $1 -gt 99999 ] && FLOWS=1024
case $QDISC in
codel|ns2_codel|pie) ;;
codel|ns2_codel|pie|bfifo) ;;
fq_codel|*fq_codel|sfq) echo flows $FLOWS ;;
esac
fi
Expand Down
4 changes: 2 additions & 2 deletions net/aqm-scripts/files/usr/lib/aqm/simple.qos
Expand Up @@ -146,8 +146,8 @@ $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \

do_modules
ipt_setup
egress
ingress
[ "$UPLINK" != "0" ] && egress
[ "$DOWNLINK" != "0" ] && ingress

# References:
# This alternate shaper attempts to go for 1/u performance in a clever way
Expand Down
4 changes: 2 additions & 2 deletions net/aqm-scripts/files/usr/lib/aqm/simplest.qos
Expand Up @@ -51,8 +51,8 @@ $TC filter add dev $IFACE parent ffff: protocol all prio 10 u32 \
}

do_modules
egress
ingress
[ "$UPLINK" != "0" ] && egress
[ "$DOWNLINK" != "0" ] && ingress

# References:
# This alternate shaper attempts to go for 1/u performance in a clever way
Expand Down

0 comments on commit 14e05d4

Please sign in to comment.