Skip to contentSkip to conversation

ipv6: Remove extra counter pull before gc

PATCH Applied Tanmay Bhushan 3 participants 3 messages Jan 16, 2023 – Jan 18, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/ipv6/route.c | 4 ----
 1 file changed, 4 deletions(-)
net/ipv6/route.c +0 -4
index b643dda68d31..76889ceeead9 100644
@@ -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;
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Tanmay Bhushan

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.

---
 net/ipv6/route.c | 4 ----
 1 file changed, 4 deletions(-)

OK, please next time specify which tree your patch is targeting (this is for net-next tree here)

Thanks.

#2 lore raw
In reply to Tanmay Bhushan
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 8 lines · On Mon, 16 Jan 2023 15:55:00 +0100 you wrote:

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.

---
 net/ipv6/route.c | 4 ----
 1 file changed, 4 deletions(-)

Here is the summary with links:
- ipv6: Remove extra counter pull before gc

    https://git.kernel.org/netdev/net-next/c/9259f6b573cf

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html