[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230116145500.44699-1-007047221b@gmail.com>
Date: Mon, 16 Jan 2023 15:55:00 +0100
From: Tanmay Bhushan <007047221b@...il.com>
To: "David S. Miller" <davem@...emloft.net>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Tanmay Bhushan <007047221b@...il.com>
Subject: [PATCH] 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: Tanmay Bhushan <007047221b@...il.com>
---
net/ipv6/route.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index b643dda68d31..76889ceeead9 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -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;
--
2.34.1
Powered by blists - more mailing lists