From: Andreas Klauer Date: Wed, 02 Feb 2005 03:50:43 +0000 Subject: Re: [LARTC] can't understand strange PRIO behaviour Message-Id: <200502020450.43552.Andreas.Klauer@metamorpher.de> List-Id: References: <1107315964.718.20.camel@Charon> In-Reply-To: <1107315964.718.20.camel@Charon> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Wednesday 02 February 2005 04:46, Viktor Horvath wrote: > tc qdisc add dev ppp0 root handle 1: prio bands 2 priomap 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 > # Create the two PRIO sub-qdiscs > tc qdisc add dev ppp0 parent 1:1 handle 10: prio bands 2 priomap 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 > tc qdisc add dev ppp0 parent 1:2 handle 20: prio bands 2 priomap 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 [...] > # catch-all > tc filter add dev ppp0 protocol ip parent 1: prio 2 u32 match ip src > 0.0.0.0/0 flowid 10:2 I don't know if it is a bug or whatever, but PRIO doesn't like alien filters. You may only put traffic into a class of the qdisc you attached the filter to. At least this is how it works on my machine (2.4 kernel). So using these filter rules should work as expected: tc filter add dev ppp0 protocol ip parent 1: prio 2 u32 match ip src 0.0.0.0/0 flowid 1:1 tc filter add dev ppp0 protocol ip parent 10: prio 2 u32 match ip src 0.0.0.0/0 flowid 10:2 HTH Andreas _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/