From: Cord Buhlert Date: Wed, 14 Jan 2004 14:17:31 +0000 Subject: [LARTC] question about major:minor numbers Message-Id: <20040114141731.GA15980@keppler.vrg.de> List-Id: References: <40053651.9040100@pobox.com> In-Reply-To: <40053651.9040100@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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/