]> 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)
commit95929a86ace0c26efe27ae7943ba1cdf2ab63f91
treed114dd1783cb9bd7b9330ee78ff90bda4241a754
parenta222fd43791d4c89e3ef55ed25a24599048e1be1
net_sched: htb: do not mix 1ns and 64ns time units

commit e6d4e1296 ("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