All of lore.kernel.org
 help / color / mirror / Atom feed
From: Viktor Horvath <ViktorHorvath@gmx.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] can't understand strange PRIO behaviour
Date: Wed, 02 Feb 2005 11:57:04 +0000	[thread overview]
Message-ID: <1107376926.1549.13.camel@Charon> (raw)
In-Reply-To: <1107315964.718.20.camel@Charon>

[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]

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 
> 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).

Thanks a lot for this help! It's exactly as you described it, and your
rules work fine. 

On Tue, 2005-02-01 at 22:16 -0500, Jason Boxman wrote:
[...] 
> Could you perhaps replace your root prio with a classful tbf from recent 
> 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 
0.0.0.0/0 flowid 10:2

instead.


Thanks a lot!
Viktor.

P.S. Is there a German translation going on?

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2005-02-02 11:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-02  3:02 [LARTC] can't understand strange PRIO behaviour Viktor Horvath
2005-02-02  3:16 ` Jason Boxman
2005-02-02  3:50 ` Andreas Klauer
2005-02-02 11:57 ` Viktor Horvath [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1107376926.1549.13.camel@Charon \
    --to=viktorhorvath@gmx.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.