Lines Matching refs:nhg
190 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel)
195 if (nhsel >= nhg->num_nh)
198 return nhg->nh_entries[nhsel].nh;
205 struct nh_group *nhg = rtnl_dereference(nh->nh_grp);
208 for (i = 0; i < nhg->num_nh; i++) {
209 struct nexthop *nhe = nhg->nh_entries[i].nh;
212 int weight = nhg->nh_entries[i].weight;
284 struct nh_group *nhg = rcu_dereference(nh->nh_grp);
287 for (i = 0; i < nhg->num_nh; i++) {
288 struct nexthop *nhe = nhg->nh_entries[i].nh;
313 struct nh_group *nhg = rcu_dereference(nh->nh_grp);
316 for (i = 0; i < nhg->num_nh; i++) {
317 struct nexthop *nhe = nhg->nh_entries[i].nh;