[LARTC] Listing classes from a PRIO qdisc

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux