From: Eric Dumazet <eric.dumazet@gmail.com>
To: Sergey Popovich <popovich_sergei@mail.ru>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: sch_generic: missing u64 in psched_ratecfg_precompute()?
Date: Wed, 27 Mar 2013 07:33:08 -0700 [thread overview]
Message-ID: <1364394788.15753.4.camel@edumazet-glaptop> (raw)
In-Reply-To: <4306359.Sd6orIF4zo@tuxracer.localdomain>
On Wed, 2013-03-27 at 15:00 +0200, Sergey Popovich wrote:
> Hello!
>
> It seems that commit
>
> commit 292f1c7ff6cc10516076ceeea45ed11833bb71c7
> Author: Jiri Pirko <jiri@resnulli.us>
> Date: Tue Feb 12 00:12:03 2013 +0000
>
> sch: make htb_rate_cfg and functions around that generic
>
> adds little regression.
>
> Before
> ----
> # tc qdisc add dev eth0 root handle 1: htb default ffff
> # tc class add dev eth0 classid 1:ffff htb rate 5Gbit
> # tc -s class show dev eth0
> class htb 1:ffff root prio 0 rate 5000Mbit ceil 5000Mbit burst 625b cburst
> 625b
> Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
> rate 0bit 0pps backlog 0b 0p requeues 0
> lended: 0 borrowed: 0 giants: 0
> tokens: 31 ctokens: 31
>
> After
> ----
> # tc qdisc add dev eth0 root handle 1: htb default ffff
> # tc class add dev eth0 classid 1:ffff htb rate 5Gbit
> # tc -s class show dev eth0
> class htb 1:ffff root prio 0 rate 1544Mbit ceil 1544Mbit burst 625b cburst
> 625b
> Sent 5073 bytes 41 pkt (dropped 0, overlimits 0 requeues 0)
> rate 1976bit 2pps backlog 0b 0p requeues 0
> lended: 41 borrowed: 0 giants: 0
> tokens: 1802 ctokens: 1802
>
> This probably due to lost u64 cast of rate parameter in
> psched_ratecfg_precompute() (net/sched/sch_generic.c).
>
> Simple patch attached. Tested and found working for me at least
> on amd64.
>
Good catch !
Could you send an official patch, with your "Signed-off-by: Sergey
Popovich <popovich_sergei@mail.ru>" ?
Thanks
prev parent reply other threads:[~2013-03-27 14:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-27 13:00 sch_generic: missing u64 in psched_ratecfg_precompute()? Sergey Popovich
2013-03-27 14:33 ` Eric Dumazet [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=1364394788.15753.4.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=popovich_sergei@mail.ru \
/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