[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e8ca99dd-416a-f1a0-c858-1d8889a83592@kernel.org>
Date: Wed, 2 Aug 2023 20:00:40 -0600
From: David Ahern <dsahern@...nel.org>
To: thinker.li@...il.com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, netdev@...r.kernel.org, pabeni@...hat.com,
martin.lau@...ux.dev, kernel-team@...a.com, yhs@...a.com
Cc: sinquersw@...il.com, kuifeng@...a.com
Subject: Re: [PATCH net-next v5 1/2] net/ipv6: Remove expired routes with a
separated list of routes.
On 8/1/23 6:43 PM, thinker.li@...il.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
Powered by blists - more mailing lists