Skip to contentSkip to conversation

Clearing all filters

LARTC Jose Miguel Varet 3 participants 4 messages Jul 11, 2001

lore
Share & tools
lore
#0 lore raw

easy... you can erase your tc config at the root level :

# tc qdisc del $device root

That will erase the main qdisc discipline in $device. Since all classes, cbqs/sfqs , filters, etc. hang from that one , all of them will be removed too.
Greets,

Jose Miguel Varet
Tech Dept. Chief
ATT, S.L.

----- Original Message -----
From: "Michael T. Babcock" <[email protected]>
To: <[email protected]>
Sent: Wednesday, July 11, 2001 7:02 PM
Subject: [LARTC] Clearing all filters

Quoted 10 lines

I'd like to be able to wipe out all classes and/or filters (like doing an ipchains -F for packet filter rules) quickly at the beginning of my scripts. Is there a way to do this that I'm not aware of?

--
Michael T. Babcock
CTO, FibreSpeed

Quoted 3 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:

http://ds9a.nl/2.4Routing/

Quoted 1 line

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#1 lore raw

I'd like to be able to wipe out all classes and/or filters (like doing an ipchains -F for packet filter rules) quickly at the beginning of my scripts. Is there a way to do this that I'm not aware of?

Signature · 8 lines
Michael T. Babcock
CTO, FibreSpeed



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#2 lore raw
In reply to Jose Miguel Varet
Quoted 3 lines · Michael T. Babcock

I'd like to be able to wipe out all classes and/or filters (like doing an ipchains -F for packet filter rules) quickly at the beginning of my scripts. Is there a way to do this that I'm not aware of?

You can do so by deleting the root qdisc for each device. Thus, supposing some configuration similar to the following,

qdisc cbq 1: dev eth1 rate 100Mbit (bounded,isolated) prio no-transmit qdisc cbq 2: dev eth2 rate 100Mbit (bounded,isolated) prio no-transmit

you can delete the root qdisc from each device with this command:

  # tc qdisc del dev eth1 root
  # tc qdisc del dev eth2 root

Everything that depends on the root qdisc (which, IIRC, is indeed everything) will be deleted when the root qdisc is deleted.

HTH, HAND
'james

Signature · 9 lines
James A. Crippen <[email protected]> ,-./-.  Anchorage, Alaska,
Lambda Unlimited: Recursion 'R' Us   |  |/  | USA, 61.2069 N, 149.766 W,
Y = \f.(\x.f(xx)) (\x.f(xx))         |  |\  | Earth, Sol System,
Y(F) = F(Y(F))                        \_,-_/  Milky Way.


_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#3 lore raw
In reply to Jose Miguel Varet
Quoted 8 lines · Jose Miguel Varet

easy... you can erase your tc config at the root level :

# tc qdisc del $device root

That will erase the main qdisc discipline in $device. Since all classes, cbqs/sfqs , filters, etc. hang from that one , all of them will be removed too.

I was not aware that these dependancies were well-maintained in kernel-space. Thank-you.

Signature · 9 lines
Michael T. Babcock
CTO, FibreSpeed




_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/