ipv6: update ip6_rt_last_gc every time GC is run
authorMichal Kubeček <mkubecek@suse.cz>
Thu, 1 Aug 2013 08:04:24 +0000 (10:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jul 2015 02:48:09 +0000 (19:48 -0700)
commitc1e1eb159efadf28f0da0de550d696abdb30aefc
tree6cc10dce8b24fbe44a8c32313a06ddd550b411fe
parentba310bc86f54169bf4ec414683bd61dcd2f8675f
ipv6: update ip6_rt_last_gc every time GC is run

commit 49a18d86f66d33a20144ecb5a34bba0d1856b260 upstream.

As pointed out by Eric Dumazet, net->ipv6.ip6_rt_last_gc should
hold the last time garbage collector was run so that we should
update it whenever fib6_run_gc() calls fib6_clean_all(), not only
if we got there from ip6_dst_gc().

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/ip6_fib.c
net/ipv6/route.c