]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/sched/act_police.c
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)
commit3e1e3aae1f5d4e8e5edb7e332f6e265597cc5b0a
tree26737c73709aa3a29ad1c435e6bb7cd83126f4c6
parent118a7b0ede580f3c5553028301001d46f8eede99
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