Lines Matching refs:nhi

257 		const struct nh_info *nhi;  in nexthop_is_fdb()  local
259 nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_is_fdb()
260 return nhi->fdb_nh; in nexthop_is_fdb()
324 struct nh_info *nhi = rcu_dereference_rtnl(nhe->nh_info); in nexthop_mpath_fill_node() local
325 struct fib_nh_common *nhc = &nhi->fib_nhc; in nexthop_mpath_fill_node()
338 const struct nh_info *nhi; in nexthop_is_blackhole() local
350 nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_is_blackhole()
351 return nhi->reject_nh; in nexthop_is_blackhole()
356 struct nh_info *nhi; in nexthop_path_fib_result() local
360 nhi = rcu_dereference(nh->nh_info); in nexthop_path_fib_result()
361 res->nhc = &nhi->fib_nhc; in nexthop_path_fib_result()
368 struct nh_info *nhi; in nexthop_fib_nhc() local
384 nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_fib_nhc()
385 return &nhi->fib_nhc; in nexthop_fib_nhc()
395 struct nh_info *nhi; in nexthop_get_nhc_lookup() local
404 nhi = rcu_dereference(nhe->nh_info); in nexthop_get_nhc_lookup()
405 if (fib_lookup_good_nhc(&nhi->fib_nhc, fib_flags, flp)) { in nexthop_get_nhc_lookup()
407 return &nhi->fib_nhc; in nexthop_get_nhc_lookup()
411 nhi = rcu_dereference(nh->nh_info); in nexthop_get_nhc_lookup()
412 if (fib_lookup_good_nhc(&nhi->fib_nhc, fib_flags, flp)) { in nexthop_get_nhc_lookup()
414 return &nhi->fib_nhc; in nexthop_get_nhc_lookup()
424 struct nh_info *nhi; in nexthop_uses_dev() local
433 nhi = rcu_dereference(nhe->nh_info); in nexthop_uses_dev()
434 if (nhc_l3mdev_matches_dev(&nhi->fib_nhc, dev)) in nexthop_uses_dev()
438 nhi = rcu_dereference(nh->nh_info); in nexthop_uses_dev()
439 if (nhc_l3mdev_matches_dev(&nhi->fib_nhc, dev)) in nexthop_uses_dev()
482 struct nh_info *nhi; in nexthop_fib6_nh() local
493 nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_fib6_nh()
494 if (nhi->family == AF_INET6) in nexthop_fib6_nh()
495 return &nhi->fib6_nh; in nexthop_fib6_nh()
505 struct nh_info *nhi; in nexthop_fib6_nh_bh() local
516 nhi = rcu_dereference_bh_rtnl(nh->nh_info); in nexthop_fib6_nh_bh()
517 if (nhi->family == AF_INET6) in nexthop_fib6_nh_bh()
518 return &nhi->fib6_nh; in nexthop_fib6_nh_bh()
534 struct nh_info *nhi; in nexthop_path_fib6_result() local
538 nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_path_fib6_result()
539 if (nhi->reject_nh) { in nexthop_path_fib6_result()
544 res->nh = &nhi->fib6_nh; in nexthop_path_fib6_result()
554 struct nh_info *nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_get_family() local
556 return nhi->family; in nexthop_get_family()
562 struct nh_info *nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_fdb_nhc() local
564 return &nhi->fib_nhc; in nexthop_fdb_nhc()
570 struct nh_info *nhi; in nexthop_path_fdb_result() local
576 nhi = rcu_dereference(nhp->nh_info); in nexthop_path_fdb_result()
577 return &nhi->fib_nhc; in nexthop_path_fdb_result()