summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2014-05-19 13:30:28 +0400
committerDavid S. Miller <davem@davemloft.net>2014-05-21 23:52:23 +0400
commit14956643550f2d2748ab08b7cbdbb3342bc942c4 (patch)
treef6b0f68e05a15105ba15931e122fc6395e05e76e /net/ipv6
parent9e641bdcfa4ef4d6e2fbaa59c1be0ad5d1551fd5 (diff)
downloadlinux-14956643550f2d2748ab08b7cbdbb3342bc942c4.tar.xz
ipv6: slight optimization in ip6_dst_gc
entries is always greater than rt_max_size here, since if entries is less than rt_max_size, the fib6_run_gc function will be skipped Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index f0a8ff9ed891..aa883afa652d 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1455,7 +1455,7 @@ static int ip6_dst_gc(struct dst_ops *ops)
goto out;
net->ipv6.ip6_rt_gc_expire++;
- fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net, entries > rt_max_size);
+ fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net, true);
entries = dst_entries_get_slow(ops);
if (entries < ops->gc_thresh)
net->ipv6.ip6_rt_gc_expire = rt_gc_timeout>>1;