ipv6: Handle all fib6_nh in a nexthop in __find_rr_leaf
authorDavid Ahern <dsahern@gmail.com>
Sat, 8 Jun 2019 21:53:25 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 17:44:56 +0000 (10:44 -0700)
commit17a5984eee6ca57ace04285f574dd1efa0e8dd0f
tree5a210008ed21529f57c70abfeebee01619090427
parent962b68038351396ae218560c2f5b7af3e54d304c
ipv6: Handle all fib6_nh in a nexthop in __find_rr_leaf

Add a hook in __find_rr_leaf to handle nexthop struct in a fib6_info.
nexthop_for_each_fib6_nh is used to walk each fib6_nh in a nexthop and
call find_match. On a match, use the fib6_nh saved in the callback arg
to setup fib6_result.

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