All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tc del filter troubles
@ 2004-07-24 17:12 zarhi
  2004-07-26 13:48 ` bschenker
  0 siblings, 1 reply; 2+ messages in thread
From: zarhi @ 2004-07-24 17:12 UTC (permalink / raw)
  To: lartc

hello,

I have working htb system with about 1000 users. Until now I reload all
rules at change, but it take too much time to apply.

I cannot delete applyed filters. There is rules for one user:

#!/bin/bash -v
# Download shaper EX -> 2:20
/sbin/tc class add dev eth2 parent 2:20 classid 2:1775 htb rate 8000Kbit
ceil 10000Kbit quantum 1514
/sbin/tc qdisc add dev eth2 parent 2:1775 sfq perturb 10
/sbin/tc filter add dev eth2 parent 2:20 protocol ip handle 1775 fw
flowid 2:1775

# Download shaper peering -> 2:30
/sbin/tc class add dev eth2 parent 2:30 classid 2:2775 htb rate 100Kbit
ceil 25000Kbit quantum 1514
/sbin/tc qdisc add dev eth2 parent 2:2775 sfq perturb 10
/sbin/tc filter add dev eth2 parent 2:30 protocol ip handle 1775 fw
flowid 2:2775

# Download shaper international -> 2:40
/sbin/tc class add dev eth2 parent 2:40 classid 2:3775 htb rate 384Kbit
ceil 800Kbit quantum 1514
/sbin/tc qdisc add dev eth2 parent 2:3775 sfq perturb 10
/sbin/tc filter add dev eth2 parent 2:40 protocol ip handle 1775 fw
flowid 2:3775


I change 'add' with 'del' but only sfq qdisc are deleted:

#!/bin/bash -v
# Download shaper EX -> 2:20
/sbin/tc class del dev eth2 parent 2:20 classid 2:1775 htb rate 8000Kbit
ceil 10000Kbit quantum 1514
RTNETLINK answers: Device or resource busy
/sbin/tc qdisc del dev eth2 parent 2:1775 sfq perturb 10
/sbin/tc filter del dev eth2 parent 2:20 protocol ip handle 1775 fw
flowid 2:1775
RTNETLINK answers: No such file or directory

# Download shaper peering -> 2:30
/sbin/tc class del dev eth2 parent 2:30 classid 2:2775 htb rate 100Kbit
ceil 25000Kbit quantum 1514
RTNETLINK answers: Device or resource busy
/sbin/tc qdisc del dev eth2 parent 2:2775 sfq perturb 10
/sbin/tc filter del dev eth2 parent 2:30 protocol ip handle 1775 fw
flowid 2:2775
RTNETLINK answers: No such file or directory

# Download shaper international -> 2:40
/sbin/tc class del dev eth2 parent 2:40 classid 2:3775 htb rate 384Kbit
ceil 800Kbit quantum 1514
RTNETLINK answers: Device or resource busy
/sbin/tc qdisc del dev eth2 parent 2:3775 sfq perturb 10
/sbin/tc filter del dev eth2 parent 2:40 protocol ip handle 1775 fw
flowid 2:3775
RTNETLINK answers: No such file or directory

If I try to run this again result is:
# Download shaper EX -> 2:20
/sbin/tc class del dev eth2 parent 2:20 classid 2:1775 htb rate 8000Kbit
ceil 10000Kbit quantum 1514
RTNETLINK answers: Device or resource busy
/sbin/tc qdisc del dev eth2 parent 2:1775 sfq perturb 10
RTNETLINK answers: Invalid argument
/sbin/tc filter del dev eth2 parent 2:20 protocol ip handle 1775 fw
flowid 2:1775
RTNETLINK answers: No such file or directory


I think that class cannot be deleted becouse there is filter pointing to
it. But how to delete that filters?

Any hint will be extreme usefull.

Svetozar Mihailov.



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

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

end of thread, other threads:[~2004-07-26 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-24 17:12 [LARTC] tc del filter troubles zarhi
2004-07-26 13:48 ` bschenker

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.