Skip to content

Commit

Permalink
Merge branch 'ipv6-Refactor-nexthop-selection-helpers-during-a-fib-lo…
Browse files Browse the repository at this point in the history
…okup'

David Ahern says:

====================
ipv6: Refactor nexthop selection helpers during a fib lookup

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.
====================

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Apr 11, 2019
2 parents 62720b1 + 0b34eb0 commit 78f07ad
Show file tree
Hide file tree
Showing 2 changed files with 149 additions and 125 deletions.
8 changes: 4 additions & 4 deletions include/net/ip6_fib.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ struct rt6_exception {

struct fib6_nh {
struct fib_nh_common nh_common;

#ifdef CONFIG_IPV6_ROUTER_PREF
unsigned long last_probe;
#endif
};

struct fib6_info {
Expand Down Expand Up @@ -155,10 +159,6 @@ struct fib6_info {
struct rt6_info * __percpu *rt6i_pcpu;
struct rt6_exception_bucket __rcu *rt6i_exception_bucket;

#ifdef CONFIG_IPV6_ROUTER_PREF
unsigned long last_probe;
#endif

u32 fib6_metric;
u8 fib6_protocol;
u8 fib6_type;
Expand Down
Loading

0 comments on commit 78f07ad

Please sign in to comment.