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" <mbabcock@fibrespeed.net> To: <lartc@mailman.ds9a.nl> Sent: Wednesday, July 11, 2001 7:02 PM Subject: [LARTC] Clearing all filters> 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 > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:http://ds9a.nl/2.4Routing/>
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
On Wed, 11 Jul 2001, Michael T. Babcock wrote:> 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 -- James A. Crippen <james@unlambda.com> ,-./-. 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.
Jose Miguel Varet wrote:>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. -- Michael T. Babcock CTO, FibreSpeed