Home
last modified time | relevance | path

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

/Linux-v6.1/net/mpls/
Dinternal.h161 int nhsel; const struct mpls_nh *nh; \
162 for (nhsel = 0, nh = (rt)->rt_nh; \
163 nhsel < (rt)->rt_nhn; \
164 nh = (void *)nh + (rt)->rt_nh_size, nhsel++)
167 int nhsel; struct mpls_nh *nh; \
168 for (nhsel = 0, nh = (rt)->rt_nh; \
169 nhsel < (rt)->rt_nhn; \
170 nh = (void *)nh + (rt)->rt_nh_size, nhsel++)
/Linux-v6.1/include/net/
Dnexthop.h304 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()
[all …]
/Linux-v6.1/net/ipv4/
Dfib_semantics.c69 int nhsel; const struct fib_nh *nh; \
70 for (nhsel = 0, nh = (fi)->fib_nh; \
71 nhsel < fib_info_num_path((fi)); \
72 nh++, nhsel++)
75 int nhsel; struct fib_nh *nexthop_nh; \
76 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
77 nhsel < fib_info_num_path((fi)); \
78 nexthop_nh++, nhsel++)
85 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
86 for (nhsel = 0; nhsel < 1; nhsel++)
[all …]
Dfib_trie.c1576 int nhsel, err; in fib_table_lookup() local
1609 &nhsel); in fib_table_lookup()
1615 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_table_lookup()
1616 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup()
1626 res->nh_sel = nhsel; in fib_table_lookup()
Droute.c3125 int nhsel, genid = fnhe_genid(net); in fib_dump_info_fnhe() local
3127 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_dump_info_fnhe()
3128 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); in fib_dump_info_fnhe()