* [PATCH net-next] ipv6: slight optimization in ip6_dst_gc
@ 2014-05-19 9:30 rongqing.li
2014-05-21 19:53 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: rongqing.li @ 2014-05-19 9:30 UTC (permalink / raw)
To: netdev
From: Li RongQing <roy.qing.li@gmail.com>
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>
---
net/ipv6/route.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] ipv6: slight optimization in ip6_dst_gc
2014-05-19 9:30 [PATCH net-next] ipv6: slight optimization in ip6_dst_gc rongqing.li
@ 2014-05-21 19:53 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-05-21 19:53 UTC (permalink / raw)
To: rongqing.li; +Cc: netdev
From: <rongqing.li@windriver.com>
Date: Mon, 19 May 2014 17:30:28 +0800
> From: Li RongQing <roy.qing.li@gmail.com>
>
> 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>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-21 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 9:30 [PATCH net-next] ipv6: slight optimization in ip6_dst_gc rongqing.li
2014-05-21 19:53 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).