From: Orlie Brewer Date: Thu, 10 Apr 2003 19:04:23 +0000 Subject: [LARTC] Listing classes from a PRIO qdisc Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hello, I'm new to this mailing list, so I hope that I'm not repeating a well hashed out subject. I've searched the mailing list archives but couldn't find anything on this. When I create a prio qdisc and look at its classes # tc qdisc add dev eth0 root handle 1: prio # tc qdisc show dev eth0 qdisc prio 1: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 # tc class show dev eth0 class prio 1: parent 1: [UNKNOWN] class prio 1: parent 1: [UNKNOWN] class prio 1: parent 1: [UNKNOWN] why does the minor number not show up in the class handle? In other words, why doesn't it show up like # tc class show dev eth0 class prio 1:1 parent 1: [UNKNOWN] class prio 1:2 parent 1: [UNKNOWN] class prio 1:3 parent 1: [UNKNOWN] From looking at the source code for sch_prio.c, it looks like it is set in prio_dump_class by tcm->tcm_handle |= TC_H_MIN(cl); where cl is the band number and tcm->tcm_handle already has the major number set, but when tc gets it from rtnetlink, it still just has the major number. I looks like it should work. BTW, I'm using Red Hat Linux release 7.3 Thanks for any help, -- Orlie Brewer The Boeing Company VOICE: (425) 865 - 3191, P.O. Box 3707, MS 7L-48 FAX: (425) 865 - 2965 Seattle, WA 98124-2207 EMAIL: orlie.t.brewer@boeing.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/