]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: add u64 rate to psched_ratecfg_precompute()
authorEric Dumazet <edumazet@google.com>
Thu, 19 Sep 2013 16:10:03 +0000 (09:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Sep 2013 18:41:02 +0000 (14:41 -0400)
commita626eb9cf6c872c618eba9de8ff6742fa398982e
tree26737c73709aa3a29ad1c435e6bb7cd83126f4c6
parentec6375f10085c7ecea98703203693a8d066d70aa
net_sched: add u64 rate to psched_ratecfg_precompute()

Add an extra u64 rate parameter to psched_ratecfg_precompute()
so that some qdisc can opt-in for 64bit rates in the future,
to overcome the ~34 Gbits limit.

psched_ratecfg_getrate() reports a legacy structure to
tc utility, so if actual rate is above the 32bit rate field,
cap it to the 34Gbit limit.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/act_police.c
net/sched/sch_generic.c
net/sched/sch_htb.c
net/sched/sch_tbf.c