Re: [PATCH net v2] Revert "ipv6: preserve insertion order for same-scope addresses"

Matthieu Baerts <[email protected]>
Newsgroups dev.linux.lists.regressions,org.kernel.vger.netdev
Organization NGI0 Core
Message-ID <[email protected]>

On 02/06/2026 00:01, Íñigo Huguet wrote:
> On Mon, Jun 1, 2026 at 3:35 PM Stefano Brivio <[email protected]> wrote:
>> I was thinking that if we implement a label like NLM_F_INSERT_LAST
>> (David's proposal for the name), we could patch iproute2 to set it on
>> 'ip address restore' at least, other than using it in pasta(1).

(...)

> What if we reapply the patch and add a NLM_F_INSERT_FIRST /
> NLM_F_PREPEND option instead? This will break UAPI, which is bad, but
> probably not too bad per the conversations in this and the other
> thread. 

I guess it is safer not to break UAPI and not reapplying the patch,
especially when there is no clear way to know which order is taken by
the kernel.

What about clearly stating that the default order is "random", except
when an additional flag is set to sort them chronologically or the opposite?

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.