Re: tc classes limit

Linux Advanced Routing and Traffic Control

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

 



On Friday 30 January 2004 23:40, Gerardo Arceri wrote:
> This may be answered somewhere but i tried googling for it with no luck,
> so...
>
> What's the limit on number of traffic classes (classid) you can define on
> Linux ?
>From http://docum.org/stef.coene/qos/docs/general.html :

----
Each class and qdisc has a unique number: "<major number:minor number>". For a 
qdisc the minor number is zero, or you give no number. The major number of a 
class is the same as the major number of the qdisc the class belongs to. So, 
pairs x:y are class handles and x:0 or x: are qdisc handles. 

Each major number can be a number between 1 and 0x7fff. Major number 0x8000 - 
0xffff is used for qdiscs with an unspecified major number. Numbers from 
ffff:fff0 to ffff:ffff are reserved or have a special meaning. 

The major numbers are unique for each qdisc. The minor numbers are unique per 
major number. You can use hexadecimal numbers. 

>From include/linux/pkt_sched.h: 

/* "Handles"
   ---------
 
    All the traffic control objects have 32bit identifiers, or "handles".
 
    They can be considered as opaque numbers from user API viewpoint,
    but actually they always consist of two fields: major and
    minor numbers, which are interpreted by kernel specially,
    that may be used by applications, though not recommended.
 
    F.e. qdisc handles always have minor number equal to zero,
    classes (or flows) have major equal to parent qdisc major, and
    minor uniquely identifying class inside qdisc.
 */
-----

stef

-- 
stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

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


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux