All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tc classes limit
@ 2004-01-30 22:40 Gerardo Arceri
  2004-01-31 13:30 ` Jose Luis Domingo Lopez
  2004-02-01  9:27 ` Stef Coene
  0 siblings, 2 replies; 3+ messages in thread
From: Gerardo Arceri @ 2004-01-30 22:40 UTC (permalink / raw)
  To: lartc

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] tc classes limit
  2004-01-30 22:40 [LARTC] tc classes limit Gerardo Arceri
@ 2004-01-31 13:30 ` Jose Luis Domingo Lopez
  2004-02-01  9:27 ` Stef Coene
  1 sibling, 0 replies; 3+ messages in thread
From: Jose Luis Domingo Lopez @ 2004-01-31 13:30 UTC (permalink / raw)
  To: lartc

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] tc classes limit
  2004-01-30 22:40 [LARTC] tc classes limit Gerardo Arceri
  2004-01-31 13:30 ` Jose Luis Domingo Lopez
@ 2004-02-01  9:27 ` Stef Coene
  1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2004-02-01  9:27 UTC (permalink / raw)
  To: lartc

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@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-01  9:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-30 22:40 [LARTC] tc classes limit Gerardo Arceri
2004-01-31 13:30 ` Jose Luis Domingo Lopez
2004-02-01  9:27 ` Stef Coene

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.