Home
last modified time | relevance | path

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

/linux/net/mpls/
A Dinternal.h161 int nhsel; struct mpls_nh *nh; u8 *__nh; \
162 for (nhsel = 0, nh = (rt)->rt_nh, __nh = (u8 *)((rt)->rt_nh); \
163 nhsel < (rt)->rt_nhn; \
164 __nh += rt->rt_nh_size, nh = (struct mpls_nh *)__nh, nhsel++)
167 int nhsel; struct mpls_nh *nh; u8 *__nh; \
168 for (nhsel = 0, nh = (struct mpls_nh *)((rt)->rt_nh), \
170 nhsel < (rt)->rt_nhn; \
171 __nh += rt->rt_nh_size, nh = (struct mpls_nh *)__nh, nhsel++)
/linux/include/net/
A Dnexthop.h309 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()
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
[all …]
/linux/net/decnet/
A Ddn_fib.c53 #define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\
54 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
56 #define change_nexthops(fi) { int nhsel; struct dn_fib_nh *nh;\
57 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++)
439 if (nhsel < fi->fib_nhs) { in dn_fib_semantic_match()
440 res->nh_sel = nhsel; in dn_fib_semantic_match()
486 res->nh_sel = nhsel; in dn_fib_select_multipath()
A Ddn_table.c64 #define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\
65 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
/linux/net/ipv4/
A Dfib_semantics.c66 int nhsel; const struct fib_nh *nh; \
67 for (nhsel = 0, nh = (fi)->fib_nh; \
68 nhsel < fib_info_num_path((fi)); \
69 nh++, nhsel++)
75 nexthop_nh++, nhsel++)
83 for (nhsel = 0; nhsel < 1; nhsel++)
86 int nhsel; \
88 for (nhsel = 0; nhsel < 1; nhsel++)
291 onh = fib_info_nh(ofi, nhsel); in nh_comp()
2232 res->nh_sel = nhsel; in fib_select_multipath()
[all …]
A Dfib_trie.c1564 int nhsel, err; in fib_table_lookup() local
1596 &nhsel); in fib_table_lookup()
1602 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_table_lookup()
1603 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup()
1613 res->nh_sel = nhsel; in fib_table_lookup()
A Droute.c3102 int nhsel, genid = fnhe_genid(net); in fib_dump_info_fnhe() local
3104 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_dump_info_fnhe()
3105 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); in fib_dump_info_fnhe()

Completed in 25 milliseconds