Lines Matching refs:nh_info

85 __nh_notifier_single_info_init(struct nh_notifier_single_info *nh_info,  in __nh_notifier_single_info_init()  argument
86 const struct nh_info *nhi) in __nh_notifier_single_info_init()
88 nh_info->dev = nhi->fib_nhc.nhc_dev; in __nh_notifier_single_info_init()
89 nh_info->gw_family = nhi->fib_nhc.nhc_gw_family; in __nh_notifier_single_info_init()
90 if (nh_info->gw_family == AF_INET) in __nh_notifier_single_info_init()
91 nh_info->ipv4 = nhi->fib_nhc.nhc_gw.ipv4; in __nh_notifier_single_info_init()
92 else if (nh_info->gw_family == AF_INET6) in __nh_notifier_single_info_init()
93 nh_info->ipv6 = nhi->fib_nhc.nhc_gw.ipv6; in __nh_notifier_single_info_init()
95 nh_info->is_reject = nhi->reject_nh; in __nh_notifier_single_info_init()
96 nh_info->is_fdb = nhi->fdb_nh; in __nh_notifier_single_info_init()
97 nh_info->has_encap = !!nhi->fib_nhc.nhc_lwtstate; in __nh_notifier_single_info_init()
103 struct nh_info *nhi = rtnl_dereference(nh->nh_info); in nh_notifier_single_info_init()
137 struct nh_info *nhi; in nh_notifier_mpath_info_init()
139 nhi = rtnl_dereference(nhge->nh->nh_info); in nh_notifier_mpath_info_init()
169 struct nh_info *nhi; in nh_notifier_res_table_info_init()
172 nhi = rtnl_dereference(nhge->nh->nh_info); in nh_notifier_res_table_info_init()
295 struct nh_info *oldi, in nh_notifier_res_bucket_info_init()
296 struct nh_info *newi) in nh_notifier_res_bucket_info_init()
327 struct nh_info *oldi, in __call_nexthop_res_bucket_notifiers()
328 struct nh_info *newi, in __call_nexthop_res_bucket_notifiers()
383 struct nh_info *oldi = nh_res_dereference(old_nh->nh_info); in call_nexthop_res_bucket_notifiers()
384 struct nh_info *newi = nh_res_dereference(new_nh->nh_info); in call_nexthop_res_bucket_notifiers()
454 static void nexthop_devhash_add(struct net *net, struct nh_info *nhi) in nexthop_devhash_add()
491 struct nh_info *nhi; in nexthop_free_single()
493 nhi = rcu_dereference_raw(nh->nh_info); in nexthop_free_single()
699 struct nh_info *nhi; in nh_fill_node()
726 nhi = rtnl_dereference(nh->nh_info); in nh_fill_node()
798 struct nh_info *nhi = rtnl_dereference(nh->nh_info); in nh_nlmsg_size_single()
1008 struct nh_info *nhi = rtnl_dereference(nh->nh_info); in valid_group_nh()
1024 struct nh_info *nhi; in nh_check_attr_fdb_group()
1026 nhi = rtnl_dereference(nh->nh_info); in nh_check_attr_fdb_group()
1162 struct nh_info *nhi; in nexthop_select_path_hthr()
1167 nhi = rcu_dereference(nhge->nh->nh_info); in nexthop_select_path_hthr()
1230 struct nh_info *nhi; in nexthop_for_each_fib6_nh()
1241 nhi = rcu_dereference_rtnl(nhge->nh->nh_info); in nexthop_for_each_fib6_nh()
1247 nhi = rcu_dereference_rtnl(nh->nh_info); in nexthop_for_each_fib6_nh()
1270 struct nh_info *nhi; in fib6_check_nexthop()
1290 nhi = rtnl_dereference(nh->nh_info); in fib6_check_nexthop()
1327 static int nexthop_check_scope(struct nh_info *nhi, u8 scope, in nexthop_check_scope()
1351 struct nh_info *nhi; in fib_check_nexthop()
1371 nhi = rtnl_dereference(nhg->nh_entries[0].nh->nh_info); in fib_check_nexthop()
1374 nhi = rtnl_dereference(nh->nh_info); in fib_check_nexthop()
1765 struct nh_info *nhi; in remove_nh_grp_entry()
1773 nhi = rtnl_dereference(nhges[i].nh->nh_info); in remove_nh_grp_entry()
1873 struct nh_info *nhi; in __remove_nexthop()
1875 nhi = rtnl_dereference(nh->nh_info); in __remove_nexthop()
1925 struct nh_info *nhi = rtnl_dereference(nhge->nh->nh_info); in nh_rt_cache_flush()
2027 struct nh_info *nhi; in nh_group_v4_update()
2029 nhi = rtnl_dereference(nhges[i].nh->nh_info); in nh_group_v4_update()
2039 struct nh_info *oldi, in replace_nexthop_single_notify_res()
2040 struct nh_info *newi, in replace_nexthop_single_notify_res()
2081 struct nh_info *oldi, in replace_nexthop_single_notify()
2082 struct nh_info *newi, in replace_nexthop_single_notify()
2106 struct nh_info *oldi, *newi; in replace_nexthop_single()
2124 oldi = rtnl_dereference(old->nh_info); in replace_nexthop_single()
2125 newi = rtnl_dereference(new->nh_info); in replace_nexthop_single()
2136 rcu_assign_pointer(old->nh_info, newi); in replace_nexthop_single()
2137 rcu_assign_pointer(new->nh_info, oldi); in replace_nexthop_single()
2165 rcu_assign_pointer(new->nh_info, newi); in replace_nexthop_single()
2166 rcu_assign_pointer(old->nh_info, oldi); in replace_nexthop_single()
2240 struct nh_info *nhi = rtnl_dereference(new->nh_info); in replace_nexthop()
2380 struct nh_info *nhi; in nexthop_flush_dev()
2445 struct nh_info *nhi; in nexthop_create_group()
2453 nhi = rtnl_dereference(nhe->nh_info); in nexthop_create_group()
2507 struct nh_info *nhi, struct nh_config *cfg, in nh_create_ipv4()
2546 struct nh_info *nhi, struct nh_config *cfg, in nh_create_ipv6()
2583 struct nh_info *nhi; in nexthop_create()
2631 rcu_assign_pointer(nh->nh_info, nhi); in nexthop_create()
3065 const struct nh_info *nhi; in nh_dump_filtered()
3076 nhi = rtnl_dereference(nh->nh_info); in nh_dump_filtered()
3554 struct nh_info *nhi; in nexthop_sync_mtu()