Lines Matching defs:nhsel
336 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel)
339 * the nexthop before checking nhsel
341 if (nhsel >= nhg->num_nh)
344 return nhg->nh_entries[nhsel].nh;
398 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel)
410 nh = nexthop_mpath_select(nh_grp, nhsel);
425 int *nhsel)
438 *nhsel = i;
445 *nhsel = 0;
489 static inline struct fib_nh_common *fib_info_nhc(struct fib_info *fi, int nhsel)
492 return nexthop_fib_nhc(fi->nh, nhsel);
494 return &fi->fib_nh[nhsel].nh_common;
498 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel)
502 return &fi->fib_nh[nhsel];