All of lore.kernel.org
 help / color / mirror / Atom feed
From: rubens@etica.net
To: lartc@vger.kernel.org
Subject: [LARTC] tcng issue
Date: Thu, 20 Nov 2003 22:12:55 +0000	[thread overview]
Message-ID: <marc-lartc-106936752611870@msgid-missing> (raw)


Hi.

After migrating a tc-based script to tcc (from the tcng package), we are
having a filter issue. The script generated by tcc with tc commands is not
configuring the tc filters; "tc filter show" results in none after the
script is run, although no error message is generated from the "tc filter
add". Classes and qdiscs seem to be ok.

This is the output of tcc:

tc qdisc del dev eth1 root

# ================ Device eth1 ================

tc qdisc add dev eth1 handle 1:0 root htb
tc class add dev eth1 parent 1:0 classid 1:1 htb rate 16000bps burst 6144
tc class add dev eth1 parent 1:1 classid 1:2 htb rate 4000bps ceil 12000bps burst 6144 prio 1
tc qdisc add dev eth1 handle 2:0 parent 1:2 sfq perturb 10
tc class add dev eth1 parent 1:1 classid 1:3 htb rate 4000bps ceil 4000bps burst 6144 prio 1
tc qdisc add dev eth1 handle 3:0 parent 1:3 sfq perturb 10
tc class add dev eth1 parent 1:1 classid 1:4 htb rate 4000bps ceil 4000bps burst 6144 prio 1
tc qdisc add dev eth1 handle 4:0 parent 1:4 sfq perturb 10
tc class add dev eth1 parent 1:1 classid 1:5 htb rate 4000bps ceil 8000bps burst 6144 prio 2
tc qdisc add dev eth1 handle 5:0 parent 1:5 sfq perturb 10
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 1:0:0 u32 divisor 1
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 1:0:0
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 1:0:1 u32 ht 1:0:0 match u8 0x0 0x2 at 13 classid 1:2
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 2:0:0 u32 divisor 1
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 2:0:0
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 2:0:1 u32 ht 2:0:0 match u8 0x10 0x10 at 13 classid 1:2
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 3:0:0 u32 divisor 1
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 3:0:0
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 3:0:1 u32 ht 3:0:0 match u16 0x16 0xffff at 2 classid 1:2
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 match u8 0x10 0xff at 1 classid 1:2
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 4:0:0 u32 divisor 1
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 4:0:0
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 4:0:1 u32 ht 4:0:0 match u16 0x19 0xffff at 2 classid 1:3
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 5:0:0 u32 divisor 1
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 5:0:0
tc filter add dev eth1 parent 1:1 protocol all prio 1 handle 5:0:1 u32 ht 5:0:0 match u16 0x50 0xffff at 2 classid 1:4
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 classid 1:5
tc filter add dev eth1 parent 1:1 protocol all prio 1 u32 match u32 0x0 0x0 at 0 classid 1:2
tc qdisc del dev imq0 root

# ================ Device imq0 ================

tc qdisc add dev imq0 handle 1:0 root htb
tc class add dev imq0 parent 1:0 classid 1:1 htb rate 32000bps burst 6144
tc class add dev imq0 parent 1:1 classid 1:2 htb rate 8000bps ceil 32000bps burst 6144 prio 1
tc qdisc add dev imq0 handle 2:0 parent 1:2 sfq perturb 10
tc class add dev imq0 parent 1:1 classid 1:3 htb rate 8000bps ceil 32000bps burst 6144 prio 1
tc qdisc add dev imq0 handle 3:0 parent 1:3 sfq perturb 10
tc class add dev imq0 parent 1:1 classid 1:4 htb rate 8000bps ceil 32000bps burst 6144 prio 2
tc qdisc add dev imq0 handle 4:0 parent 1:4 sfq perturb 10
tc class add dev imq0 parent 1:1 classid 1:5 htb rate 8000bps ceil 32000bps burst 6144 prio 2
tc qdisc add dev imq0 handle 5:0 parent 1:5 sfq perturb 10
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 1:0:0 u32 divisor 1
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 1:0:0
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 1:0:1 u32 ht 1:0:0 match u8 0x0 0x2 at 13 classid 1:2
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 2:0:0 u32 divisor 1
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 2:0:0
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 2:0:1 u32 ht 2:0:0 match u8 0x10 0x10 at 13 classid 1:2
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 match u8 0x10 0xff at 1 classid 1:2
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 3:0:0 u32 divisor 1
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 3:0:0
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 3:0:1 u32 ht 3:0:0 match u16 0x19 0xffff at 2 classid 1:3
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 4:0:0 u32 divisor 1
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 4:0:0
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 4:0:1 u32 ht 4:0:0 match u16 0x16 0xffff at 2 classid 1:3
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 5:0:0 u32 divisor 1
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 5:0:0
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 5:0:1 u32 ht 5:0:0 match u16 0x16 0xffff at 0 classid 1:3
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 6:0:0 u32 divisor 1
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 6:0:0
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 6:0:1 u32 ht 6:0:0 match u16 0x50 0xffff at 0 classid 1:4
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 7:0:0 u32 divisor 1
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 7:0:0
tc filter add dev imq0 parent 1:1 protocol all prio 1 handle 7:0:1 u32 ht 7:0:0 match u16 0x1bb 0xffff at 0 classid 1:4
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u8 0x6 0xff at 9 classid 1:5
tc filter add dev imq0 parent 1:1 protocol all prio 1 u32 match u32 0x0 0x0 at 0 classid 1:2

Any hints ?


Rubens


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2003-11-20 22:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-20 22:12 rubens [this message]
2003-11-21  5:34 ` [LARTC] tcng issue Martin A. Brown
2003-11-21 13:43 ` rubens

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=marc-lartc-106936752611870@msgid-missing \
    --to=rubens@etica.net \
    --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 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.