Re: IPv6 address insertion order (was Re: [PATCH net v2] Revert "ipv6: preserve insertion order for same-scope addresses")

David Gibson <[email protected]>
Newsgroups dev.linux.lists.regressions,org.kernel.vger.netdev
Message-ID <ah-J1dXqU_sVAvZa@zatzit>
On Tue, Jun 02, 2026 at 02:46:22PM +0200, Andrew Lunn wrote:
> On Tue, Jun 02, 2026 at 04:44:19PM +1000, David Gibson wrote:
> > I get the impression there's a rough consensus that the best we can do
> > now is revert this change (already done), and make a new patch which
> > changes the insertion order to the "correct" one conditional on a new
> > flag.
> > 
> > Stefano has enough other fires to fight, so I'm taking a look at
> > implementing that.  Some initial thoughts, that I'm soliciting
> > feedback on:
> 
> I've only been partially reading along...
> 
> Are we talking about RTM_NEWADDR?

Yes.

> I've never worked on the code dealing with addresses. But in general,
> if you want to add new functionality to a netlink message, you add a
> new attribute to the message.
> 
> https://elixir.bootlin.com/linux/v7.0.10/source/include/uapi/linux/if_addr.h#L26

Ah, good point, that's another option, and avoids using scarce flags
bits.  It is a little bit odd, because generally the attributes are,
well, attributes, _of the new object_ being created (an address in
this case).  Here we're adjusting where / how it is created, not
anything about the address itself.

Stil, definitely a better option that allocating a new flags bit.
Versus NLM_F_APPEND, I'll reply to Ido Schimmel.

-- 
David Gibson (he or they)	| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you, not the other way
				| around.
http://www.ozlabs.org/~dgibson
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmoficQACgkQzQJF27ox
2GckJRAAp/Rom7Qqxxgv2lJyXU6YnG4KgR/0AZL28Pwlz9AwNjz+xvI7nLXUQz6T
dRjoeYf+PxCnBTRkq+Qf6Vj3xHunGVETKFe3RDbccntUhycEjIU5YXfv3mwm0rsO
EJHnD45Uaw40giPBOyirOYQiUGDWunTamtspzBijHMBrusQbav6uSGsIE8B87NaN
TL7CCnKAd5R1neRgbz7GRQcxyuHv4UZ4CbZ1Ur80iDOu6nx9q2WtKtIJliwi2JVz
aPro4dsoy5hKdDOjAD9TMFiUVXURbFWfjfdWQiMr7Tx+XBsnjuFigP5RlMN4LDhG
n62Im1hvUDjO/qWdfvvhEree3Z3a+2NlJmRMKEIV362TRNd+MM77MJ9CL5uveL4R
gE+goVp3P/mD3mV8lYFmNNsXstV5aCUzExo4U8LpxBX9JLFLtNLsPORFOg4zYNUM
qE2ClvXIrWGNbO0QjAUGCBj72QBBUAafWwgwJE3jr6pIZF/NBK2d0r052vAdsQJa
PVjM/9Wn44Rny8B0ZyS9VmYnTyS4YiBPtKEE9Xa5JGgFuU6kSOPHVvwmZ0LkyB6O
fvQGbIu5GdIg54OL9CeFFAMZANN9AglfRyP1ZqHkRp1qleIAr8snpVyqviWPHx/q
dVoa/u1FA89R0tn/yn4cKhuDU8m58VmkYucisr8iX8PjfPexAnM=
=ocnP
-----END PGP SIGNATURE-----
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.