[PATCH net v2 0/2] ipv6: ignore link state in gateway check

From: Yaroslav Dudkov

Date: Wed Nov 04 2026 - 18:26:01 EST


IPv6 gateway validation can reject routes in non-main tables when
ignore_routes_with_linkdown is enabled and the nexthop device has
no carrier, even though these routes should be added.

Fix this by ignoring link state during gateway validation and add a
regression selftest covering IPv4 and IPv6 route installation.

Changes in v2:
- Fix variable ordering.
- Add a regression selftest.

v1: https://lore.kernel.org/netdev/20261028152634.3355852-1-aroslavdudkov622@xxxxxxxxx/

Yaroslav Dudkov (2):
ipv6: ignore link state in gateway check
selftests: fib_tests: Add carrier gateway test

net/ipv6/route.c | 2 +-
tools/testing/selftests/net/fib_tests.sh | 40 ++++++++++++++++++++++++
2 files changed, 41 insertions(+), 1 deletion(-)

--
2.54.0