All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Marcone <fabio.marcone@duet.it>
To: netfilter@vger.kernel.org
Subject: tc filters info
Date: Wed, 27 May 2009 11:24:08 +0200	[thread overview]
Message-ID: <4A1D06B8.8020500@duet.it> (raw)

Hi *,
I'm testing a HTB+PRIO setup, this is the script:

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 300Kbit ceil 
300Kbit burst 6k cburst 64k quantum 1600
tc class add dev eth0 parent 1:0 classid 1:2 htb rate 100Kbit ceil 
100Kbit burst 6k cburst 64k quantum 1600
tc qdisc add dev eth0 parent 1:1 handle 10: prio bands 3
tc filter add dev eth0 parent 1:0 prio 0 protocol ip handle 1 fw flowid 1:1
tc filter add dev eth0 parent 1:0 prio 2 protocol ip handle 2 fw flowid 1:2
tc filter add dev eth0 parent 1:0 prio 1 protocol ip handle 3 fw flowid 1:1
tc filter add dev eth0 parent 10:0 prio 0 protocol ip handle 1 fw flowid 
10:1
tc filter add dev eth0 parent 10:0 prio 0 protocol ip handle 2 fw flowid 
10:2
tc filter add dev eth0 parent 10:0 prio 1 protocol ip handle 3 fw flowid 
10:3


I don't understand this strange (for me) behaviour: I have 6 filter 
rules, if I remove rules related to class 1:x, prio qdisc doesn't 
receive packets and all packets are sent using htb qdisc.

Why? I don't understand why I have to add rules about 1:x class to send 
packets via prio qdisc. Tc filter rules about 10:x aren't enough?

Thanks in advance,
Fabio




                 reply	other threads:[~2009-05-27  9:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4A1D06B8.8020500@duet.it \
    --to=fabio.marcone@duet.it \
    --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.