Home
last modified time | relevance | path

Searched refs:nhsel (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/net/mpls/
H 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++)
/kernel/linux/linux-6.6/net/mpls/
H A 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++)
/kernel/linux/linux-5.10/include/net/
H A Dnexthop.h190 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select() argument
193 * the nexthop before checking nhsel in nexthop_mpath_select()
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()
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
276 nexthop_get_nhc_lookup(const struct nexthop *nh, int fib_flags, const struct flowi4 *flp, int *nhsel) nexthop_get_nhc_lookup() argument
352 fib_info_nh(struct fib_info *fi, int nhsel) fib_info_nh() argument
[all...]
/kernel/linux/linux-6.6/include/net/
H A Dnexthop.h304 struct nexthop *nexthop_mpath_select(const struct nh_group *nhg, int nhsel) in nexthop_mpath_select() argument
307 * the nexthop before checking nhsel in nexthop_mpath_select()
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()
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
390 nexthop_get_nhc_lookup(const struct nexthop *nh, int fib_flags, const struct flowi4 *flp, int *nhsel) nexthop_get_nhc_lookup() argument
466 fib_info_nh(struct fib_info *fi, int nhsel) fib_info_nh() argument
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dfib_semantics.c68 int nhsel; const struct fib_nh *nh; \
69 for (nhsel = 0, nh = (fi)->fib_nh; \
70 nhsel < fib_info_num_path((fi)); \
71 nh++, nhsel++)
74 int nhsel; struct fib_nh *nexthop_nh; \
75 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
76 nhsel < fib_info_num_path((fi)); \
77 nexthop_nh++, nhsel++)
84 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
85 for (nhsel
[all...]
H A Dfib_trie.c1529 int nhsel, err; in fib_table_lookup() local
1562 &nhsel); in fib_table_lookup()
1568 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_table_lookup()
1569 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup()
1579 res->nh_sel = nhsel; in fib_table_lookup()
H A Droute.c3047 int nhsel, genid = fnhe_genid(net); in fib_dump_info_fnhe() local
3049 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_dump_info_fnhe()
3050 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); in fib_dump_info_fnhe()
/kernel/linux/linux-6.6/net/ipv4/
H A Dfib_semantics.c70 int nhsel; const struct fib_nh *nh; \
71 for (nhsel = 0, nh = (fi)->fib_nh; \
72 nhsel < fib_info_num_path((fi)); \
73 nh++, nhsel++)
76 int nhsel; struct fib_nh *nexthop_nh; \
77 for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
78 nhsel < fib_info_num_path((fi)); \
79 nexthop_nh++, nhsel++)
86 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
87 for (nhsel
[all...]
H A Dfib_trie.c1576 int nhsel, err; in fib_table_lookup() local
1610 &nhsel); in fib_table_lookup()
1616 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_table_lookup()
1617 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup()
1627 res->nh_sel = nhsel; in fib_table_lookup()
H A Droute.c3124 int nhsel, genid = fnhe_genid(net); in fib_dump_info_fnhe() local
3126 for (nhsel = 0; nhsel < fib_info_num_path(fi); nhsel++) { in fib_dump_info_fnhe()
3127 struct fib_nh_common *nhc = fib_info_nhc(fi, nhsel); in fib_dump_info_fnhe()

Completed in 22 milliseconds