From mboxrd@z Thu Jan 1 00:00:00 1970 From: gypsy Date: Fri, 17 Feb 2006 02:35:42 +0000 Subject: Re: [LARTC] tc filter problem Message-Id: <43F5367E.AEF6EB96@iswest.com> List-Id: References: <1140115731.43f4c913386c7@webmail.paonia.com> In-Reply-To: <1140115731.43f4c913386c7@webmail.paonia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org jeremy@ossnetworks.org wrote: > > Hi, > > I'm using a linux 2.4.29 kernel and having trouble getting my filters added. The > script I'm editing I actually use on a different system currently. Is this a > tc/iproute/kernel type incompatibility? Any ideas how to debug it? > > Thanks, Jeremy > > # create a qdisc on T1 interface > tc qdisc add dev w1g1 root handle 1: htb default 77 > OK > > # create a master class > tc class add dev w1g1 parent 1: classid 1:1 htb rate 1400kbit > OK > > # create a leaf class > tc class add dev w1g1 parent 1:1 classid 1:10 htb rate 175kbit \ > ceil 1400kbit prio 0 > OK > > # create a SFQ qdisc within our subclass > tc qdisc add dev w1g1 parent 1:10 handle 10: sfq perturb 10 > OK > > # filter traffic on iptables mark 10 > tc filter add dev w1g1 parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10 > Error: RTNETLINK answers: Invalid argument I just ran that script on a 2.4.32 kernel and it does not error. Be sure to destruct before running: tc qdisc del dev w1g1 root I doubt that the above is everything in your script. Because there is a problem with prio 49152 (tc -s filter show dev w1g1), my hunch is that you will find that "prio 0" is the problem. Try E.G. "prio 9" for all your filter lines. (Rhetorical: What device is w1g1?) -- gypsy _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc