All of lore.kernel.org
 help / color / mirror / Atom feed
* filter on prio qdisc fails
@ 2013-07-03 11:56 Anand Raj Manickam
  2013-07-03 12:22 ` Nicolas Sebrecht
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Anand Raj Manickam @ 2013-07-03 11:56 UTC (permalink / raw)
  To: lartc

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.

Thanks,
Anand

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-04 13:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-07-04 13:50 ` Anand Raj Manickam

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.