Skip to content

ipv6: Allow for nexthop device mismatch with "onlink"

Ido Schimmel netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5selftests: fib-onlink: Remove "wrong nexthop device" IPv4 teststools/testing/selftests/net/fib-onlink-tests.sh+0 -61 replyApplied
2/5selftests: fib-onlink: Remove "wrong nexthop device" IPv6 teststools/testing/selftests/net/fib-onlink-tests.sh+0 -71 replyApplied
3/5selftests: fib-onlink: Add a test case for IPv4 multicast gatewaytools/testing/selftests/net/fib-onlink-tests.sh+6 -11 replyApplied
4/5ipv6: Allow for nexthop device mismatch with "onlink"net/ipv6/route.c+2 -51 replyApplied
5/5selftests: fib-onlink: Add test cases for nexthop device mismatchtools/testing/selftests/net/fib-onlink-tests.sh+8 -01 replyApplied

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchPetr MachataDavid Ahern
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/5] ipv6: Allow for nexthop device mismatch with "onlink"

This patchset aligns IPv6 with IPv4 with respect to the "onlink" keyword and allows IPv6 routes to be configured with a gateway address that is resolved out of a different interface than the one specified.

Patches #1-#3 are small preparations in the existing "onlink" selftest.

Patch #4 is the actual change. See the commit message for detailed description and motivation.

Patch #5 adds test cases for both address families, to make sure that this use case does not regress.

Ido Schimmel (5):
selftests: fib-onlink: Remove "wrong nexthop device" IPv4 tests
selftests: fib-onlink: Remove "wrong nexthop device" IPv6 tests
selftests: fib-onlink: Add a test case for IPv4 multicast gateway
ipv6: Allow for nexthop device mismatch with "onlink"
selftests: fib-onlink: Add test cases for nexthop device mismatch

 net/ipv6/route.c                              |  7 ++---
 .../testing/selftests/net/fib-onlink-tests.sh | 28 +++++++++----------
 2 files changed, 16 insertions(+), 19 deletions(-)
Signature · 1 line
2.52.0