Commit 9259f6b5 authored by Tanmay Bhushan's avatar Tanmay Bhushan Committed by David S. Miller

ipv6: Remove extra counter pull before gc

Per cpu entries are no longer used in consideration
for doing gc or not. Remove the extra per cpu entries
pull to directly check for time and perform gc.
Signed-off-by: default avatarTanmay Bhushan <007047221b@gmail.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0852208f
...@@ -3294,10 +3294,6 @@ static void ip6_dst_gc(struct dst_ops *ops) ...@@ -3294,10 +3294,6 @@ static void ip6_dst_gc(struct dst_ops *ops)
unsigned int val; unsigned int val;
int entries; int entries;
entries = dst_entries_get_fast(ops);
if (entries > ops->gc_thresh)
entries = dst_entries_get_slow(ops);
if (time_after(rt_last_gc + rt_min_interval, jiffies)) if (time_after(rt_last_gc + rt_min_interval, jiffies))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment