]> git.baikalelectronics.ru Git - kernel.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)
commit5af2845d3cf823ae64fd3e8ee86a194afc8f845a
tree236f3316d5577d9a4abd9ee15d4479ac7ec113b0
parent9f47f0579eda5b6cb9343230f4e40d37fcf3fd0a
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