Home
last modified time | relevance | path

Searched refs:nhg (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/net/ipv4/
H A Dnexthop.c121 struct nh_group *nhg) in nh_notifier_mpath_info_init()
123 u16 num_nh = nhg->num_nh; in nh_notifier_mpath_info_init()
133 info->nh_grp->is_fdb = nhg->fdb_nh; in nh_notifier_mpath_info_init()
136 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_notifier_mpath_info_init()
150 struct nh_group *nhg) in nh_notifier_res_table_info_init()
152 struct nh_res_table *res_table = rtnl_dereference(nhg->res_table); in nh_notifier_res_table_info_init()
183 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_notifier_grp_info_init() local
185 if (nhg->hash_threshold) in nh_notifier_grp_info_init()
186 return nh_notifier_mpath_info_init(info, nhg); in nh_notifier_grp_info_init()
187 else if (nhg in nh_notifier_grp_info_init()
120 nh_notifier_mpath_info_init(struct nh_notifier_info *info, struct nh_group *nhg) nh_notifier_mpath_info_init() argument
149 nh_notifier_res_table_info_init(struct nh_notifier_info *info, struct nh_group *nhg) nh_notifier_res_table_info_init() argument
195 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); nh_notifier_grp_info_fini() local
257 struct nh_group *nhg; nh_notifier_res_bucket_idle_timer_get() local
397 struct nh_group *nhg; call_nexthop_res_table_notifiers() local
469 struct nh_group *nhg; nexthop_free_group() local
534 struct nh_group *nhg; nexthop_grp_alloc() local
629 nla_put_nh_group_res(struct sk_buff *skb, struct nh_group *nhg) nla_put_nh_group_res() argument
657 nla_put_nh_group(struct sk_buff *skb, struct nh_group *nhg) nla_put_nh_group() argument
717 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); nh_fill_node() local
774 nh_nlmsg_size_grp_res(struct nh_group *nhg) nh_nlmsg_size_grp_res() argument
785 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); nh_nlmsg_size_grp() local
993 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); valid_group_nh() local
1049 struct nexthop_grp *nhg; nh_check_attr_group() local
1169 nexthop_select_path_fdb(struct nh_group *nhg, int hash) nexthop_select_path_fdb() argument
1186 nexthop_select_path_hthr(struct nh_group *nhg, int hash) nexthop_select_path_hthr() argument
1215 nexthop_select_path_res(struct nh_group *nhg, int hash) nexthop_select_path_res() argument
1233 struct nh_group *nhg; nexthop_select_path() local
1257 struct nh_group *nhg; nexthop_for_each_fib6_nh() local
1306 struct nh_group *nhg; fib6_check_nexthop() local
1378 struct nh_group *nhg; fib_check_nexthop() local
1654 nh_res_group_rebalance(struct nh_group *nhg, struct nh_res_table *res_table) nh_res_group_rebalance() argument
1690 nh_res_table_migrate_buckets(struct nh_res_table *res_table, struct nh_group *nhg) nh_res_table_migrate_buckets() argument
1737 nh_hthr_group_rebalance(struct nh_group *nhg) nh_hthr_group_rebalance() argument
1763 struct nh_group *nhg, *newg; remove_nh_grp_entry() local
1846 struct nh_group *nhg = rcu_dereference_rtnl(nh->nh_grp); remove_nexthop_group() local
1930 struct nh_group *nhg; nh_rt_cache_flush() local
2042 nh_group_v4_update(struct nh_group *nhg) nh_group_v4_update() argument
2108 struct nh_group *nhg = rtnl_dereference(group_nh->nh_grp); replace_nexthop_single_notify() local
2178 struct nh_group *nhg; replace_nexthop_single() local
2349 struct nh_group *nhg = rtnl_dereference(new_nh->nh_grp); insert_nexthop() local
2437 struct nh_group *nhg; nexthop_create_group() local
3258 struct nh_group *nhg; nexthop_find_group_resilient() local
3363 struct nh_group *nhg; rtm_dump_nexthop_bucket_nh() local
3403 struct nh_group *nhg; rtm_dump_nexthop_bucket_cb() local
3510 struct nh_group *nhg; rtm_get_nexthop_bucket() local
3677 struct nh_group *nhg; nexthop_bucket_set_hw_flags() local
3710 struct nh_group *nhg; nexthop_res_grp_activity_update() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dnexthop.c74 struct nh_group *nhg; in nexthop_free_mpath() local
77 nhg = rcu_dereference_raw(nh->nh_grp); in nexthop_free_mpath()
78 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_free_mpath()
79 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_free_mpath()
85 WARN_ON(nhg->spare == nhg); in nexthop_free_mpath()
87 kfree(nhg->spare); in nexthop_free_mpath()
88 kfree(nhg); in nexthop_free_mpath()
136 struct nh_group *nhg; in nexthop_grp_alloc() local
138 nhg in nexthop_grp_alloc()
193 nla_put_nh_group(struct sk_buff *skb, struct nh_group *nhg) nla_put_nh_group() argument
249 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); nh_fill_node() local
308 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); nh_nlmsg_size_grp() local
391 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); valid_group_nh() local
443 struct nexthop_grp *nhg; nh_check_attr_group() local
546 struct nh_group *nhg; nexthop_select_path() local
594 struct nh_group *nhg; nexthop_for_each_fib6_nh() local
643 struct nh_group *nhg; fib6_check_nexthop() local
715 struct nh_group *nhg; fib_check_nexthop() local
762 nh_group_rebalance(struct nh_group *nhg) nh_group_rebalance() argument
787 struct nh_group *nhg, *newg; remove_nh_grp_entry() local
854 struct nh_group *nhg = rcu_dereference_rtnl(nh->nh_grp); remove_nexthop_group() local
932 struct nh_group *nhg; nh_rt_cache_flush() local
989 nh_group_v4_update(struct nh_group *nhg) nh_group_v4_update() argument
1037 struct nh_group *nhg; replace_nexthop_single() local
1248 struct nh_group *nhg; nexthop_create_group() local
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dnexthop.h190 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select() argument
195 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
198 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
205 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nexthop_mpath_fill_node() local
208 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
209 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
212 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
284 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
287 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
288 struct nexthop *nhe = nhg in nexthop_get_nhc_lookup()
313 struct nh_group *nhg = rcu_dereference(nh->nh_grp); nexthop_uses_dev() local
[all...]
/kernel/linux/linux-6.6/include/net/
H A Dnexthop.h304 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select() argument
309 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
312 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
319 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nexthop_mpath_fill_node() local
322 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
323 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
326 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
398 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
401 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
402 struct nexthop *nhe = nhg in nexthop_get_nhc_lookup()
427 struct nh_group *nhg = rcu_dereference(nh->nh_grp); nexthop_uses_dev() local
[all...]

Completed in 7 milliseconds