]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pkt_sched: gen_estimator: use 64 bit intermediate counters for bps
authorEric Dumazet <dada1@cosmosbay.com>
Tue, 19 May 2009 02:26:37 +0000 (19:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2009 02:26:37 +0000 (19:26 -0700)
commit511e11e396dc596825ce04d53d7f6d579404bc01
tree236f3316d5577d9a4abd9ee15d4479ac7ec113b0
parentc4ca2374312b4de819dd700e72a68395eddb5fcb
pkt_sched: gen_estimator: use 64 bit intermediate counters for bps

gen_estimator can overflow bps (bytes per second) with Gb links, while
it was designed with a u32 API, with a theorical limit of 34360Mbit
(2^32 bytes)

Using 64 bit intermediate avbps/brate counters can allow us to reach
this theorical limit.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/gen_estimator.c