Home
last modified time | relevance | path

Searched refs:nhsel (Results 1 – 4 of 4) sorted by relevance

/linux/include/net/
H A Dnexthop.h338 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select() argument
343 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
346 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select()
400 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel) in nexthop_fib_nhc() argument
412 nh = nexthop_mpath_select(nh_grp, nhsel); in nexthop_fib_nhc()
427 int *nhsel) in nexthop_get_nhc_lookup() argument
440 *nhsel = i; in nexthop_get_nhc_lookup()
447 *nhsel = 0; in nexthop_get_nhc_lookup()
491 static inline struct fib_nh_common *fib_info_nhc(struct fib_info *fi, int nhsel) in fib_info_nhc() argument
494 return nexthop_fib_nhc(fi->nh, nhsel); in fib_info_nhc()
[all …]
/linux/net/ipv4/
H A Dfib_semantics.c59 int nhsel; const struct fib_nh *nh; \
60 for (nhsel = 0, nh = (fi)->fib_nh; \
61 nhsel < fib_info_num_path((fi)); \
62 nh++, nhsel++)
65 int nhsel; struct fib_nh *nexthop_nh; \
66 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
67 nhsel < fib_info_num_path((fi)); \
68 nexthop_nh++, nhsel++)
75 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
76 for (nhsel = 0; nhsel < 1; nhsel++)
[all …]
H A Dfib_trie.c1552 int nhsel, err; in fib_table_lookup() local
1585 &nhsel); in fib_table_lookup()
1591 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_table_lookup()
1592 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup()
1602 res->nh_sel = nhsel; in fib_table_lookup()
H A Droute.c1081 int nhsel; in __ip_rt_update_pmtu() local
1083 for (nhsel = 0; nhsel < fib_info_num_path(res.fi); nhsel++) { in __ip_rt_update_pmtu()
1084 nhc = fib_info_nhc(res.fi, nhsel); in __ip_rt_update_pmtu()
3164 int nhsel, genid = fnhe_genid(net); in fib_dump_info_fnhe() local
3166 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_dump_info_fnhe()
3167 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); in fib_dump_info_fnhe()
[all...]