* Re: [LARTC] question about major:minor numbers
@ 2004-01-14 12:30 Andre Correa
2004-01-14 14:17 ` Cord Buhlert
0 siblings, 1 reply; 2+ messages in thread
From: Andre Correa @ 2004-01-14 12:30 UTC (permalink / raw)
To: lartc
Cord, you can use the same major numbers in diferent devices, no
problem. You cannot have repeated minor numbers in the same device, but
in diferent devices it is OK.
Note that sometimes using diferent major numbers may be a good idea, for
example, when you are scripting this may help...
Andre
Cord Buhlert wrote:
> Hi,
> the documentation says "[the major number of a class] must be unique
> within a egress or ingress setup. The minor number must be unique within
> a qdisc and his classes."
>
> What is meant by "setup"? Does that include all qdiscs attached to any
> network device? Ie, if I have a qdisc attached to eth0 and another
> attached to eth1, do the major numbers I use have to be different at all
> or could I use the same number structure in eth0 and eth1?
>
> Short example to explain:
> tc qdisc add dev eth0 root handle 1: htb default 13
> tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps...
> tc class add dev eth0 parent 1:1 classid 1:10 htb rate...
> ...
>
> tc qdisc add dev eth1 root handle 1: htb default 13
> tc class add dev eth1 parent 1: classid 1:1 htb rate 100kbps...
> tc class add dev eth1 parent 1:1 classid 1:10 htb rate...
> ...
>
> Is this valid? Or do I have to use "2:" instead of "1:" in the second
> part?
>
> thanx
> cb
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [LARTC] question about major:minor numbers
2004-01-14 12:30 [LARTC] question about major:minor numbers Andre Correa
@ 2004-01-14 14:17 ` Cord Buhlert
0 siblings, 0 replies; 2+ messages in thread
From: Cord Buhlert @ 2004-01-14 14:17 UTC (permalink / raw)
To: lartc
Hi,
the documentation says "[the major number of a class] must be unique
within a egress or ingress setup. The minor number must be unique within
a qdisc and his classes."
What is meant by "setup"? Does that include all qdiscs attached to any
network device? Ie, if I have a qdisc attached to eth0 and another
attached to eth1, do the major numbers I use have to be different at all
or could I use the same number structure in eth0 and eth1?
Short example to explain:
tc qdisc add dev eth0 root handle 1: htb default 13
tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps...
tc class add dev eth0 parent 1:1 classid 1:10 htb rate...
...
tc qdisc add dev eth1 root handle 1: htb default 13
tc class add dev eth1 parent 1: classid 1:1 htb rate 100kbps...
tc class add dev eth1 parent 1:1 classid 1:10 htb rate...
...
Is this valid? Or do I have to use "2:" instead of "1:" in the second
part?
thanx
cb
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-14 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-14 12:30 [LARTC] question about major:minor numbers Andre Correa
2004-01-14 14:17 ` Cord Buhlert
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.