Message ID | 20240202082200.227031-3-thinker.li@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Remove expired routes with a separated list of routes. | expand |
On 2/2/24 1:21 AM, thinker.li@gmail.com wrote: > From: Kui-Feng Lee <thinker.li@gmail.com> > > The route here is newly created. It is unnecessary to call > fib6_clean_expires() on it. > > Suggested-by: Eric Dumazet <edumazet@google.com> > Reviewed-by: Hangbin Liu <liuhangbin@gmail.com> > Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com> > --- > net/ipv6/route.c | 2 -- > 1 file changed, 2 deletions(-) > Reviewed-by: David Ahern <dsahern@kernel.org>
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 98abba8f15cd..dd6ff5b20918 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -3765,8 +3765,6 @@ static struct fib6_info *ip6_route_info_create(struct fib6_config *cfg, if (cfg->fc_flags & RTF_EXPIRES) fib6_set_expires(rt, jiffies + clock_t_to_jiffies(cfg->fc_expires)); - else - fib6_clean_expires(rt); if (cfg->fc_protocol == RTPROT_UNSPEC) cfg->fc_protocol = RTPROT_BOOT;