All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] typo ?
@ 2002-04-04  7:45 Mihai RUSU
  2002-04-04 16:28 ` Soulfly
  0 siblings, 1 reply; 2+ messages in thread
From: Mihai RUSU @ 2002-04-04  7:45 UTC (permalink / raw)
  To: lartc

Hi

While reading the HOWTO (pdf downloaded and printed last night) I have
noticed a little strange thing. In the 9.2.1 chapter, explaining the
pfifo_fast qdisc, it is shown a TOS field mapping table and also it
appears a command line version:

"The last column shows the result of the default priomap. On the
commandline, the default priomap looks like this:
1, 2, 2, 2, 1, 2, 0, 0 , 1, 1, 1, 1, 1, 1, 1, 1

This means that priority 4, for example, gets mapped to band number 1. The
priomap also allows you to list higher priorities (> 7) which do not
correspond to TOS mappings, but which are set by other means."

The numbers on the command line version are 16, thus I presume its a one
to one corespondation to the table, only that it is completly different. I
dont see any explanation why it is like that. Shouldnt that be:
1,2,1,1,2,2,2,2,0,0,0,0,1,1,1,1 ?

Thanks

----------------------------
Mihai RUSU

Disclaimer: Any views or opinions presented within this e-mail are solely
those of the author and do not necessarily represent those of any company,
unless otherwise specifically stated.

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] typo ?
  2002-04-04  7:45 [LARTC] typo ? Mihai RUSU
@ 2002-04-04 16:28 ` Soulfly
  0 siblings, 0 replies; 2+ messages in thread
From: Soulfly @ 2002-04-04 16:28 UTC (permalink / raw)
  To: lartc

"Mihai RUSU" wrote

> Hi
>
> While reading the HOWTO (pdf downloaded and printed last night) I have
> noticed a little strange thing. In the 9.2.1 chapter, explaining the
> pfifo_fast qdisc, it is shown a TOS field mapping table and also it
> appears a command line version:
>
> "The last column shows the result of the default priomap. On the
> commandline, the default priomap looks like this:
> 1, 2, 2, 2, 1, 2, 0, 0 , 1, 1, 1, 1, 1, 1, 1, 1
>
> This means that priority 4, for example, gets mapped to band number 1. The
> priomap also allows you to list higher priorities (> 7) which do not
> correspond to TOS mappings, but which are set by other means."
>
> The numbers on the command line version are 16, thus I presume its a one
> to one corespondation to the table, only that it is completly different. I
> dont see any explanation why it is like that. Shouldnt that be:
> 1,2,1,1,2,2,2,2,0,0,0,0,1,1,1,1 ?
>
> Thanks
>
> ----------------------------
> Mihai RUSU
>

nope. Try the following:

# tc qdisc del dev eth0 root
# tc qdisc add dev eth0 root handle 1: prio
# tc -s qdisc ls dev eth0
qdisc prio 1: bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
 Sent 455336 bytes 1237 pkts (dropped 0, overlimits 0)

which is the default priomap on the commandline. The one you mention is the
priomap in the kernel for pfifo_fast.

I usually set the priomap manually to get the latter priomap. example:
tc qdisc add dev eth0 root handle 1: prio bands 4 priomap 2 3 2 2 3 3 3 3 1
1 1 1 2 2 2 2
(which is the kernels default + 1, here I use the 0 band for very important
traffic which goes above the TOS-field.)

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-04 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-04  7:45 [LARTC] typo ? Mihai RUSU
2002-04-04 16:28 ` Soulfly

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.