[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question about default class creation



On Fri, Aug 11, 2000 at 09:27:37AM +0530, Aditya Chugh wrote:
> If we give a command
> tc qdisc add dev eth0 handle1: root cbq bandwidth 10Mbit avpkt 1000 mpu
> 64
> This creates a queuing discipline
> My question is:-
> Does it also create a class(a :0 class which is attached to the root
> of device eth0,and which takes the CBQ parameters give in the above
> command.)which would be automatically created when we create a qdisc.

Yes, it's true. A CBQ class is automatically generated when we create a
CBQ qdisc. 'tc qdisc and tc class show' shows the following result;

# tc qdisc
qdisc cbq 1: dev eth0 rate 10Mbit (bounded,isolated) prio no-transmit
# tc class show dev eth0
class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit


> tc qdisc add dev eth0 handle1: root
> 
> command...to create the qdisc only...since the CBQ parameters are
> required for the class ( a :0 class )
> or In this case  some other default class would be created

This is invalid command for current tc implementation. QDISC_KIND should
be included in 'tc add' command.

-- 
============================================================================
 __/\__ ** Remember Yesterday, Dream about Tomorrow, but ... LIVE TODAY !!!
 \ /\ / -------------------------------------------------------------------
 /_\/_\ ** jay@postech.ac.kr                  http://www.postech.ac.kr/~jay
   \/   ** Jaeyoung Kim           Dept. of Computer Science, POSTECH, KOREA