Lines Matching refs:nh_info

59 static void nexthop_devhash_add(struct net *net, struct nh_info *nhi)  in nexthop_devhash_add()
93 struct nh_info *nhi; in nexthop_free_single()
95 nhi = rcu_dereference_raw(nh->nh_info); in nexthop_free_single()
230 struct nh_info *nhi; in nh_fill_node()
257 nhi = rtnl_dereference(nh->nh_info); in nh_fill_node()
316 struct nh_info *nhi = rtnl_dereference(nh->nh_info); in nh_nlmsg_size_single()
402 struct nh_info *nhi = rtnl_dereference(nh->nh_info); in valid_group_nh()
418 struct nh_info *nhi; in nh_check_attr_fdb_group()
420 nhi = rtnl_dereference(nh->nh_info); in nh_check_attr_fdb_group()
554 struct nh_info *nhi; in nexthop_select_path()
559 nhi = rcu_dereference(nhge->nh->nh_info); in nexthop_select_path()
589 struct nh_info *nhi; in nexthop_for_each_fib6_nh()
600 nhi = rcu_dereference_rtnl(nhge->nh->nh_info); in nexthop_for_each_fib6_nh()
606 nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_for_each_fib6_nh()
629 struct nh_info *nhi; in fib6_check_nexthop()
649 nhi = rtnl_dereference(nh->nh_info); in fib6_check_nexthop()
686 static int nexthop_check_scope(struct nh_info *nhi, u8 scope, in nexthop_check_scope()
710 struct nh_info *nhi; in fib_check_nexthop()
730 nhi = rtnl_dereference(nhg->nh_entries[0].nh->nh_info); in fib_check_nexthop()
733 nhi = rtnl_dereference(nh->nh_info); in fib_check_nexthop()
809 struct nh_info *nhi; in remove_nh_grp_entry()
817 nhi = rtnl_dereference(nhges[i].nh->nh_info); in remove_nh_grp_entry()
897 struct nh_info *nhi; in __remove_nexthop()
899 nhi = rtnl_dereference(nh->nh_info); in __remove_nexthop()
975 struct nh_info *nhi; in nh_group_v4_update()
977 nhi = rtnl_dereference(nhges[i].nh->nh_info); in nh_group_v4_update()
988 struct nh_info *oldi, *newi; in replace_nexthop_single()
995 oldi = rtnl_dereference(old->nh_info); in replace_nexthop_single()
996 newi = rtnl_dereference(new->nh_info); in replace_nexthop_single()
1004 rcu_assign_pointer(old->nh_info, newi); in replace_nexthop_single()
1005 rcu_assign_pointer(new->nh_info, oldi); in replace_nexthop_single()
1084 struct nh_info *nhi = rtnl_dereference(new->nh_info); in replace_nexthop()
1192 struct nh_info *nhi; in nexthop_flush_dev()
1256 struct nh_info *nhi; in nexthop_create_group()
1262 nhi = rtnl_dereference(nhe->nh_info); in nexthop_create_group()
1298 struct nh_info *nhi, struct nh_config *cfg, in nh_create_ipv4()
1337 struct nh_info *nhi, struct nh_config *cfg, in nh_create_ipv6()
1374 struct nh_info *nhi; in nexthop_create()
1422 rcu_assign_pointer(nh->nh_info, nhi); in nexthop_create()
1785 const struct nh_info *nhi; in nh_dump_filtered()
1796 nhi = rtnl_dereference(nh->nh_info); in nh_dump_filtered()
1933 struct nh_info *nhi; in nexthop_sync_mtu()