All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Chandran <vinod_chandran@multitech.co.in>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Limit for prio value
Date: Wed, 21 Dec 2005 12:15:56 +0000	[thread overview]
Message-ID: <43A944AC.5030605@multitech.co.in> (raw)
In-Reply-To: <43A92C45.7090808@multitech.co.in>

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

      reply	other threads:[~2005-12-21 12:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-21 10:31 [LARTC] Limit for prio value Vinod Chandran
2005-12-21 12:15 ` Vinod Chandran [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43A944AC.5030605@multitech.co.in \
    --to=vinod_chandran@multitech.co.in \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.