Home
last modified time | relevance | path

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

/freebsd/sys/net/route/
H A Dnhop.c78 struct nh_control *ctl; in nhops_init_rib()
83 ctl = malloc(sizeof(struct nh_control), M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib()
103 rh->nh_control = ctl; in nhops_init_rib()
112 destroy_ctl(struct nh_control *ctl) in destroy_ctl()
130 struct nh_control *ctl; in destroy_ctl_epoch()
132 ctl = __containerof(ctx, struct nh_control, ctl_epoch_ctx); in destroy_ctl_epoch()
140 struct nh_control *ctl; in nhops_destroy_rib()
143 ctl = rh->nh_control; in nhops_destroy_rib()
233 consider_resize(struct nh_control *ctl, uint32_t new_nh_buckets, uint32_t new_idx_items) in consider_resize()
284 link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv) in link_nhop()
[all …]
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 Dnhgrp.c87 static void consider_resize(struct nh_control *ctl, uint32_t new_gr_buckets,
138 find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key) in find_nhgrp()
156 link_nhgrp(struct nh_control *ctl, struct nhgrp_priv *grp_priv) in link_nhgrp()
174 grp_priv->nh_control = ctl; in link_nhgrp()
190 unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key) in unlink_nhgrp()
208 nhg_priv_ret->nh_control = NULL; in unlink_nhgrp()
227 consider_resize(struct nh_control *ctl, uint32_t new_gr_bucket, uint32_t new_idx_items) in consider_resize()
276 nhgrp_ctl_alloc_default(struct nh_control *ctl, int malloc_flags) in nhgrp_ctl_alloc_default()
311 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.h54 struct nh_control { struct
90 struct nh_control *nh_control; /* backreference to the rnh */ member
103 struct nhop_priv *find_nhop(struct nh_control *ctl,
105 int link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
106 struct nhop_priv *unlink_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
H A Dnhgrp_ctl.c80 static struct nhgrp_priv *get_nhgrp(struct nh_control *ctl,
338 struct nh_control *ctl; in nhgrp_free()
374 ctl = nhg_priv->nh_control; in nhgrp_free()
466 struct nh_control *ctl; in nhgrp_alloc()
473 ctl = rh->nh_control; in nhgrp_alloc()
492 if (wn[i].nh->nh_priv->nh_control != ctl) { in nhgrp_alloc()
507 nhg_priv->nh_control = ctl; in nhgrp_alloc()
521 struct nh_control *ctl = key->nh_control; in nhgrp_get_nhgrp()
565 get_nhgrp(struct nh_control *ctl, struct weightened_nhop *wn, int num_nhops, in get_nhgrp()
592 append_nhops(struct nh_control *ctl, const struct nhgrp_object *gr_orig, in append_nhops()
[all …]
H A Dnhop_ctl.c88 static int finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link);
342 tmp_priv = find_nhop(rnh->nh_control, nh->nh_priv); in nhop_get_nhop_internal()
357 *perror = finalize_nhop(rnh->nh_control, nh, true); in nhop_get_nhop_internal()
380 return (finalize_nhop(rnh->nh_control, nh, false)); in nhop_get_unlinked()
489 finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link) in finalize_nhop()
589 struct nh_control *ctl; in nhop_free()
629 ctl = nh_priv->nh_control; in nhop_free()
1057 struct nh_control *ctl; in nhops_update_ifmtu()
1061 ctl = rh->nh_control; in nhops_update_ifmtu()
1084 struct nh_control *ctl = iter->rh->nh_control; in nhops_iter_start()
[all …]
H A Droute_var.h42 struct nh_control;
73 struct nh_control *nh_control; /* nexthop subsystem data */ member
299 int nhgrp_ctl_init(struct nh_control *ctl);
300 void nhgrp_ctl_free(struct nh_control *ctl);
301 void nhgrp_ctl_unlink_all(struct nh_control *ctl);
H A Dnhop.h76 struct nh_control;