]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sch_red: fix red_calc_qavg_from_idle_time
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 30 Nov 2011 12:10:53 +0000 (12:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Dec 2011 04:27:22 +0000 (23:27 -0500)
commitea6a5d3b97b768561db6358f15e4c84ced0f4f7e
tree9f9e41800756d04c0edbfdeb8d8e35fb2273b6fd
parent917fbdb32f37e9a93b00bb12ee83532982982df3
sch_red: fix red_calc_qavg_from_idle_time

Since commit a4a710c4a7490587 (pkt_sched: Change PSCHED_SHIFT from 10 to
6) it seems RED/GRED are broken.

red_calc_qavg_from_idle_time() computes a delay in us units, but this
delay is now 16 times bigger than real delay, so the final qavg result
smaller than expected.

Use standard kernel time services since there is no need to obfuscate
them.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/red.h