[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5730342a-b96b-42c0-8945-f7f27cfe1260@kernel.org>
Date: Mon, 12 Jan 2026 08:31:09 -0700
From: David Ahern <dsahern@...nel.org>
To: Ido Schimmel <idosch@...dia.com>, netdev@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
edumazet@...gle.com, horms@...nel.org, petrm@...dia.com
Subject: Re: [PATCH net-next 5/5] selftests: fib-onlink: Add test cases for
nexthop device mismatch
On 1/11/26 5:08 AM, Ido Schimmel wrote:
> Add test cases that verify that when the "onlink" keyword is specified,
> both address families (with and without VRF) accept routes with a
> gateway address that is reachable via a different interface than the one
> specified.
>
> Output without "ipv6: Allow for nexthop device mismatch with "onlink"":
>
> # ./fib-onlink-tests.sh | grep mismatch
> TEST: nexthop device mismatch [ OK ]
> TEST: nexthop device mismatch [ OK ]
> TEST: nexthop device mismatch [FAIL]
> TEST: nexthop device mismatch [FAIL]
>
> Output with "ipv6: Allow for nexthop device mismatch with "onlink"":
>
> # ./fib-onlink-tests.sh | grep mismatch
> TEST: nexthop device mismatch [ OK ]
> TEST: nexthop device mismatch [ OK ]
> TEST: nexthop device mismatch [ OK ]
> TEST: nexthop device mismatch [ OK ]
>
> That is, the IPv4 tests were always passing, but the IPv6 ones only pass
> after the specified patch.
>
> Reviewed-by: Petr Machata <petrm@...dia.com>
> Signed-off-by: Ido Schimmel <idosch@...dia.com>
> ---
> tools/testing/selftests/net/fib-onlink-tests.sh | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists