From: Antonios Chalkiopoulos Date: Thu, 30 Dec 2004 17:07:20 +0000 Subject: [LARTC] HTB + GRED (santa clauss plz help me out) Message-Id: <200412301907.21005.alg0@iit.demokritos.gr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: lartc@vger.kernel.org I 've been trynig for a long time now to make HTB and GRED to work togethen. The problem beeing that GRED doesn't use handles (instead it uses DP:1 DP:2 etc) i can not preperly filter traffic to them. Tomas Graf suggested to use the tc_index index of u32 classifier so dear Sant .. i am currently with the following scripts that works! But when i try to add an HTB before the GRED, everything goes to hell. tc qdisc add dev $Dev handle 1:0 root dsmark indices 16 set_tc_index tc filter add dev $Dev parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2  pass_on tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 10 tcindex classid  1:1 tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 12 tcindex classid  1:2 tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 14 tcindex classid  1:3 tc qdisc add dev $Dev parent 1:0 gred setup DPs 3 default 30 tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst 12  avpkt 256 bandwidth 10Mbit DP 1probability 0.01 tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst 12  avpkt 256 bandwidth 10Mbit DP 2probability 0.01 tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst 12  avpkt 256 bandwidth 10Mbit DP 3probability 0.01 any ideas guys? Would really apreciate it Thanks alg0 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/