]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net_sched: htb: do not mix 1ns and 64ns time units
authorEric Dumazet <edumazet@google.com>
Tue, 4 Jun 2013 07:11:48 +0000 (07:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2013 00:44:07 +0000 (17:44 -0700)
commit5343a7f8be11951cb3095b91e8e4eb506cfacc0f
treed114dd1783cb9bd7b9330ee78ff90bda4241a754
parent5e71d9d77c07fa7d4c42287a177f7b738d0cd4b9
net_sched: htb: do not mix 1ns and 64ns time units

commit 56b765b79 ("htb: improved accuracy at high rates") added another
regression for low rates, because it mixes 1ns and 64ns time units.

So the maximum delay (mbuffer) was not 60 second, but 937 ms.

Lets convert all time fields to 1ns as 64bit arches are becoming the
norm.

Reported-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Tested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c