Re: [LARTC] tc classes limit

2004-02-01 Thread Stef Coene
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: "". 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 - 
0x is used for qdiscs with an unspecified major number. Numbers from 
:fff0 to : 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

-- 
[EMAIL PROTECTED]
 "Using Linux as bandwidth manager"
 http://www.docum.org/
 #lartc @ irc.openprojects.net

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] tc classes limit

2004-01-31 Thread Jose Luis Domingo Lopez
On Friday, 30 January 2004, at 19:40:44 -0300,
Gerardo Arceri wrote:

> What's the limit on number of traffic classes (classid) you can define on 
> Linux ?
> 
Digging in the source code of Linux kernel 2.6.1 it seems that internal
data structures for the classful queuing disciplines use a "u32"
(unsigned 32-bit long integer) to store the class ID. Maybe there is a
lower limit around there though.

Greetings.

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.2-bk3)
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] tc classes limit

2004-01-30 Thread Gerardo Arceri
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 ?

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/