Skip to content

ipv6: Honor oif when choosing nexthop for locally generated traffic

Ido Schimmel netdev 3 versions – 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 · linked by author and title

  1. v3 Latest3 patches 2 repliesApplied 3/3
  2. v22 patches 3 repliesSuperseded
  3. v1 RFC2 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Add patch #1.
- Add tests with nexthop objects.

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3ipv6: Select best matching nexthop object in fib6_table_lookup()net/ipv6/route.c+9 -81 replyApplied
2/3ipv6: Honor oif when choosing nexthop for locally generated trafficnet/ipv6/route.c+4 -10 repliesApplied
3/3selftests: fib_tests: Add test cases for route lookup with oiftools/testing/selftests/net/fib_tests.sh+250 -11 replyApplied

Reviews trailers per patch

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

PatchDavid Ahern
1/3R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/3] ipv6: Honor oif when choosing nexthop for locally generated traffic

Patch #1 is a preparation patch following the comment from Sashiko on v2. See details in the commit message.

Patch #2 aligns IPv6 with IPv4 and changes IPv6 route lookup to prefer a nexthop whose nexthop device matches the specified oif.

Patch #3 adds a selftest.

v3:
- Add patch #1.
- Add tests with nexthop objects.

v2: https://lore.kernel.org/netdev/[email protected]/
- Add tests with VRFs.

v1: https://lore.kernel.org/netdev/[email protected]/

Ido Schimmel (3):
ipv6: Select best matching nexthop object in fib6_table_lookup()
ipv6: Honor oif when choosing nexthop for locally generated traffic
selftests: fib_tests: Add test cases for route lookup with oif

 net/ipv6/route.c                         |  22 +-
 tools/testing/selftests/net/fib_tests.sh | 251 ++++++++++++++++++++++-
 2 files changed, 263 insertions(+), 10 deletions(-)
Signature · 1 line
2.54.0