mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
9e641bdcfa
commit
1495664355
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue