Sergey Popovich
ea872d7712
sch: add missing u64 in psched_ratecfg_precompute()
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).
Signed-off-by: Sergey Popovich <popovich_sergei@mail.ru>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-27 14:06:41 -04:00
..
2013-03-08 15:05:34 -08:00
2013-02-11 14:16:26 -05:00
2013-03-24 17:27:28 -04:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:24 -08:00
2013-03-11 22:59:47 +01:00
2013-03-18 15:17:11 -04:00
2013-03-24 17:27:28 -04:00
2013-03-04 14:12:07 -05:00
2013-02-27 19:10:24 -08:00
2013-03-12 09:22:42 -07:00
2013-03-27 14:06:40 -04:00
2013-03-10 05:19:26 -04:00
2013-02-21 12:05:51 -08:00
2013-02-27 19:10:24 -08:00
2012-12-16 15:40:50 -08:00
2013-01-21 15:40:12 -05:00
2013-01-21 14:07:44 -05:00
2013-03-10 16:49:35 -04:00
2013-03-26 13:50:05 -04:00
2013-03-25 13:55:38 -04:00
2013-02-27 19:10:24 -08:00
2013-03-20 12:23:13 -04:00
2013-02-27 19:10:24 -08:00
2013-03-07 16:26:45 -05:00
2013-03-20 12:10:39 -04:00
2013-01-11 11:40:01 -08:00
2013-02-27 19:10:24 -08:00
2013-03-06 10:21:17 -05:00
2013-02-21 12:05:51 -08:00
2013-03-19 21:21:52 +09:00
2013-03-08 11:33:51 -05:00
2013-03-20 12:05:51 -04:00
2013-02-27 19:10:24 -08:00
2013-03-08 17:35:22 +01:00
2013-03-15 09:00:39 -04:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:24 -08:00
2013-03-08 00:35:44 -05:00
2012-12-28 13:40:16 -08:00
2013-02-27 19:10:24 -08:00
2013-02-21 12:05:51 -08:00
2013-03-27 14:06:41 -04:00
2013-03-13 10:09:55 -04:00
2013-03-26 14:23:45 -07:00
2013-02-27 19:10:24 -08:00
2013-03-26 12:33:55 -04:00
2013-02-18 15:02:51 -05:00
2013-03-06 10:21:17 -05:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:24 -08:00
2012-09-26 21:10:25 -04:00
2013-02-21 12:05:51 -08:00
2013-02-10 19:41:08 -05:00
2013-02-26 20:16:07 -08:00
2012-11-18 20:32:45 -05:00