From: Stephen Hemminger <shemminger@vyatta.com>
To: "Piotr Duszyński" <regis44@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: changing the qdisc class speed rate
Date: Wed, 27 May 2009 22:21:58 -0700 [thread overview]
Message-ID: <20090527222158.42f71e28@nehalam> (raw)
In-Reply-To: <50214222-779D-4C49-9151-C725C8F470D5@gmail.com>
On Thu, 28 May 2009 07:12:33 +0200
Piotr Duszyński <regis44@gmail.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.
next prev parent reply other threads:[~2009-05-28 5:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-28 5:12 changing the qdisc class speed rate Piotr Duszyński
2009-05-28 5:21 ` Stephen Hemminger [this message]
2009-05-29 19:03 ` Piotrek D
2009-05-29 20:34 ` Jarek Poplawski
2009-05-30 8:19 ` Piotrek D
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=20090527222158.42f71e28@nehalam \
--to=shemminger@vyatta.com \
--cc=netdev@vger.kernel.org \
--cc=regis44@gmail.com \
/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.