* HTB class parameter change
@ 2009-05-28 20:47 Piotrek D
2009-05-28 20:54 ` Eric Dumazet
0 siblings, 1 reply; 3+ messages in thread
From: Piotrek D @ 2009-05-28 20:47 UTC (permalink / raw)
To: netdev
HI,
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 anyboyd have any idea what am I doing wrong ? Maybe there would
be a faster way by sending a netlink message ?
Piotrek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: HTB class parameter change
2009-05-28 20:47 HTB class parameter change Piotrek D
@ 2009-05-28 20:54 ` Eric Dumazet
2009-05-29 5:41 ` Piotrek D
0 siblings, 1 reply; 3+ messages in thread
From: Eric Dumazet @ 2009-05-28 20:54 UTC (permalink / raw)
To: Piotrek D; +Cc: netdev
Piotrek D a écrit :
> HI,
>
> 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 anyboyd have any idea what am I doing wrong ? Maybe there would
> be a faster way by sending a netlink message ?
>
> Piotrek
You already asked this 15 hours ago and Stephen replied :
"HTB uses a rate table, so if you want the rate to change, you will need to change the
table as well."
Did you miss this answer ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: HTB class parameter change
2009-05-28 20:54 ` Eric Dumazet
@ 2009-05-29 5:41 ` Piotrek D
0 siblings, 0 replies; 3+ messages in thread
From: Piotrek D @ 2009-05-29 5:41 UTC (permalink / raw)
To: Eric Dumazet; +Cc: netdev
Sorry for double posting. I haven't noticed the previous reply.
Piotrek
2009/5/28 Eric Dumazet <eric.dumazet@gmail.com>:
> Piotrek D a écrit :
>> HI,
>>
>> 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 anyboyd have any idea what am I doing wrong ? Maybe there would
>> be a faster way by sending a netlink message ?
>>
>> Piotrek
>
>
> You already asked this 15 hours ago and Stephen replied :
>
> "HTB uses a rate table, so if you want the rate to change, you will need to change the
> table as well."
>
> Did you miss this answer ?
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-29 5:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 20:47 HTB class parameter change Piotrek D
2009-05-28 20:54 ` Eric Dumazet
2009-05-29 5:41 ` Piotrek D
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).