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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Oct 2015 02:46:13 +0000 (03:46 +0100)
commit24277c76396d5ff90832f0a60c6c5987566256ea
tree0a5e19097261f82c6ea0492ae80823e03ce5c099
parent2491f0184830c5f1e1c794283177179937def4b7
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
net/ipv6/ip6_fib.c
net/ipv6/route.c