Searched refs:nhsel (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/net/mpls/ |
| H A D | internal.h | 161 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-6.15/include/net/ |
| H A D | nexthop.h | 339 if (nhsel >= nhg->num_nh) in nexthop_mpath_select() 342 return nhg->nh_entries[nhsel].nh; in nexthop_mpath_select() 396 struct fib_nh_common *nexthop_fib_nhc(struct nexthop *nh, int nhsel) in nexthop_fib_nhc() argument 408 nh = nexthop_mpath_select(nh_grp, nhsel); in nexthop_fib_nhc() 423 int *nhsel) in nexthop_get_nhc_lookup() argument 436 *nhsel = i; in nexthop_get_nhc_lookup() 443 *nhsel = 0; in nexthop_get_nhc_lookup() 490 return nexthop_fib_nhc(fi->nh, nhsel); in fib_info_nhc() 492 return &fi->fib_nh[nhsel].nh_common; in fib_info_nhc() 496 static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel) in fib_info_nh() argument [all …]
|
| /linux-6.15/net/ipv4/ |
| H A D | fib_semantics.c | 59 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++) 68 nexthop_nh++, nhsel++) 76 for (nhsel = 0; nhsel < 1; nhsel++) 79 int nhsel; \ 81 for (nhsel = 0; nhsel < 1; nhsel++) 285 onh = fib_info_nh(ofi, nhsel); in nh_comp() 2187 res->nh_sel = nhsel; in fib_select_multipath() [all …]
|
| H A D | fib_trie.c | 1552 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 D | route.c | 1040 int nhsel; in __ip_rt_update_pmtu() local 1042 for (nhsel = 0; nhsel < fib_info_num_path(res.fi); nhsel++) { in __ip_rt_update_pmtu() 1043 nhc = fib_info_nhc(res.fi, nhsel); in __ip_rt_update_pmtu() 3115 int nhsel, genid = fnhe_genid(net); in fib_dump_info_fnhe() local 3117 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_dump_info_fnhe() 3118 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); in fib_dump_info_fnhe()
|