Searched refs:nhsel (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/net/mpls/ |
D | internal.h | 161 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++)
|
/kernel/linux/linux-5.10/include/net/ |
D | nexthop.h | 190 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select() argument 195 if (nhsel >= nhg->num_nh) in nexthop_mpath_select() 198 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select() 252 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel) in nexthop_fib_nhc() argument 264 nh = nexthop_mpath_select(nh_grp, nhsel); in nexthop_fib_nhc() 279 int *nhsel) in nexthop_get_nhc_lookup() argument 292 *nhsel = i; in nexthop_get_nhc_lookup() 299 *nhsel = 0; in nexthop_get_nhc_lookup() 343 static inline struct fib_nh_common *fib_info_nhc(struct fib_info *fi, int nhsel) in fib_info_nhc() argument 346 return nexthop_fib_nhc(fi->nh, nhsel); in fib_info_nhc() [all …]
|
/kernel/linux/linux-5.10/net/decnet/ |
D | dn_fib.c | 53 #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++) 440 if (nhsel < fi->fib_nhs) { in dn_fib_semantic_match() 441 res->nh_sel = nhsel; in dn_fib_semantic_match() 487 res->nh_sel = nhsel; in dn_fib_select_multipath()
|
D | dn_table.c | 64 #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++)
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | fib_semantics.c | 67 int nhsel; const struct fib_nh *nh; \ 68 for (nhsel = 0, nh = (fi)->fib_nh; \ 69 nhsel < fib_info_num_path((fi)); \ 70 nh++, nhsel++) 73 int nhsel; struct fib_nh *nexthop_nh; \ 74 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \ 75 nhsel < fib_info_num_path((fi)); \ 76 nexthop_nh++, nhsel++) 83 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \ 84 for (nhsel = 0; nhsel < 1; nhsel++) [all …]
|
D | fib_trie.c | 1529 int nhsel, err; in fib_table_lookup() local 1561 &nhsel); in fib_table_lookup() 1567 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_table_lookup() 1568 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup() 1578 res->nh_sel = nhsel; in fib_table_lookup()
|
D | route.c | 3049 int nhsel, genid = fnhe_genid(net); in fib_dump_info_fnhe() local 3051 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_dump_info_fnhe() 3052 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); in fib_dump_info_fnhe()
|