Lines Matching refs:nh_entries
127 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh), in nh_notifier_mpath_info_init()
136 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_notifier_mpath_info_init()
140 info->nh_grp->nh_entries[i].id = nhge->nh->id; in nh_notifier_mpath_info_init()
141 info->nh_grp->nh_entries[i].weight = nhge->weight; in nh_notifier_mpath_info_init()
142 __nh_notifier_single_info_init(&info->nh_grp->nh_entries[i].nh, in nh_notifier_mpath_info_init()
474 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_free_group()
536 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc()
679 p->id = nhg->nh_entries[i].nh->id; in nla_put_nh_group()
680 p->weight = nhg->nh_entries[i].weight - 1; in nla_put_nh_group()
1161 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_select_path_hthr()
1239 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_for_each_fib6_nh()
1371 nhi = rtnl_dereference(nhg->nh_entries[0].nh->nh_info); in fib_check_nexthop()
1642 total += nhg->nh_entries[i].weight; in nh_res_group_rebalance()
1645 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_res_group_rebalance()
1679 struct nh_grp_entry *nhge = &nhg->nh_entries[j]; in nh_res_table_migrate_buckets()
1721 total += nhg->nh_entries[i].weight; in nh_hthr_group_rebalance()
1724 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_hthr_group_rebalance()
1762 nhges = nhg->nh_entries; in remove_nh_grp_entry()
1763 new_nhges = newg->nh_entries; in remove_nh_grp_entry()
1768 if (nhg->nh_entries[i].nh == nh) { in remove_nh_grp_entry()
1828 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in remove_nexthop_group()
1924 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_rt_cache_flush()
1999 newg->nh_entries[i].nh_parent = old; in replace_nexthop_grp()
2012 oldg->nh_entries[i].nh_parent = new; in replace_nexthop_grp()
2025 nhges = nhg->nh_entries; in nh_group_v4_update()
2457 nhg->nh_entries[i].nh = nhe; in nexthop_create_group()
2458 nhg->nh_entries[i].weight = entry[i].weight + 1; in nexthop_create_group()
2459 list_add(&nhg->nh_entries[i].nh_list, &nhe->grp_list); in nexthop_create_group()
2460 nhg->nh_entries[i].nh_parent = nh; in nexthop_create_group()
2495 list_del(&nhg->nh_entries[i].nh_list); in nexthop_create_group()
2496 nexthop_put(nhg->nh_entries[i].nh); in nexthop_create_group()