net_sched: psched_ratecfg_precompute() improvements
authorEric Dumazet <edumazet@google.com>
Thu, 6 Jun 2013 20:56:19 +0000 (13:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 05:39:47 +0000 (22:39 -0700)
commit130d3d68b52097c7ae081109f700b02776adcb9c
tree08b3ab56be1de543a9c3e7cd1d9ff532221bda14
parent45203a3b380cee28f570475c0d28c169f908c209
net_sched: psched_ratecfg_precompute() improvements

Before allowing 64bits bytes rates, refactor
psched_ratecfg_precompute() to get better comments
and increased accuracy.

rate_bps field is renamed to rate_bytes_ps, as we only
have to worry about bytes per second.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_generic.c