netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dtor_core@ameritech.net>
To: hadi@cyberus.ca
Cc: Jaume Catarineu <jaume.catarineu@upf.edu>,
	"David S. Miller" <davem@redhat.com>,
	netdev@oss.sgi.com
Subject: Re: Kernel BUG: Qos seg. fault
Date: Mon, 24 May 2004 14:25:53 -0700 (PDT)	[thread overview]
Message-ID: <20040524212553.52149.qmail@web80507.mail.yahoo.com> (raw)

Jamal wrote:

> On Mon, 2004-05-24 at 16:14, Dmitry Torokhov wrote:
> 
> > prio qdisc can have several child qdiscs attached to it so I can see
> > why it supports filters. But what is the point of TBF having filter
> > attached? TBF either drops packet or passes it to its only child,
> > there isn't anything to filter. Or am I missing something?
> 
> If the TBF is pretending even in the slightest to be a classful qdisc
> which i believe it does in the latest reincarnation i think it would be
> a good idea to maintain the semantics of classful qdiscs - maintain a
> filter list.
> What do you mean it will only pass it to its child? Why were you trying
> to attach a filter to it then? Sorry, I havent paid attention to how it
> was supposed to be used.

The only reason TBF has a class is that within current framework 
net/sched framework child qdisc can only be attached to a class.
So TBF defines a class (there is only one per TBF qdisc, it's
created automatically and can not be changed) much like sch_prio
does. The difference is that sch_prio can have up to TCQ_PRIO_BANDS
children so implementing filters for sch_prio makes sense. TBF has
one and only one child qdisc. It starts with noop_qdisc from
sch_generic and later user can change to to something else, like
original poster did.

Since TBF has only one child no matter what I contend that 
implementing filters for TBF does not make sense, filters should
be attached either to TBF's child ot to TBF's parent but not to
TBF itself.

Dmitry

             reply	other threads:[~2004-05-24 21:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-24 21:25 Dmitry Torokhov [this message]
2004-05-24 21:32 ` Kernel BUG: Qos seg. fault jamal
2004-05-24 21:42   ` jamal
  -- strict thread matches above, loose matches on Subject: below --
2004-05-24 21:53 Dmitry Torokhov
2004-05-24 22:09 ` jamal
2004-05-25  2:06   ` Jaume Catarineu
2004-05-25  7:07   ` Dmitry Torokhov
2004-05-24 20:14 Dmitry Torokhov
2004-05-24 19:29 Dmitry Torokhov
2004-05-24 19:47 ` jamal
2004-05-24 11:57 Jaume Catarineu
2004-05-24 18:11 ` jamal
2004-05-24 19:19 ` Francois Romieu
2004-05-25  0:49   ` Jaume Catarineu

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=20040524212553.52149.qmail@web80507.mail.yahoo.com \
    --to=dtor_core@ameritech.net \
    --cc=davem@redhat.com \
    --cc=hadi@cyberus.ca \
    --cc=jaume.catarineu@upf.edu \
    --cc=netdev@oss.sgi.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).