On Thu, 16 Mar 2000, Charl Matthee wrote:

[...]

> 
> After running the script I thought I'd have a look-see at what we have.
> 
> [bash]$ tc qdisc ls dev eth0
> qdisc tbf 8004: rate 128Kbit burst 1279b peakrate 16386bps minburst 379b lat
> 734.5ms 
> qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit
> [bash]$ tc class ls dev eth0
> class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit
> class cbq 1:1 parent 1: rate 10Mbit prio 7
> class cbq 1:2 parent 1: leaf 8004: rate 2Mbit prio 1
> 
> You can delete a specific class and the tbf you defined for it with:
> tc class del dev eth0 classid <child> parent <parent>, i.e.
> 
> [bash]$ tc class del dev eth0 classid 1:2 parent 1:0
> 
> Let's see if it worked.
> 
> [bash]$ tc qdisc ls dev eth0
> qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit
> 
> The tbf was deleted.
> 
> [bash]$ tc class ls dev eth0
> class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit
> class cbq 1:1 parent 1: rate 10Mbit prio 7
> 
> The class (2:1) was also deleted.
> 
> To delete all qdisc's you can use:
> 
> [bash]$ tc qdisc del dev eth0 root 2>1&
> 
> Now, the only unanswered question is whether I managed to answer your question
> :)
> 

:)

Well, the problem actually is the next step. If I can requote my problem,
once I delete the said qdiscs and classes, I cannot reinstate the same.
The TBF qdisc returns saying " RTNETLINK : invalid parameter " I am
enclosing the iterations I am performing in this regard :

---------8<----------------8<------------------
[root@bark@ece tc]# ./tbf.init                  Successful init
[root@bark@ece tc]# ./tbf.down                  Successful del
[root@bark@ece tc]# ./tbf.init                  Successful init
[root@bark@ece tc]# ./tbf.down                  Successful del
[root@bark@ece tc]# ./tbf.init                  Unsuccessful init
RTNETLINK answers: Invalid argument
[root@bark@ece tc]# ./tbf.down                  Unsuccessful del
RTNETLINK answers: No such file or directory            
[root@bark@ece tc]# ./tbf.init                  Unsuccessful init
RTNETLINK answers: Invalid argument
[root@bark@ece tc]# ./tbf.down                  Unsuccessful del
RTNETLINK answers: No such file or directory
[root@bark@ece tc]# ./tbf.init                  Unsuccessful init
RTNETLINK answers: Invalid argument
[root@bark@ece tc]# ./tbf.down                  Unsuccessful del
RTNETLINK answers: No such file or directory
[root@bark@ece tc]# ./tbf.init                  Successful init
[root@bark@ece tc]# ./tbf.down                  Successful del
[root@bark@ece tc]# ./tbf.init                  Successful init
[root@bark@ece tc]# ./tbf.down                  Successful del
[root@bark@ece tc]# ./tbf.init                  Successful init
[root@bark@ece tc]# ./tbf.down                  Successful del

-----------8<---------------------8<-------------8<-------

To throw in more light on the problem, one more thing I have found out is
that, this problem is seen only if I set the peakrate parameter in the TBF
qdisc !!! Else this works fine. A sample CBQ script on 2.2.12(RH 6.0) does
not have the peakrate in it, which works fine ;)

Hope this helps in attacking the problem further !

Thank you very much once again,

Vinay.

> 
> Ciao
> 
> Charl
> 
> __________________________________________________________________________
> 
>        I'll be off in the corner <twitching> if anyone needs me. 
> __________________________________________________________________________
> 
>   Charl Matthee                                email: [EMAIL PROTECTED] 
>   Infoline                                       Mobile: +27-83-357-8644
>   Reality Manufacturing                                 (w) 011-402-4116
> __________________________________________________________________________
> 


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to