From: jacob martinson <martinson.jacob@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] question about filter priorities and "tc -d filter show" output
Date: Thu, 27 Jan 2005 22:04:58 +0000 [thread overview]
Message-ID: <5b74795905012714043accb546@mail.gmail.com> (raw)
In-Reply-To: <5b747959050127100044c0f@mail.gmail.com>
forgot the [LARTC] prefix in the subject...
On Thu, 27 Jan 2005 12:00:14 -0600, jacob martinson
<martinson.jacob@gmail.com> wrote:
> The interface is setup like this:
> # tc qdisc del dev eth0 root
> # tc qdisc add dev eth0 root handle 1: htb default 2
> # tc class add dev eth0 parent 1: classid 1:2 htb rate 20mbit ceil 20mbit
>
> If I add a second class and a filter to send traffic to it like this:
> # tc class add dev eth0 parent 1: classid 1:130 htb rate 1Mbit ceil 1Mbit
> # tc filter add dev eth0 protocol ip parent 1:0 prio 130 u32 match ip dst \
> > 1.1.1.10 flowid 1:130
>
> The output of "tc -d filter show dev eth0" makes sense to me and looks
> like this:
> filter parent 1: protocol ip pref 130 u32
> filter parent 1: protocol ip pref 130 u32 fh 800: ht divisor 1
> filter parent 1: protocol ip pref 130 u32 fh 800::800 order 2048 key
> ht 800 bkt 0 flowid 1:130
> match 0101010a/ffffffff at 16
>
> If I add a third class and a filter for it, things start looking weird to me:
>
> # tc filter add dev eth0 protocol ip parent 1:0 prio 131 u32 match ip
> dst 1.1.1.11 \
> > flowid 1:131
> # tc class add dev eth0 parent 1: classid 1:132 htb rate 1Mbit ceil 1Mbit
> # tc -d filter show dev eth0
> filter parent 1: protocol ip pref 130 u32
> filter parent 1: protocol ip pref 130 u32 fh 801: ht divisor 1
> filter parent 1: protocol ip pref 130 u32 fh 801::800 order 2048 key
> ht 801 bkt 0 flowid 1:131
> match 0101010b/ffffffff at 16
> filter parent 1: protocol ip pref 130 u32 fh 800: ht divisor 1
> filter parent 1: protocol ip pref 130 u32 fh 800::800 order 2048 key
> ht 800 bkt 0 flowid 1:130
> match 0101010a/ffffffff at 16
> filter parent 1: protocol ip pref 131 u32
> filter parent 1: protocol ip pref 131 u32 fh 801: ht divisor 1
> filter parent 1: protocol ip pref 131 u32 fh 801::800 order 2048 key
> ht 801 bkt 0 flowid 1:131
> match 0101010b/ffffffff at 16
> filter parent 1: protocol ip pref 131 u32 fh 800: ht divisor 1
> filter parent 1: protocol ip pref 131 u32 fh 800::800 order 2048 key
> ht 800 bkt 0 flowid 1:130
> match 0101010a/ffffffff at 16
>
> If N is the number of filters I have on the root qdisc, I get
> N-squared entries from the "show filter" command.
>
> Can someone explain how this works or point me to documentation that
> explains it? My system doesn't have a "tc-filters" manpage.
>
> Thanks!
>
> -Jacob
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2005-01-27 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-27 18:00 [LARTC] question about filter priorities and "tc -d filter show" output jacob martinson
2005-01-27 22:04 ` jacob martinson [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=5b74795905012714043accb546@mail.gmail.com \
--to=martinson.jacob@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox