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