* [Cerowrt-devel] ?Bug in cerowr-3.10t cake sqm-scripts
@ 2015-05-02 9:28 Kevin Darbyshire-Bryant
2015-05-02 9:38 ` Dave Taht
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Darbyshire-Bryant @ 2015-05-02 9:28 UTC (permalink / raw)
To: cerowrt-devel
[-- Attachment #1: Type: text/plain, Size: 1646 bytes --]
See patch for your perusal but it looks like ingress qdisc is incorrectly applied to the source interface
rather than the ifb interface. Running /etc/init.d/sqm stop/start manually on openwrt threw an error.
With the patch the right interfaces have the right qdiscs and bandwidths.
diff --git a/net/sqm-scripts/files/usr/lib/sqm/simple.qos b/net/sqm-scripts/files/usr/lib/sqm/simple.qos
index faeb4ec..3c5f2b5 100755
--- a/net/sqm-scripts/files/usr/lib/sqm/simple.qos
+++ b/net/sqm-scripts/files/usr/lib/sqm/simple.qos
@@ -157,7 +157,7 @@ then
sqm_logger "Do not perform DSCP based filtering on ingress. (1-tier classification)"
# Revert to no dscp based filtering
case $QDISC in
- cake*) $TC qdisc add dev $IFACE root $QDISC bandwidth ${DOWNLINK}kbit besteffort ;;
+ cake*) $TC qdisc add dev $DEV root $QDISC bandwidth ${DOWNLINK}kbit besteffort ;;
*)
$TC qdisc add dev $DEV root handle 1: `get_stab_string` htb default 10
$TC class add dev $DEV parent 1: classid 1:1 htb $LQ rate ${DOWNLINK}kbit ceil ${DOWNLINK}kbit `get_htb_adsll_string`
@@ -169,7 +169,7 @@ esac
else
sqm_logger "Perform DSCP based filtering on ingress. (3-tier classification)"
case $QDISC in
- cake*) $TC qdisc add dev $IFACE root $QDISC bandwidth ${DOWNLINK}kbit $CAKE_OPTS;;
+ cake*) $TC qdisc add dev $DEV root $QDISC bandwidth ${DOWNLINK}kbit $CAKE_OPTS;;
*)
$TC qdisc add dev $DEV root handle 1: `get_stab_string` htb default 12
$TC class add dev $DEV parent 1: classid 1:1 htb $LQ rate ${CEIL}kbit ceil ${CEIL}kbit `get_htb_adsll_string`
--
Thanks,
Kevin@Darbyshire-Bryant.me.uk
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4791 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Cerowrt-devel] ?Bug in cerowr-3.10t cake sqm-scripts
2015-05-02 9:28 [Cerowrt-devel] ?Bug in cerowr-3.10t cake sqm-scripts Kevin Darbyshire-Bryant
@ 2015-05-02 9:38 ` Dave Taht
0 siblings, 0 replies; 2+ messages in thread
From: Dave Taht @ 2015-05-02 9:38 UTC (permalink / raw)
To: Kevin Darbyshire-Bryant; +Cc: cerowrt-devel
fix committed and pushed. Thx for the spot!
On Sat, May 2, 2015 at 2:28 AM, Kevin Darbyshire-Bryant
<kevin@darbyshire-bryant.me.uk> wrote:
> See patch for your perusal but it looks like ingress qdisc is incorrectly applied to the source interface
> rather than the ifb interface. Running /etc/init.d/sqm stop/start manually on openwrt threw an error.
>
> With the patch the right interfaces have the right qdiscs and bandwidths.
>
>
> diff --git a/net/sqm-scripts/files/usr/lib/sqm/simple.qos b/net/sqm-scripts/files/usr/lib/sqm/simple.qos
> index faeb4ec..3c5f2b5 100755
> --- a/net/sqm-scripts/files/usr/lib/sqm/simple.qos
> +++ b/net/sqm-scripts/files/usr/lib/sqm/simple.qos
> @@ -157,7 +157,7 @@ then
> sqm_logger "Do not perform DSCP based filtering on ingress. (1-tier classification)"
> # Revert to no dscp based filtering
> case $QDISC in
> - cake*) $TC qdisc add dev $IFACE root $QDISC bandwidth ${DOWNLINK}kbit besteffort ;;
> + cake*) $TC qdisc add dev $DEV root $QDISC bandwidth ${DOWNLINK}kbit besteffort ;;
> *)
> $TC qdisc add dev $DEV root handle 1: `get_stab_string` htb default 10
> $TC class add dev $DEV parent 1: classid 1:1 htb $LQ rate ${DOWNLINK}kbit ceil ${DOWNLINK}kbit `get_htb_adsll_string`
> @@ -169,7 +169,7 @@ esac
> else
> sqm_logger "Perform DSCP based filtering on ingress. (3-tier classification)"
> case $QDISC in
> - cake*) $TC qdisc add dev $IFACE root $QDISC bandwidth ${DOWNLINK}kbit $CAKE_OPTS;;
> + cake*) $TC qdisc add dev $DEV root $QDISC bandwidth ${DOWNLINK}kbit $CAKE_OPTS;;
> *)
> $TC qdisc add dev $DEV root handle 1: `get_stab_string` htb default 12
> $TC class add dev $DEV parent 1: classid 1:1 htb $LQ rate ${CEIL}kbit ceil ${CEIL}kbit `get_htb_adsll_string`
>
>
>
> --
> Thanks,
>
> Kevin@Darbyshire-Bryant.me.uk
>
>
>
> _______________________________________________
> Cerowrt-devel mailing list
> Cerowrt-devel@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cerowrt-devel
>
--
Dave Täht
Open Networking needs **Open Source Hardware**
https://plus.google.com/u/0/+EricRaymond/posts/JqxCe2pFr67
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-02 9:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02 9:28 [Cerowrt-devel] ?Bug in cerowr-3.10t cake sqm-scripts Kevin Darbyshire-Bryant
2015-05-02 9:38 ` Dave Taht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox