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-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-02-15 15:10:37 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-02-15 15:10:37 -05:00
2013-02-12 18:59:45 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2007-07-10 22:16:41 -07:00
2007-07-10 22:16:41 -07:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2013-01-14 15:09:36 -05:00
2012-07-04 13:07:05 +02:00
2011-01-19 23:31:12 -08:00
2012-07-12 07:54:46 -07:00
2012-09-24 16:31:37 -04:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2011-01-19 23:31:12 -08:00
2012-05-15 13:45:03 -04:00
2012-11-25 16:06:06 -05:00
2012-07-12 07:54:46 -07:00
2013-02-27 19:10:24 -08:00
2012-06-01 10:37:18 -04:00
2008-10-31 00:45:55 -07:00
2013-02-27 19:10:24 -08:00
2012-05-04 11:50:05 -04:00
2012-05-16 15:30:26 -04:00
2013-02-27 19:10:24 -08:00
2012-05-04 11:50:05 -04:00
2012-04-01 18:11:37 -04:00
2012-09-03 14:36:50 -04:00
2013-03-27 14:06:41 -04:00
2012-09-13 16:10:13 -04:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:24 -08:00
2011-01-10 16:07:54 -08:00
2012-12-12 00:16:47 -05:00
2012-12-12 00:16:47 -05:00
2012-04-01 18:11:37 -04:00
2013-01-29 15:43:02 -05:00
2012-02-13 16:04:40 -05:00
2012-04-01 18:11:37 -04:00
2013-03-06 02:47:05 -05:00
2012-04-01 18:11:37 -04:00
2012-07-12 08:33:18 -07:00
2012-04-01 18:11:37 -04:00
2013-02-12 18:59:45 -05:00
2012-07-05 01:09:06 -07:00