netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re:is tbf really classless ?
@ 2010-07-03  9:22 arimus.uk
  2010-07-03  9:38 ` is " Paul Jack
  0 siblings, 1 reply; 2+ messages in thread
From: arimus.uk @ 2010-07-03  9:22 UTC (permalink / raw)
  To: aunty, netfilter

Yes. Tbf is classless... Least on my assorted boxes. (wide range of kernels and cant think of one with classful tbf).

Sorry for top post using mobile phone and too awkward to edit...
--- Original Message ---
From: Paul Jack <aunty@edenrdfarm.com>
Sent: Sat, 03 Jul 2010 09:17:54 Localtime
To: netfilter@vger.kernel.org
Subject: is tbf really classless ?

hi all

i am completely new to this so am probably missing something terribly 
obvious. I have found in "A Practical Guide to Linux Traffic Control" by 
Jason Boxman . .

"As of Linux 2.6.1, tbf is now a classful qdisc. By default it will 
behave as it did in prior versions of Linux. The classful variant 
automatically creates a class with a minor node of 1. The major node 
number will be what you assigned to the tbf qdisc. You can attach both 
classless and classful qdiscs to the new tbf in 2.6.1 and later."

and also in the comments within net/sched/sch_tbf.c . .

 * Authors:    Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
 *        Dmitry Torokhov <dtor@mail.ru> - allow attaching inner qdiscs -
 *                         original idea by Martin Devera

and . .

    With classful TBF, limit is just kept for backwards compatibility.
    It is passed to the default bfifo qdisc - if the inner qdisc is
    changed the limit is not effective anymore.

everywhere else i have looked only talks of tbf as a classless qdisc - 
even the man page.

I have run:

root@vanessa:~# tc qdisc add dev wlan0 root handle 1:0 tbf rate 100mbit 
burst 10kb limit 1kb

and when i try to add a class to this root qdisc i get:

root@vanessa:~# tc class add dev wlan0 parent 1:0 classid 1:1 tbf rate 
24kbit burst 1kbit limit 1
Error: Qdisc "tbf" is classless.

was tbf's classfullnes only temporary ? is there something wrong with my 
kernel ?
i am running kernel 2.6.29.6-smp on slackware 13.0

all help greatly appreciated,
aunty


--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: is tbf really classless ?
  2010-07-03  9:22 Re:is tbf really classless ? arimus.uk
@ 2010-07-03  9:38 ` Paul Jack
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Jack @ 2010-07-03  9:38 UTC (permalink / raw)
  Cc: netfilter

what then do the excerpts of documentation that i included mean ?

arimus.uk@gmail.com wrote:
> Yes. Tbf is classless... Least on my assorted boxes. (wide range of kernels and cant think of one with classful tbf).
>
> Sorry for top post using mobile phone and too awkward to edit...
>   

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-03  9:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-03  9:22 Re:is tbf really classless ? arimus.uk
2010-07-03  9:38 ` is " Paul Jack

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