Skip to content

Commit 78f07ad

Browse files
committed
Merge branch 'ipv6-Refactor-nexthop-selection-helpers-during-a-fib-lookup'
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 <davem@davemloft.net>
2 parents 62720b1 + 0b34eb0 commit 78f07ad

2 files changed

Lines changed: 149 additions & 125 deletions

File tree

‎include/net/ip6_fib.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ struct rt6_exception {
127127

128128
struct fib6_nh {
129129
struct fib_nh_common nh_common;
130+
131+
#ifdef CONFIG_IPV6_ROUTER_PREF
132+
unsigned long last_probe;
133+
#endif
130134
};
131135

132136
struct fib6_info {
@@ -155,10 +159,6 @@ struct fib6_info {
155159
struct rt6_info * __percpu *rt6i_pcpu;
156160
struct rt6_exception_bucket __rcu *rt6i_exception_bucket;
157161

158-
#ifdef CONFIG_IPV6_ROUTER_PREF
159-
unsigned long last_probe;
160-
#endif
161-
162162
u32 fib6_metric;
163163
u8 fib6_protocol;
164164
u8 fib6_type;

0 commit comments

Comments
 (0)