man tc: Highlight minor & major, notice they are hex

Also added some trivial form of the ID as "major:minor",
just for visualisation of explained words.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
Vadim Kochan 2015-03-09 01:07:17 +02:00 committed by Stephen Hemminger
parent 032b4f4d19
commit 8ce21c6b93
1 changed files with 20 additions and 10 deletions

View File

@ -250,23 +250,33 @@ attached to that class. Check qdisc specific manpages for details, however.
All qdiscs, classes and filters have IDs, which can either be specified All qdiscs, classes and filters have IDs, which can either be specified
or be automatically assigned. or be automatically assigned.
IDs consist of a major number and a minor number, separated by a colon. IDs consist of a
Both major and minor number are limited to 16 bits. There are two special .BR major " number and a " minor
values: root is signified by major and minor of all ones, and unspecified number, separated by a colon -
is all zeros. .BR major ":" minor "."
Both
.BR major " and " minor
are hexadecimal numbers and are limited to 16 bits. There are two special
values: root is signified by
.BR major " and " minor
of all ones, and unspecified is all zeros.
.TP .TP
QDISCS QDISCS
A qdisc, which potentially can have children, A qdisc, which potentially can have children, gets assigned a
gets assigned a major number, called a 'handle', leaving the minor .B major
number, called a 'handle', leaving the
.B minor
number namespace available for classes. The handle is expressed as '10:'. number namespace available for classes. The handle is expressed as '10:'.
It is customary to explicitly assign a handle to qdiscs expected to have It is customary to explicitly assign a handle to qdiscs expected to have children.
children.
.TP .TP
CLASSES CLASSES
Classes residing under a qdisc share their qdisc major number, but each have Classes residing under a qdisc share their qdisc
a separate minor number called a 'classid' that has no relation to their .B major
number, but each have a separate
.B minor
number called a 'classid' that has no relation to their
parent classes, only to their parent qdisc. The same naming custom as for parent classes, only to their parent qdisc. The same naming custom as for
qdiscs applies. qdiscs applies.