All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Jack <aunty@edenrdfarm.com>
To: netfilter@vger.kernel.org
Subject: is tbf really classless ?
Date: Sat, 03 Jul 2010 17:17:54 +0800	[thread overview]
Message-ID: <4C2F0042.2020209@edenrdfarm.com> (raw)

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



             reply	other threads:[~2010-07-03  9:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-03  9:17 Paul Jack [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-07-03  9:19 is tbf really classless ? Paul Jack
2010-07-03  9:22 arimus.uk
2010-07-03  9:38 ` is " Paul Jack

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=4C2F0042.2020209@edenrdfarm.com \
    --to=aunty@edenrdfarm.com \
    --cc=netfilter@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.