netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Denys Fedoryschenko <denys@visp.net.lb>
To: netdev@vger.kernel.org, alexander.h.duyck@intel.com, shemminger@osdl.org
Subject: [BUG?] iproute2/skbedit bug?
Date: Wed, 4 Mar 2009 21:46:37 +0200	[thread overview]
Message-ID: <200903042146.37807.denys@visp.net.lb> (raw)

Hi

trying to do test case:

defaulthost ~ # tc qdisc del dev eth0 root handle 1: htb
defaulthost ~ # tc qdisc add dev eth0 root handle 1: htb
defaulthost ~ # tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100Mbit 
ceil 100Mbit
defaulthost ~ #
defaulthost ~ # tc class add dev eth0 parent 1:1 classid 1:2 htb rate 100Mbit 
ceil 100Mbit
defaulthost ~ # tc qdisc add dev eth0 parent 1:2 handle 2: pfifo limit 1000
defaulthost ~ #
defaulthost ~ #
defaulthost ~ # tc filter add dev eth0 pref 200 parent 1: protocol ip u32 
match ip src 1.1.1.1/32 flowid 1:1 action skbedit priority 10
defaulthost ~ # tc filter add dev eth0 pref 201 parent 1: protocol ip u32 
match ip src 1.1.1.2/32 flowid 1:2 action skbedit priority 11
RTNETLINK answers: File exists
We have an error talking to the kernel

As soon as skbedit involved, i am getting this strange result "File exists".
If i change(remove) flowid, classes - seems doesn't matter

Result looks like this:
defaulthost ~ # tc -s filter show dev eth0
filter parent 1: protocol ip pref 200 u32
filter parent 1: protocol ip pref 200 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 200 u32 fh 800::800 order 2048 key ht 800 
bkt 0 flowid 1:1  (rule hit 460 success 0)
  match 01010101/ffffffff at 12 (success 0 )
        action order 1:  skbedit priority :10 installed 82 sec used 82 sec      
Action statistics:
        Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
        rate 0bit 0pps backlog 0b 0p requeues 0

filter parent 1: protocol ip pref 201 u32
filter parent 1: protocol ip pref 201 u32 fh 801: ht divisor 1

If i remove skbedit:
defaulthost ~ # tc filter add dev eth0 pref 200 parent 1: protocol ip u32 
match ip src 1.1.1.1/32 flowid 1:1
defaulthost ~ #                                                                                                                            


             reply	other threads:[~2009-03-04 19:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-04 19:46 Denys Fedoryschenko [this message]
2009-03-04 21:36 ` [BUG?] iproute2/skbedit bug? Duyck, Alexander H
2009-03-04 21:42   ` Denys Fedoryschenko
2009-03-04 21:46     ` Duyck, Alexander H
2009-03-04 21:48       ` Denys Fedoryschenko
2009-03-04 21:54       ` Denys Fedoryschenko

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=200903042146.37807.denys@visp.net.lb \
    --to=denys@visp.net.lb \
    --cc=alexander.h.duyck@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@osdl.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;
as well as URLs for NNTP newsgroup(s).