Re: [PATCH v2] net/ipv6: allow device-only routes via the multipath API

From: Nicolas Dichtel

Date: Fri Nov 28 2025 - 11:28:43 EST


Le 28/11/2025 à 16:54, azey a écrit :
>> On 2025-11-28 09:38:07 +0100 Nicolas Dichtel <nicolas.dichtel@xxxxxxxxx> wrote:
>>> With IPv6, unlike IPv4, the ECMP next hops can be added one by one. Your commit
>>> doesn't allow this:
>
> Hold on, I think I understand what you actually meant by this, sorry.
> I got too focused on regressions from the discussion in v1, I'll make
> a v3 of the patch that allows dev-only routes to be added via append.
Yes, that is what I pointed out.

Please, add some self-tests to show that there is no regression. You probably
have to test different combinations of NLM_F_* flags. See:

https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/tree/ip/iproute.c#n2418