Re: [PATCH net-next v5 1/2] net/ipv6: Remove expired routes with a separated list of routes.
From: David Ahern <dsahern@kernel.org>
Date: 2023-08-03 02:00:42
From: David Ahern <dsahern@kernel.org>
Date: 2023-08-03 02:00:42
On 8/1/23 6:43 PM, thinker.li@gmail.com wrote:
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index bac768d36cc1..3059e439817a 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c@@ -1480,6 +1488,9 @@ int fib6_add(struct fib6_node *root, struct fib6_info *rt, list_add(&rt->nh_list, &rt->nh->f6i_list); __fib6_update_sernum_upto_root(rt, fib6_new_sernum(info->nl_net)); fib6_start_gc(info->nl_net, rt); + + if (fib6_has_expires(rt)) + hlist_add_head(&rt->gc_link, &table->tb6_gc_hlist);
This should go before the start_gc. -- pw-bot: cr