All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Limit for prio value
@ 2005-12-21 10:31 Vinod Chandran
  2005-12-21 12:15 ` Vinod Chandran
  0 siblings, 1 reply; 2+ messages in thread
From: Vinod Chandran @ 2005-12-21 10:31 UTC (permalink / raw)
  To: lartc

Hi all,

I am using htb for traffic classification.
Is there a limit to the value prio can take cos when I give the 
following command .

tc class add dev eth2 classid 1:22 parent 1:2 htb rate 500Kbit ceil 
1000Kbit prio 8

and then  check the output,  I find that the prio of 1:22 is 7, same 
case for other values above 7.

Thanks,
Vinod C



_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] Limit for prio value
  2005-12-21 10:31 [LARTC] Limit for prio value Vinod Chandran
@ 2005-12-21 12:15 ` Vinod Chandran
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Chandran @ 2005-12-21 12:15 UTC (permalink / raw)
  To: lartc

Hi all,

While surfing the code I happened to land on the following piece of code 
in the file net/sched/sch_htb.c.

if ((cl->un.leaf.prio = hopt->prio) >= TC_HTB_NUMPRIO)
                        cl->un.leaf.prio = TC_HTB_NUMPRIO - 1;

NUMPRIO is defined to eight, hence I feel the behavior.
I will be trying to change this value, still any idea behind this logic.

Thanks,
Vinod  C


Vinod Chandran wrote:

> Hi all,
>
> I am using htb for traffic classification.
> Is there a limit to the value prio can take cos when I give the 
> following command .
>
> tc class add dev eth2 classid 1:22 parent 1:2 htb rate 500Kbit ceil 
> 1000Kbit prio 8
>
> and then  check the output,  I find that the prio of 1:22 is 7, same 
> case for other values above 7.
>
> Thanks,
> Vinod C
>
>
>
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2005-12-21 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-21 10:31 [LARTC] Limit for prio value Vinod Chandran
2005-12-21 12:15 ` Vinod Chandran

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.