OSDN Git Service

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

Add a hook in rt6_device_match to handle nexthop struct in a fib6_info.
The new rt6_nh_dev_match uses nexthop_for_each_fib6_nh to walk each
fib6_nh in a nexthop and call __rt6_device_match. On match,
rt6_nh_dev_match returns the fib6_nh and rt6_device_match uses it 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