All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@nvidia.com>
To: Kyuwon Cho <kyuwoncho18@gmail.com>
Cc: David Ahern <dsahern@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	Simon Horman <horms@kernel.org>,
	Thomas Haller <thaller@redhat.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH net] ipv6: keep the prefix route of an address with an infinite lifetime
Date: Thu, 26 Nov 2026 11:51:28 +0200	[thread overview]
Message-ID: <20261126095128.GA629435@shredder> (raw)
In-Reply-To: <179552079832.1290967.7922979459179290523@gmail.com>

On Tue, Nov 24, 2026 at 10:04:10PM +0900, Kyuwon Cho wrote:
> When an address is deleted or gets IFA_F_NOPREFIXROUTE,
> check_cleanup_prefix_route() keeps the prefix route alive as long as
> another address on the same prefix needs it. For an address that is
> not IFA_F_PERMANENT it sets the route to expire with that address:
> 
> 	lifetime = addrconf_timeout_fixup(ifa->valid_lft, HZ);
> 	if (time_before(*expires, ifa->tstamp + lifetime * HZ))
> 		*expires = ifa->tstamp + lifetime * HZ;
> 
> An autoconfigured address whose valid lifetime a Router Advertisement
> set to infinity is not IFA_F_PERMANENT, and addrconf_timeout_fixup()
> returns ~0UL for it. lifetime * HZ then wraps, *expires stays at
> jiffies, and the prefix route is removed at the next garbage collection
> while the address remains valid.
> 
> Treat an address with an infinite valid lifetime like a permanent one.
> 
> Fixes: 5b84efecb7d9 ("ipv6 addrconf: don't cleanup prefix route for IFA_F_NOPREFIXROUTE")
> Signed-off-by: Kyuwon Cho <kyuwoncho18@gmail.com>

Reviewed-by: Ido Schimmel <idosch@nvidia.com>

FWIW, this doesn't look very interesting and can be routed via net-next
(no need to repost).

  reply	other threads:[~2026-11-26  9:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 13:04 [PATCH net] ipv6: keep the prefix route of an address with an infinite lifetime Kyuwon Cho
2026-11-26  9:51 ` Ido Schimmel [this message]
2026-11-30  3:50 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126095128.GA629435@shredder \
    --to=idosch@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kyuwoncho18@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=thaller@redhat.com \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.