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)
committerZefan Li <lizefan@huawei.com>
Wed, 26 Oct 2016 15:15:43 +0000 (23:15 +0800)
commit3b02ae3d45ca3b0128317f38ce5e56828c67e53b
tree0a84ff9c63925ea5ebd26c52295183cc27f976bd
parentcc6395759b5ca1321bd4a01fb98c1ee1ae7a8627
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: Zefan Li <lizefan@huawei.com>
net/ipv6/ip6_fib.c
net/ipv6/route.c