Re: [PATCH net-next v5 1/2] net/ipv6: Remove expired routes with a separated list of routes.
From: Kui-Feng Lee <hidden>
Date: 2023-08-03 04:19:28
From: Kui-Feng Lee <hidden>
Date: 2023-08-03 04:19:28
On 8/2/23 19:00, David Ahern wrote:
On 8/1/23 6:43 PM, thinker.li@gmail.com wrote:quoted
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.
Agree