Lines Matching refs:nh_entries

79 		struct nh_grp_entry *nhge = &nhg->nh_entries[i];  in nexthop_free_mpath()
138 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc()
213 p->id = nhg->nh_entries[i].nh->id; in nla_put_nh_group()
214 p->weight = nhg->nh_entries[i].weight - 1; in nla_put_nh_group()
553 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_select_path()
598 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nexthop_for_each_fib6_nh()
730 nhi = rtnl_dereference(nhg->nh_entries[0].nh->nh_info); in fib_check_nexthop()
768 total += nhg->nh_entries[i].weight; in nh_group_rebalance()
771 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in nh_group_rebalance()
806 nhges = nhg->nh_entries; in remove_nh_grp_entry()
807 new_nhges = newg->nh_entries; in remove_nh_grp_entry()
812 if (nhg->nh_entries[i].nh == nh) { in remove_nh_grp_entry()
857 struct nh_grp_entry *nhge = &nhg->nh_entries[i]; in remove_nexthop_group()
955 newg->nh_entries[i].nh_parent = old; in replace_nexthop_grp()
960 oldg->nh_entries[i].nh_parent = new; in replace_nexthop_grp()
973 nhges = nhg->nh_entries; in nh_group_v4_update()
1266 nhg->nh_entries[i].nh = nhe; in nexthop_create_group()
1267 nhg->nh_entries[i].weight = entry[i].weight + 1; in nexthop_create_group()
1268 list_add(&nhg->nh_entries[i].nh_list, &nhe->grp_list); in nexthop_create_group()
1269 nhg->nh_entries[i].nh_parent = nh; in nexthop_create_group()
1286 list_del(&nhg->nh_entries[i].nh_list); in nexthop_create_group()
1287 nexthop_put(nhg->nh_entries[i].nh); in nexthop_create_group()