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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 21:16:20 +0000 (14:16 -0700)
commit49a18d86f66d33a20144ecb5a34bba0d1856b260
tree6c6cbdcb8d9417352a85a8c605cb06ac9b4bfc0d
parent2ac3ac8f86f2fe065d746d9a9abaca867adec577
ipv6: update ip6_rt_last_gc every time GC is run

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>
net/ipv6/ip6_fib.c
net/ipv6/route.c