Lines Matching defs:nhsel
304 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel)
307 * the nexthop before checking nhsel
309 if (nhsel >= nhg->num_nh)
312 return nhg->nh_entries[nhsel].nh;
366 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel)
378 nh = nexthop_mpath_select(nh_grp, nhsel);
393 int *nhsel)
406 *nhsel = i;
413 *nhsel = 0;
457 static inline struct fib_nh_common *fib_info_nhc(struct fib_info *fi, int nhsel)
460 return nexthop_fib_nhc(fi->nh, nhsel);
462 return &fi->fib_nh[nhsel].nh_common;
466 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel)
470 return &fi->fib_nh[nhsel];