All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] four tc filter and netem questions
@ 2005-05-24 20:26 Alexey Toptygin
  2005-05-25  1:51 ` Alexey Toptygin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexey Toptygin @ 2005-05-24 20:26 UTC (permalink / raw)
  To: lartc


The following (occuring on debian/testing with kernel-image-2.6.8-2-386 version 
2.6.8-13 and iproute version 20041019-3) confuses me:

# tc qdisc add dev eth0 root handle 1: prio
# tc filter add dev eth0 parent 1: proto ip pref 1 handle 1 fw classid 1:2
# tc filter ls dev eth0
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x1 classid 1:2
# tc filter del dev eth0 parent 1: proto ip prio 1 fw
# tc filter ls dev eth0
# tc filter add dev eth0 parent 1: proto ip pref 1 handle 1 fw classid 1:2
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
# tc filter ls dev eth0
filter parent 1: protocol ip pref 1 fw
# tc filter del dev eth0 parent 1: proto ip prio 1 fw
# tc filter ls dev eth0
# tc filter add dev eth0 parent 1: proto ip pref 1 handle 1 fw classid 1:2
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
# tc qdisc del dev eth0 root
# tc qdisc add dev eth0 root handle 1: prio
# tc filter add dev eth0 parent 1: proto ip pref 1 handle 1 fw classid 1:2
# tc filter ls dev eth0
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x1 classid 1:2
# tc filter del dev eth0 parent 1: proto ip pref 1 handle 1 fw
# tc filter ls dev eth0
filter parent 1: protocol ip pref 1 fw
# tc filter add dev eth0 parent 1: proto ip pref 1 handle 1 fw classid 1:2
# tc filter ls dev eth0
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x1 classid 1:2
#

What is going on? Why are 2 entries created at first, then, if I delete the one 
without a handle they both dissapear but I can't recreate the one with the 
handle? Why is it if I delete the one with the handle, it is the only one 
deleted, and can be re-added and re-deleted just fine? What are filter handles 
actually used for? Should I just omit the handle to make everything better?

Second, tc doesn't seem to want me to create filters without a filter type, so 
how should I create a filter that will always match? i.e. I want a prio 1 
filter based on u32, then a prio 2 filter based on fw, then a prio 3 filter 
that will match everything that the prio 1 and 2 filters didn't get?

Thirdly, I haven't seen this actually written down anywhere, so I'd like to 
double check: the fw filter matches any packet with non-zero fwmark value, yes?

Finally, when using netem `tc qdisc ls` always shows a duplicate value of 
around %75, even when I don't set it, and setting the duplicate value seems to 
have no effect. Is this a header mismatch between the kernel and userland?

Apologies to those who don't like multiple questions in one email :-)

 			Alexey
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2005-05-26 10:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-24 20:26 [LARTC] four tc filter and netem questions Alexey Toptygin
2005-05-25  1:51 ` Alexey Toptygin
2005-05-25  8:39 ` Robert Siemer
2005-05-26 10:48 ` Andy Furniss

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.