net/ipv6: Move nexthop data to fib6_nh
Introduce fib6_nh structure and move nexthop related data from rt6_info and rt6_info.dst to fib6_nh. References to dev, gateway or lwtstate from a FIB lookup perspective are converted to use fib6_nh; datapath references to dst version are left as is. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e8478e80e5
commit
5e670d844b
@@ -2369,7 +2369,7 @@ static struct rt6_info *addrconf_get_prefix_route(const struct in6_addr *pfx,
|
||||
goto out;
|
||||
|
||||
for_each_fib6_node_rt_rcu(fn) {
|
||||
if (rt->dst.dev->ifindex != dev->ifindex)
|
||||
if (rt->fib6_nh.nh_dev->ifindex != dev->ifindex)
|
||||
continue;
|
||||
if ((rt->rt6i_flags & flags) != flags)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user