ipv6: Remove extra counter pull before gc
authorTanmay Bhushan <007047221b@gmail.com>
Mon, 16 Jan 2023 14:55:00 +0000 (15:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 13:00:16 +0000 (13:00 +0000)
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: Tanmay Bhushan <007047221b@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c

index b643dda..76889ce 100644 (file)
@@ -3294,10 +3294,6 @@ static void ip6_dst_gc(struct dst_ops *ops)
        unsigned int val;
        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))
                goto out;