From: Piotrek D <regis44@gmail.com>
To: Jarek Poplawski <jarkao2@gmail.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>, netdev@vger.kernel.org
Subject: Re: changing the qdisc class speed rate
Date: Sat, 30 May 2009 10:19:36 +0200 [thread overview]
Message-ID: <620d582f0905300119y5e4b6962s40e0e276074720b6@mail.gmail.com> (raw)
In-Reply-To: <4A2046D1.3050402@gmail.com>
Thanks, this was exactly what I was looking for :)
After multiplying all of the values in the rtab->data array I have
been able to change the traffic rate for that queue.
Piotrek D.
> /* Length to Time (L2T) lookup in a qdisc_rate_table, to determine how
> long it will take to send a packet given its size.
> */
> static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen)
> {
> int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead;
> if (slot < 0)
> slot = 0;
> slot >>= rtab->rate.cell_log;
> if (slot > 255)
> return (rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]);
> return rtab->data[slot];
> }
>
> This function controls rates and these rtab values matter here.
>
> Jarek P.
>
>> --
prev parent reply other threads:[~2009-05-30 8:19 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
2009-05-29 19:03 ` Piotrek D
2009-05-29 20:34 ` Jarek Poplawski
2009-05-30 8:19 ` Piotrek D [this message]
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=620d582f0905300119y5e4b6962s40e0e276074720b6@mail.gmail.com \
--to=regis44@gmail.com \
--cc=jarkao2@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.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 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).