Skip to content

ipv6: Refactor nexthop selection helpers during a fib lookup

David Ahern netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ipv6: Only call rt6_check_neigh for nexthop with gatewaynet/ipv6/route.c+7 -90 replies
2/10ipv6: Remove rt6_check_devnet/ipv6/route.c+4 -110 replies
3/10ipv6: Change rt6_probe to take a fib6_nhinclude/net/ip6_fib.h net/ipv6/route.c+12 -120 replies
4/10ipv6: Pass fib6_nh and flags to rt6_score_routenet/ipv6/route.c+10 -80 replies
5/10ipv6: Refactor find_matchnet/ipv6/route.c+32 -180 replies
6/10ipv6: Refactor find_rr_leafnet/ipv6/route.c+30 -360 replies
7/10ipv6: Be smarter with null_entry handling in ip6_pol_route_lookupnet/ipv6/route.c+13 -120 replies
8/10ipv6: Move fib6_multipath_select down in ip6_pol_routenet/ipv6/route.c+3 -30 replies
9/10ipv6: Refactor rt6_device_matchnet/ipv6/route.c+25 -130 replies
10/10ipv6: Refactor __ip6_route_redirectnet/ipv6/route.c+33 -234 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 00/10] ipv6: Refactor nexthop selection helpers during a fib lookup

From: David Ahern <[email protected]>

IPv6 has a fib6_nh embedded within each fib6_info and a separate fib6_info for each path in a multipath route. A side effect is that a fib6_info is passed all the way down the stack when selecting a path on a fib lookup. Refactor the fib lookup functions and associated helper functions to take a fib6_nh when appropriate to enable IPv6 to work with nexthop objects where the fib6_nh is not directly part of a fib entry.

David Ahern (10):
ipv6: only call rt6_check_neigh for nexthop with gateway
ipv6: Remove rt6_check_dev
ipv6: Change rt6_probe to take a fib6_nh
ipv6: Pass fib6_nh and flags to rt6_score_route
ipv6: Refactor find_match
ipv6: Refactor find_rr_leaf
ipv6: Be smarter with null_entry handling in ip6_pol_route_lookup
ipv6: Move fib6_multipath_select down in ip6_pol_route
ipv6: Refactor rt6_device_match
ipv6: Refactor __ip6_route_redirect

 include/net/ip6_fib.h |   8 +-
 net/ipv6/route.c      | 266 +++++++++++++++++++++++++++-----------------------
 2 files changed, 149 insertions(+), 125 deletions(-)
Signature · 1 line
2.11.0