summaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2014-05-19 17:30:28 +0800
committerDavid S. Miller <davem@davemloft.net>2014-05-21 15:52:23 -0400
commit14956643550f2d2748ab08b7cbdbb3342bc942c4 (patch)
treef6b0f68e05a15105ba15931e122fc6395e05e76e /net/ipv6/route.c
parent9e641bdcfa4ef4d6e2fbaa59c1be0ad5d1551fd5 (diff)
downloadop-kernel-dev-14956643550f2d2748ab08b7cbdbb3342bc942c4.zip
op-kernel-dev-14956643550f2d2748ab08b7cbdbb3342bc942c4.tar.gz
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/route.c')
-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 f0a8ff9..aa883af 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;
OpenPOWER on IntegriCloud