diff options
author | 2018-04-17 17:33:14 -0700 | |
---|---|---|
committer | 2018-04-17 23:41:16 -0400 | |
commit | 5e670d844b2a4e47d1b9b9aceb14dd3c12a6d4bf (patch) | |
tree | 2ad5e74ffea0c7bae6f318475cf37231658c19e5 /net/ipv6/addrconf.c | |
parent | net/ipv6: Save route type in rt6_info (diff) | |
download | linux-5e670d844b2a4e47d1b9b9aceb14dd3c12a6d4bf.tar.gz linux-5e670d844b2a4e47d1b9b9aceb14dd3c12a6d4bf.tar.bz2 linux-5e670d844b2a4e47d1b9b9aceb14dd3c12a6d4bf.zip |
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>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index f71fcf2635d5..483c8772e856 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -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; |