All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: filter on prio qdisc fails
Date: Wed, 03 Jul 2013 22:42:18 +0000	[thread overview]
Message-ID: <51D4A8CA.8090006@gmail.com> (raw)
In-Reply-To: <CAEyr1FSt8PH3N8-VfLbMbUCOWxhxMXuMt6OjEDMG64w1b9snRg@mail.gmail.com>

Anand Raj Manickam wrote:
> Hi  ,
> I m attaching a the prio qdisc  and filter to veth device , but the
> packet does not hit the filter , but hits the qdisc and class .
>
> Following is my config :
>
> tc qdisc add dev veth0 root handle 1: prio
>
> tc qdisc add dev veth0 parent 1:2 sfq perturb 16 ( NOT sure if this is needed)
>
> tc filter add dev veth0 parent 1: protocol ip prio 2 u32 match ip
> dport 80 0xffff flowid 1:2
>
>
> I m generating a packet for dport 80 ,
>
> #tc -s -r qdisc show dev veth0
> qdisc prio 1: root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
>   Sent 648 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
>   backlog 0b 0p requeues 0
>
> qdisc sfq 8002: parent 1:2 limit 127p quantum 1514b perturb 16sec
>   Sent 270 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
>   backlog 0b 0p requeues 0
>
> #tc -s -r class show dev veth0
> class prio 1:1 parent 1:
>   Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
>   backlog 0b 0p requeues 0
> class prio 1:2 parent 1: leaf 8002:
>   Sent 270 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
>   backlog 0b 0p requeues 0
> class prio 1:3 parent 1:
>   Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
>   backlog 0b 0p requeues 0
>
> #tc -s -r filter show dev veth0
> filter parent 1: protocol ip pref 2 u32
> filter parent 1: protocol ip pref 2 u32 fh 800:[80000000]  ht divisor 1
> filter parent 1: protocol ip pref 2 u32 fh 800::800[80000800]  order
> 2048 key ht 800 bkt 0 flowid 1:2  (rule hit 0 success 0)
>    match 00000050/0000ffff at 20 (success 0 )
>
>
> Is there something missing in the config which disallows the packet to
> hit the Filter ? I did try this without the sfq class , but directly
> attaching the filter to qdisc.

I guess something strange is happening because of veth - using exactly 
your commands work for me on eth.

I suppose you could also test on a real nic just to see if that works - 
I know nothing about veths.




  parent reply	other threads:[~2013-07-03 22:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 11:56 filter on prio qdisc fails Anand Raj Manickam
2013-07-03 12:22 ` Nicolas Sebrecht
2013-07-03 12:43 ` Anand Raj Manickam
2013-07-03 22:42 ` Andy Furniss [this message]
2013-07-04 13:50 ` Anand Raj Manickam

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=51D4A8CA.8090006@gmail.com \
    --to=adf.lists@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 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.