#17807: qos codel patch noecn to eth1 (wan) and qos-scripts question
-------------------------+------------------------
  Reporter:  robnitro@…  |      Owner:  developers
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:
 Component:  packages    |    Version:  Trunk
Resolution:              |   Keywords:
-------------------------+------------------------

Comment (by fgimenez):

 I posted my patch on the forums:
 https://forum.openwrt.org/viewtopic.php?pid=258254#p258254

 It does the ECN part and it also calculates target and interval using some
 math I borrowed from CeroWRT.

 This is what I'm using at home:

 {{{
 --- tcrules.awk.orig    2014-09-20 16:47:39.000000000 -0300
 +++ tcrules.awk    2014-10-26 21:18:22.000000000 -0300
 @@ -15,6 +15,9 @@
      maxrate[n] = ($6 * linespeed / 100)
      qdisc[n] = $7
      filter[n] = $8
 +    target = (12320 / linespeed)
 +    if (target < 5) { target = 5 }
 +    if (target > 10) { interval = 5 + (10 * target) } else { interval =
 (target + 95) }
  }

  END {
 @@ -79,7 +82,10 @@
      # leaf qdisc
      avpkt = 1200
      for (i = 1; i <= n; i++) {
 -        print "tc qdisc add dev "device" parent 1:"class[i]"0 handle
 "class[i]"00: fq_codel limit 800 quantum 300"
 +       if (device != "ifb0") {
 +        noecn="noecn"
 +       }
 +       print "tc qdisc add dev "device" parent 1:"class[i]"0 handle
 "class[i]"00: fq_codel limit 800 quantum 300 target "target"ms interval
 "interval"ms "noecn
      }

      # filter rule
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/17807#comment:21>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to