From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Chandran Date: Wed, 21 Dec 2005 12:15:56 +0000 Subject: Re: [LARTC] Limit for prio value Message-Id: <43A944AC.5030605@multitech.co.in> List-Id: References: <43A92C45.7090808@multitech.co.in> In-Reply-To: <43A92C45.7090808@multitech.co.in> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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