Lines Matching defs:nhsel
190 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel)
193 * the nexthop before checking nhsel
195 if (nhsel >= nhg->num_nh)
198 return nhg->nh_entries[nhsel].nh;
252 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel)
264 nh = nexthop_mpath_select(nh_grp, nhsel);
279 int *nhsel)
292 *nhsel = i;
299 *nhsel = 0;
343 static inline struct fib_nh_common *fib_info_nhc(struct fib_info *fi, int nhsel)
346 return nexthop_fib_nhc(fi->nh, nhsel);
348 return &fi->fib_nh[nhsel].nh_common;
352 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel)
356 return &fi->fib_nh[nhsel];