ipv6: Pass fib6_result to rt6_select and find_rr_leaf
authorDavid Ahern <dsahern@gmail.com>
Tue, 16 Apr 2019 21:36:08 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Apr 2019 06:10:47 +0000 (23:10 -0700)
commitb7bc4b6a620becacbc70fc617b8bbdb16f401f85
tree918c22664c7e9f3130542ad3a8b636d6ec28d0de
parent75ef7389dd2339e5f2a7347aadbdbded8dd8430f
ipv6: Pass fib6_result to rt6_select and find_rr_leaf

Pass fib6_result to rt6_select. Instead of returning the fib entry, it
will set f6i and nh based on the lookup.

find_rr_leaf is changed to remove the match option in favor of taking
fib6_result and having __find_rr_leaf set f6i in the result.

In the process, update fib6_info references in __find_rr_leaf to f6i names.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c