Home
last modified time | relevance | path

Searched refs:nhop_object (Results 1 – 25 of 71) sorted by relevance

123

/f-stack/freebsd/net/route/
H A Dnhop.h123 #define NHOP_END_CMP (__offsetof(struct nhop_object, nh_pksent))
125 struct nhop_object { struct
167 struct nhop_object *nh; argument
171 void nhop_free(struct nhop_object *nh);
177 uint32_t nhop_get_idx(const struct nhop_object *nh);
178 enum nhop_type nhop_get_type(const struct nhop_object *nh);
179 int nhop_get_rtflags(const struct nhop_object *nh);
180 struct vnet *nhop_get_vnet(const struct nhop_object *nh);
181 struct nhop_object *nhop_select_func(struct nhop_object *nh, uint32_t flowid);
H A Droute_var.h52 const struct sockaddr *mask, struct nhop_object *nh);
157 struct nhop_object *rt_nhop; /* nexthop data */
225 const struct nhop_object *nh);
238 void nhop_ref_object(struct nhop_object *nh);
239 int nhop_try_ref_object(struct nhop_object *nh);
240 void nhop_ref_any(struct nhop_object *nh);
241 void nhop_free_any(struct nhop_object *nh);
247 struct nhop_object **nh_ret);
261 struct nhop_object *nhops[0]; /* nhops */
264 static inline struct nhop_object *
[all …]
H A Dnhop_ctl.c280 struct nhop_object *nh; in fill_nhop_from_info()
317 struct nhop_object **nh_ret) in nhop_create_from_info()
458 struct nhop_object *nh; in nhop_create_from_nhop()
499 struct nhop_object *nh; in alloc_nhop_structure()
523 struct nhop_object *nh; in finalize_nhop()
605 struct nhop_object *nh; in destroy_nhop()
649 nhop_free(struct nhop_object *nh) in nhop_free()
694 nhop_ref_any(struct nhop_object *nh) in nhop_ref_any()
707 nhop_free_any(struct nhop_object *nh) in nhop_free_any()
764 struct nhop_object *
[all …]
H A Droute_ctl.h43 struct nhop_object *rc_nh_old; /* Target nhop OR mpath */
44 struct nhop_object *rc_nh_new; /* Target nhop OR mpath */
88 struct nhop_object;
92 struct nhop_object *rnd_nhop;
107 struct nhop_object *rt_get_raw_nhop(const struct rtentry *rt);
H A Dfib_algo.h54 typedef struct nhop_object *flm_lookup_t(void *algo_data,
104 uint32_t fib_get_nhop_idx(struct fib_data *fd, struct nhop_object *nh);
105 struct nhop_object **fib_get_nhop_array(struct fib_data *fd);
H A Droute_ctl.c134 struct nhop_object *nh = rt->rt_nhop; in destroy_rtentry()
272 struct nhop_object *
451 const struct nhop_object *nh) in check_info_match_nhop()
581 struct nhop_object *nh; in create_rtentry()
654 struct nhop_object *nh_orig; in add_route()
656 struct nhop_object *nh; in add_route()
774 struct nhop_object *nh; in rt_unlinkrte()
924 struct nhop_object *nh_orig, struct nhop_object **nh_new) in change_nhop()
1027 struct nhop_object *nh, *nh_orig; in change_route()
1104 struct nhop_object *nh_orig; in change_route_nhop()
[all …]
H A Dnhop_var.h75 struct nhop_object;
87 struct nhop_object *nh; /* backreference to the dataplane nhop */
H A Dfib_algo.c151 struct nhop_object **nh_idx; /* nhop idx->ptr array */
172 static void fib_unref_nhop(struct fib_data *fd, struct nhop_object *nh);
510 struct nhop_object *nh; in need_immediate_rebuild()
695 struct nhop_object *nh = rt_get_raw_nhop(rt); in sync_algo_cb()
1391 struct nhop_object **
1399 get_nhop_idx(struct nhop_object *nh) in get_nhop_idx()
1412 fib_get_nhop_idx(struct fib_data *fd, struct nhop_object *nh) in fib_get_nhop_idx()
1426 fib_ref_nhop(struct fib_data *fd, struct nhop_object *nh) in fib_ref_nhop()
1447 struct nhop_object *nh;
1469 fib_schedule_release_nhop(struct fib_data *fd, struct nhop_object *nh) in fib_schedule_release_nhop()
[all …]
/f-stack/tools/compat/include/net/route/
H A Dnhop.h123 #define NHOP_END_CMP (__offsetof(struct nhop_object, nh_pksent))
125 struct nhop_object { struct
167 struct nhop_object *nh; argument
171 void nhop_free(struct nhop_object *nh);
177 uint32_t nhop_get_idx(const struct nhop_object *nh);
178 enum nhop_type nhop_get_type(const struct nhop_object *nh);
179 int nhop_get_rtflags(const struct nhop_object *nh);
180 struct vnet *nhop_get_vnet(const struct nhop_object *nh);
181 struct nhop_object *nhop_select_func(struct nhop_object *nh, uint32_t flowid);
/f-stack/freebsd/netinet/
H A Din_fib.c112 struct nhop_object *
116 struct nhop_object *nh; in fib4_lookup()
134 struct nhop_object *
141 struct nhop_object *nh; in fib4_lookup()
176 check_urpf_nhop(const struct nhop_object *nh, uint32_t flags, in check_urpf_nhop()
194 check_urpf(struct nhop_object *nh, uint32_t flags, in check_urpf()
213 static struct nhop_object *
219 struct nhop_object *nh; in lookup_nhop()
256 struct nhop_object *nh; in fib4_check_urpf()
316 struct nhop_object *
[all …]
H A Dtoecore.h44 struct nhop_object;
55 int (*tod_connect)(struct toedev *, struct socket *, struct nhop_object *,
99 struct nhop_object *, struct nhop_object *);
H A Din_fib.h37 struct nhop_object *ro_nh;
51 struct nhop_object *fib4_lookup(uint32_t fibnum, struct in_addr dst,
57 struct nhop_object *fib4_lookup_debugnet(uint32_t fibnum, struct in_addr dst,
H A Din_rmx.c56 struct nhop_object *nh) in rib4_preadd()
156 in_ifadownkill(const struct rtentry *rt, const struct nhop_object *nh, in in_ifadownkill()
H A Dip_fastfwd.c117 ip_redir_alloc(struct mbuf *m, struct nhop_object *nh, in ip_redir_alloc()
157 ip_findroute(struct nhop_object **pnh, struct in_addr dest, struct mbuf *m) in ip_findroute()
159 struct nhop_object *nh; in ip_findroute()
201 struct nhop_object *nh = NULL; in ip_tryforward()
H A Din_fib_algo.c78 struct nhop_object *nh;
96 static struct nhop_object *
514 struct nhop_object *nhop;
527 static struct nhop_object *
678 static struct nhop_object *
684 struct nhop_object *nh; in radix4_lookup()
/f-stack/freebsd/netinet6/
H A Din6_fib.c120 struct nhop_object *
124 struct nhop_object *nh; in fib6_lookup()
142 struct nhop_object *
149 struct nhop_object *nh; in fib6_lookup()
185 check_urpf_nhop(const struct nhop_object *nh, uint32_t flags, in check_urpf_nhop()
203 check_urpf(struct nhop_object *nh, uint32_t flags, in check_urpf()
222 static struct nhop_object *
229 struct nhop_object *nh; in lookup_nhop()
270 struct nhop_object *nh; in fib6_check_urpf()
331 struct nhop_object *
[all …]
H A Din6_fib.h38 struct nhop_object *fib6_lookup(uint32_t fibnum,
45 struct nhop_object *fib6_lookup_debugnet(uint32_t fibnum,
47 struct nhop_object *fib6_radix_lookup_nh(uint32_t fibnum,
H A Din6_fib_algo.c85 struct nhop_object *nhop;
98 static struct nhop_object *
175 struct nhop_object *nh; in lradix6_add_route_cb()
248 static struct nhop_object *
254 struct nhop_object *nh; in radix6_lookup()
275 struct nhop_object *
H A Dip6_fastfwd.c59 ip6_findroute(struct nhop_object **pnh, const struct sockaddr_in6 *dst, in ip6_findroute()
62 struct nhop_object *nh; in ip6_findroute()
95 struct nhop_object *nh; in ip6_tryforward()
H A Din6_src.c133 struct nhop_object **, int, u_int, uint32_t);
624 struct ifnet **retifp, struct nhop_object **retnh, int norouteok, in selectroute()
629 struct nhop_object *nh = NULL; in selectroute()
749 if (ro->ro_nh == (struct nhop_object *)NULL) { in selectroute()
839 struct nhop_object *nh = NULL; in in6_selectif()
893 struct ifnet **retifp, struct nhop_object **retnh, u_int fibnum, uint32_t flowid) in in6_selectroute()
916 struct nhop_object *nh; in in6_selecthlim()
/f-stack/freebsd/net/
H A Droute.h53 struct nhop_object *ro_nh;
342 struct nhop_object;
343 typedef int rib_filter_f_t(const struct rtentry *, const struct nhop_object *,
419 int rt_routemsg(int, struct rtentry *, struct nhop_object *, int);
445 struct nhop_object *rib_lookup(uint32_t fibnum, const struct sockaddr *dst,
H A Droute.c80 static int rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *,
82 static int rt_exportinfo(struct rtentry *rt, struct nhop_object *nh,
298 struct nhop_object *nh; in ifa_ifwithroute()
334 rt_exportinfo(struct rtentry *rt, struct nhop_object *nh, in rt_exportinfo()
426 struct nhop_object *nh; in rib_lookup_info()
481 rt_ifdelroute(const struct rtentry *rt, const struct nhop_object *nh, void *arg) in rt_ifdelroute()
719 rt_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, in rt_routemsg()
/f-stack/tools/compat/include/net/
H A Droute.h51 struct nhop_object *ro_nh;
340 struct nhop_object;
341 typedef int rib_filter_f_t(const struct rtentry *, const struct nhop_object *,
417 int rt_routemsg(int, struct rtentry *, struct nhop_object *, int);
443 struct nhop_object *rib_lookup(uint32_t fibnum, const struct sockaddr *dst,
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Drte_lpm6.h25 struct nhop_object;
27 struct nhop_object **nh_idx; /**< # -> idx mappings */
H A Drte_lpm.h123 struct nhop_object;
125 struct nhop_object **nh_idx; /**< # -> idx mappings */

123