diff options
author | Wei Wang <weiwan@google.com> | 2017-06-17 10:42:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-17 22:54:00 -0400 |
commit | db916649b5dd0fa2bddeb9427dab513b41e1e984 (patch) | |
tree | 568c3f3e38d851cf39412f0d86fb778943569f84 /net/ipv6/ip6_fib.c | |
parent | 587fea74113463b74e0d2994caf9e5f8045c28af (diff) | |
download | lwn-db916649b5dd0fa2bddeb9427dab513b41e1e984.tar.gz lwn-db916649b5dd0fa2bddeb9427dab513b41e1e984.zip |
ipv6: get rid of icmp6 dst garbage collector
icmp6 dst route is currently ref counted during creation and will be
freed by user during its call of dst_release(). So no need of a garbage
collector for it.
Remove all icmp6 dst garbage collector related code.
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_fib.c')
-rw-r--r-- | net/ipv6/ip6_fib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index e3b35e146eef..c67ec79bf0da 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c @@ -1822,8 +1822,7 @@ void fib6_run_gc(unsigned long expires, struct net *net, bool force) } gc_args.timeout = expires ? (int)expires : net->ipv6.sysctl.ip6_rt_gc_interval; - - gc_args.more = icmp6_dst_gc(); + gc_args.more = 0; fib6_clean_all(net, fib6_age, &gc_args); now = jiffies; |