Home
last modified time | relevance | path

Searched refs:nh_control (Results 1 – 9 of 9) sorted by relevance

/f-stack/freebsd/net/route/
H A Dnhgrp_var.h54 struct nh_control *nh_control; /* parent control structure */ member
66 bool nhgrp_ctl_alloc_default(struct nh_control *ctl, int malloc_flags);
67 struct nhgrp_priv *find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key);
68 int link_nhgrp(struct nh_control *ctl, struct nhgrp_priv *grp_priv);
69 struct nhgrp_priv *unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key);
H A Dnhop.c74 struct nh_control *ctl; in nhops_init_rib()
79 ctl = malloc(sizeof(struct nh_control), M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib()
99 rh->nh_control = ctl; in nhops_init_rib()
109 destroy_ctl(struct nh_control *ctl) in destroy_ctl()
127 struct nh_control *ctl; in destroy_ctl_epoch()
129 ctl = __containerof(ctx, struct nh_control, ctl_epoch_ctx); in destroy_ctl_epoch()
137 struct nh_control *ctl; in nhops_destroy_rib()
140 ctl = rh->nh_control; in nhops_destroy_rib()
287 link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv) in link_nhop()
312 nh_priv->nh_control = ctl; in link_nhop()
[all …]
H A Dnhgrp.c85 static void consider_resize(struct nh_control *ctl, uint32_t new_nh_buckets,
136 find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key) in find_nhgrp()
154 link_nhgrp(struct nh_control *ctl, struct nhgrp_priv *grp_priv) in link_nhgrp()
172 grp_priv->nh_control = ctl; in link_nhgrp()
183 unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key) in unlink_nhgrp()
201 nhg_priv_ret->nh_control = NULL; in unlink_nhgrp()
213 consider_resize(struct nh_control *ctl, uint32_t new_nh_buckets, uint32_t new_idx_items) in consider_resize()
261 nhgrp_ctl_alloc_default(struct nh_control *ctl, int malloc_flags) in nhgrp_ctl_alloc_default()
310 nhgrp_ctl_init(struct nh_control *ctl) in nhgrp_ctl_init()
323 nhgrp_ctl_free(struct nh_control *ctl) in nhgrp_ctl_free()
[all …]
H A Dnhop_var.h56 struct nh_control { struct
88 struct nh_control *nh_control; /* backreference to the rnh */ member
100 struct nhop_priv *find_nhop(struct nh_control *ctl,
102 int link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
103 struct nhop_priv *unlink_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
H A Dnhgrp_ctl.c77 static struct nhgrp_priv *get_nhgrp(struct nh_control *ctl,
310 struct nh_control *ctl; in nhgrp_free()
346 ctl = nhg_priv->nh_control; in nhgrp_free()
432 get_nhgrp(struct nh_control *ctl, struct weightened_nhop *wn, int num_nhops, in get_nhgrp()
512 append_nhops(struct nh_control *ctl, const struct nhgrp_object *gr_orig, in append_nhops()
568 struct nh_control *ctl = rh->nh_control; in nhgrp_get_group()
590 struct nh_control *ctl = rh->nh_control; in nhgrp_get_filtered_group()
647 struct nh_control *ctl = rh->nh_control; in nhgrp_get_addition_group()
780 struct nh_control *ctl; in nhgrp_get_count()
783 ctl = rh->nh_control; in nhgrp_get_count()
[all …]
H A Dnhop_ctl.c372 tmp_priv = find_nhop(rnh->nh_control, nh_priv); in get_nhop()
388 error = finalize_nhop(rnh->nh_control, info, nh_priv); in get_nhop()
520 finalize_nhop(struct nh_control *ctl, struct rt_addrinfo *info, in finalize_nhop()
651 struct nh_control *ctl; in nhop_free()
679 ctl = nh_priv->nh_control; in nhop_free()
774 struct nh_control *ctl; in nhops_update_ifmtu()
778 ctl = rh->nh_control; in nhops_update_ifmtu()
878 struct nh_control *ctl; in nhops_get_count()
881 ctl = rh->nh_control; in nhops_get_count()
893 struct nh_control *ctl; in nhops_dump_sysctl()
[all …]
H A Droute_var.h50 struct nh_control;
76 struct nh_control *nh_control; /* nexthop subsystem data */ member
288 int nhgrp_ctl_init(struct nh_control *ctl);
289 void nhgrp_ctl_free(struct nh_control *ctl);
290 void nhgrp_ctl_unlink_all(struct nh_control *ctl);
H A Dnhop.h78 struct nh_control;
/f-stack/tools/compat/include/net/route/
H A Dnhop.h78 struct nh_control;