Lines Matching refs:nhg
334 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()
457 struct nh_group *nhg = rcu_dereference(nh->nh_grp); in nexthop_uses_dev() local
460 for (i = 0; i < nhg->num_nh; i++) { in nexthop_uses_dev()
461 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_uses_dev()