Skip to content

ipv6: Use fib6_result for fib_lookups

David Ahern netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 1 replyIn review
  2. v113 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13ipv6: Rename fib6_multipath_select and pass fib6_resultinclude/net/ip6_fib.h include/net/ipv6_stubs.h net/core/filter.c +3 more+68 -640 replies
2/13ipv6: Pass fib6_result to rt6_find_cached_rtnet/ipv6/route.c+21 -140 replies
3/13ipv6: Pass fib6_result to ip6_rt_cache_allocnet/ipv6/route.c+25 -210 replies
4/13ipv6: Pass fib6_result to ip6_create_rt_rcunet/ipv6/route.c+21 -160 replies
5/13ipv6: Pass fib6_result to pcpu route functionsnet/ipv6/route.c+14 -130 replies
6/13ipv6: Pass fib6_result to ip6_rt_get_dev_rcu and ip6_rt_copy_initnet/ipv6/route.c+27 -220 replies
7/13ipv6: Pass fib6_result to rt6_insert_exceptionnet/ipv6/route.c+17 -160 replies
8/13ipv6: Pass fib6_result to ip6_mtu_from_fib6 and fib6_mtuinclude/net/ip6_route.h include/net/ipv6_stubs.h net/core/filter.c +2 more+25 -180 replies
9/13ipv6: Pass fib6_result to rt6_device_matchnet/ipv6/route.c+30 -190 replies
10/13ipv6: Pass fib6_result to rt6_select and find_rr_leafnet/ipv6/route.c+43 -390 replies
11/13ipv6: Pass fib6_result to fib6_table_lookup tracepointinclude/trace/events/fib6.h net/ipv6/route.c+11 -110 replies
12/13ipv6: Pass fib6_result to fib lookupsinclude/net/ip6_fib.h include/net/ipv6_stubs.h net/core/filter.c +4 more+46 -530 replies
13/13ipv6: Add fib6_type and fib6_flags to fib6_resultinclude/net/ip6_fib.h include/trace/events/fib6.h net/core/filter.c +1 more+52 -390 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 net-next 00/13] ipv6: Use fib6_result for fib_lookups

From: David Ahern <[email protected]>

Add fib6_result as a single data structure to hold results from a fib lookup. IPv6 currently has everything in 1 data structure - a fib6_info, but with nexthop objects the fib6_nh can be in a nexthop or a nexthop can be a blackhole which affects the fib6_type and flags (REJECT).

v2
- fixed 2 bugs in patch12:
i. checking return from fib6_table_lookup in fib6_lookup ii. call to fib6_rule_saddr in fib6_rule_action_alt should use res->nh

David Ahern (13):
ipv6: Rename fib6_multipath_select and pass fib6_result
ipv6: Pass fib6_result to rt6_find_cached_rt
ipv6: Pass fib6_result to ip6_rt_cache_alloc
ipv6: Pass fib6_result to ip6_create_rt_rcu
ipv6: Pass fib6_result to pcpu route functions
ipv6: Pass fib6_result to ip6_rt_get_dev_rcu and ip6_rt_copy_init
ipv6: Pass fib6_result to rt6_insert_exception
ipv6: Pass fib6_result to ip6_mtu_from_fib6 and fib6_mtu
ipv6: Pass fib6_result to rt6_device_match
ipv6: Pass fib6_result to rt6_select and find_rr_leaf
ipv6: Pass fib6_result to fib6_table_lookup tracepoint
ipv6: Pass fib6_result to fib lookups
ipv6: Add fib6_type and fib6_flags to fib6_result

 include/net/ip6_fib.h       |  24 ++-
 include/net/ip6_route.h     |   5 +-
 include/net/ipv6_stubs.h    |  25 ++-
 include/trace/events/fib6.h |  16 +-
 net/core/filter.c           |  56 +++---
 net/ipv6/addrconf_core.c    |  29 +--
 net/ipv6/af_inet6.c         |   2 +-
 net/ipv6/fib6_rules.c       |  34 ++--
 net/ipv6/ip6_fib.c          |   7 +-
 net/ipv6/route.c            | 443 +++++++++++++++++++++++++-------------------
 10 files changed, 348 insertions(+), 293 deletions(-)
Signature · 1 line
2.11.0