[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <620d582f0905291203n69bce7bkd2c06d48d27f5003@mail.gmail.com>
Date: Fri, 29 May 2009 21:03:50 +0200
From: Piotrek D <regis44@...il.com>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: netdev@...r.kernel.org
Subject: Re: changing the qdisc class speed rate
This is what I have done, the cl->rate->rate.rate refers to the __u32
rate in htb_class -> qdisc_rate_table -> tc_ratespec .
What else should I modify to make this work ?
Piotrek
W dniu 28 maja 2009 07:21 użytkownik Stephen Hemminger
<shemminger@...tta.com> napisał:
> On Thu, 28 May 2009 07:12:33 +0200
> Piotr Duszyński <regis44@...il.com> 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.
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists