Lines Matching refs:nhg
304 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel)
309 if (nhsel >= nhg->num_nh)
312 return nhg->nh_entries[nhsel].nh;
319 struct nh_group *nhg = rtnl_dereference(nh->nh_grp);
322 for (i = 0; i < nhg->num_nh; i++) {
323 struct nexthop *nhe = nhg->nh_entries[i].nh;
326 int weight = nhg->nh_entries[i].weight;
398 struct nh_group *nhg = rcu_dereference(nh->nh_grp);
401 for (i = 0; i < nhg->num_nh; i++) {
402 struct nexthop *nhe = nhg->nh_entries[i].nh;
427 struct nh_group *nhg = rcu_dereference(nh->nh_grp);
430 for (i = 0; i < nhg->num_nh; i++) {
431 struct nexthop *nhe = nhg->nh_entries[i].nh;