jamal wrote:
:
: >I think there is a small bug in tc from iproute2-2.2.4-now-ss990417,
: >which makes impossible to set the priomap parameter of the prio qdisc.
: >The patch is as follows:
:
: This patch is wrong (i.e the code is fine as is).
: By default there is a three band scheduler (pmap_mode=0). You can
: over-ride it to have more bands by using the "priomap" construct
: (pmap_mode=1).
Nope. The patch may be wrong (depending on what the code should do),
but the original code is wrong as well. You can add more bands by "bands"
construct and then set the priority->band mapping by the "priomap" construct.
In this case the pmap_mode is set to 1, and the original code overwrites the
priomap you have just set up. Just try
# tc qdisc add dev eth0 root handle 1: prio bands 4 priomap 3 2 1 0
# tc qdisc ls dev eth0
qdisc prio 1: bands 4 priomap 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1
#
The priomap will not be set to "3 2 1 0 anything", but to
something completely different.
-Yenya
--
\ Jan "Yenya" Kasprzak <kas at fi.muni.cz> http://www.fi.muni.cz/~kas/
\\ PGP: finger kas at aisa.fi.muni.cz 0D99A7FB206605D7 8B35FCDE05B18A5E //
\\\ Czech Linux Homepage: http://www.linux.cz/ ///
/// While Linux is larger than Emacs, at least Linux has the excuse \\\
// that it needs to be. --Linus Torvalds \\
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]