From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Horvath Date: Wed, 02 Feb 2005 11:57:04 +0000 Subject: Re: [LARTC] can't understand strange PRIO behaviour Message-Id: <1107376926.1549.13.camel@Charon> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-ibW+9An3RDdi18j3COJs" List-Id: References: <1107315964.718.20.camel@Charon> In-Reply-To: <1107315964.718.20.camel@Charon> To: lartc@vger.kernel.org --=-ibW+9An3RDdi18j3COJs Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2005-02-02 at 04:50 +0100, Andreas Klauer wrote: [...] > I don't know if it is a bug or whatever, but PRIO doesn't like alien=20 > filters. You may only put traffic into a class of the qdisc you attached=20 > the filter to. At least this is how it works on my machine (2.4 kernel). Thanks a lot for this help! It's exactly as you described it, and your rules work fine.=20 On Tue, 2005-02-01 at 22:16 -0500, Jason Boxman wrote: [...]=20 > Could you perhaps replace your root prio with a classful tbf from recent=20 > kernel? It would certainly be better. However, I want a strict hierarchy, so that first PRIO is always served before the second one. Probably I'll have to use CBQ instead of HTB or TBF, as after reading the howto, it seems to me you can only there add priorities for the subclasses. Some little suggestions for the howto: (1) Maybe one could include Andreas' sentence to the PRIO section: "You may only put traffic into a class of the qdisc you attached the filter to." One could add that subclasses are not possible in PRIO (this is quite evident, but some newbies could think of it ;-) (2) The third filter command ("catch-all") in section 9.6.1 # tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2 does not work as it doesn't use a filter. One has to use something like # tc filter add dev eth0 protocol ip parent 10: prio 2 u32 match ip src=20 0.0.0.0/0 flowid 10:2 instead. Thanks a lot! Viktor. P.S. Is there a German translation going on? --=-ibW+9An3RDdi18j3COJs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCATseO3SWVYLvaJQRAuUrAJ9sXwBJ8BUoEivV90bG8kxY4YzWDgCeI1PF Mfw1g9J8MjPiwixjkRxbbe0= =8gmq -----END PGP SIGNATURE----- --=-ibW+9An3RDdi18j3COJs-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/