Thread (5 messages) 5 messages, 3 authors, 2009-05-30

Re: changing the qdisc class speed rate

From: Stephen Hemminger <hidden>
Date: 2009-05-28 05:22:02

On Thu, 28 May 2009 07:12:33 +0200
Piotr Duszyński [off-list ref] wrote:
Hi everyone,

I am trying to change the rate parameter of HTB class by using this  
code from within one of my functions :

   struct htb_class *cl;
   cl=htb_find(number,q);

   cl->rate->rate.rate = NEW_RATE_VALUE;

   TC shows the correct values, but the traffic rate doesn't change a  
bit.
   Does anyone have any idea what am I doing wrong ? Maybe there would  
be a faster way by sending a netlink  message ?

Piotrek
HTB uses a rate table, so if you want the rate to change, you will need to change the
table as well.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help