From: Andre Correa <andre.correa@pobox.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] question about major:minor numbers
Date: Wed, 14 Jan 2004 12:30:09 +0000 [thread overview]
Message-ID: <40053651.9040100@pobox.com> (raw)
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/
next reply other threads:[~2004-01-14 12:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-14 12:30 Andre Correa [this message]
2004-01-14 14:17 ` [LARTC] question about major:minor numbers Cord Buhlert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40053651.9040100@pobox.com \
--to=andre.correa@pobox.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.