]> git.baikalelectronics.ru Git - 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)
commitcb6b526b54820faee8d3c436c8475eae8ade8011
treed114dd1783cb9bd7b9330ee78ff90bda4241a754
parentdba3fcf1bc48d886db735f2b06fd173a07e19099
net_sched: htb: do not mix 1ns and 64ns time units

commit 4894d8b5d ("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