Home
last modified time | relevance | path

Searched refs:nhg (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/net/ipv4/
Dnexthop.c134 struct nh_group *nhg) in nh_notifier_mpath_info_init() argument
136 u16 num_nh = nhg->num_nh; in nh_notifier_mpath_info_init()
146 info->nh_grp->is_fdb = nhg->fdb_nh; in nh_notifier_mpath_info_init()
147 info->nh_grp->hw_stats = nhg->hw_stats; in nh_notifier_mpath_info_init()
150 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_notifier_mpath_info_init()
163 struct nh_group *nhg) in nh_notifier_res_table_info_init() argument
165 struct nh_res_table *res_table = rtnl_dereference(nhg->res_table); in nh_notifier_res_table_info_init()
178 info->nh_res_table->hw_stats = nhg->hw_stats; in nh_notifier_res_table_info_init()
197 struct nh_group *nhg = rtnl_dereference(nh->nh_grp); in nh_notifier_grp_info_init() local
199 if (nhg->hash_threshold) in nh_notifier_grp_info_init()
[all …]
/linux-6.12.1/include/net/
Dnexthop.h334 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select() argument
339 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
342 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
349 struct nh_group *nhg = rcu_dereference_rtnl(nh->nh_grp); in nexthop_mpath_fill_node() local
352 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
353 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
356 int weight = nhg->nh_entries[i].weight; in nexthop_mpath_fill_node()
428 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_get_nhc_lookup() local
431 for (i = 0; i < nhg->num_nh; i++) { in nexthop_get_nhc_lookup()
432 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
[all …]