Searched refs:nh_control (Results 1 – 8 of 8) sorted by relevance
| /freebsd/sys/net/route/ |
| H A D | nhop.c | 77 struct nh_control *ctl; in nhops_init_rib() 82 ctl = malloc(sizeof(struct nh_control), M_NHOP, M_WAITOK | M_ZERO); in nhops_init_rib() 102 rh->nh_control = ctl; in nhops_init_rib() 111 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() 228 consider_resize(struct nh_control *ctl, uint32_t new_nh_buckets, uint32_t new_idx_items) in consider_resize() 279 link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv) in link_nhop() [all …]
|
| H A D | nhgrp_var.h | 54 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 D | nhgrp.c | 86 static void consider_resize(struct nh_control *ctl, uint32_t new_gr_buckets, 137 find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key) in find_nhgrp() 155 link_nhgrp(struct nh_control *ctl, struct nhgrp_priv *grp_priv) in link_nhgrp() 173 grp_priv->nh_control = ctl; in link_nhgrp() 189 unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key) in unlink_nhgrp() 207 nhg_priv_ret->nh_control = NULL; in unlink_nhgrp() 226 consider_resize(struct nh_control *ctl, uint32_t new_gr_bucket, uint32_t new_idx_items) in consider_resize() 275 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() 322 nhgrp_ctl_free(struct nh_control *ctl) in nhgrp_ctl_free() [all …]
|
| H A D | nhop_var.h | 54 struct nh_control { struct 91 struct nh_control *nh_control; /* backreference to the rnh */ member 104 struct nhop_priv *find_nhop(struct nh_control *ctl, 106 int link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv); 107 struct nhop_priv *unlink_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
|
| H A D | nhgrp_ctl.c | 79 static struct nhgrp_priv *get_nhgrp(struct nh_control *ctl, 358 struct nh_control *ctl; in nhgrp_free() 394 ctl = nhg_priv->nh_control; in nhgrp_free() 486 struct nh_control *ctl; in nhgrp_alloc() 495 ctl = rh->nh_control; in nhgrp_alloc() 515 if (wn[i].nh->nh_priv->nh_control != ctl) { in nhgrp_alloc() 533 nhg_priv->nh_control = ctl; in nhgrp_alloc() 547 struct nh_control *ctl = key->nh_control; in nhgrp_get_nhgrp() 591 get_nhgrp(struct nh_control *ctl, struct weightened_nhop *wn, int num_nhops, in get_nhgrp() 618 append_nhops(struct nh_control *ctl, const struct nhgrp_object *gr_orig, in append_nhops() [all …]
|
| H A D | nhop_ctl.c | 87 static int finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link); 359 tmp_priv = find_nhop(rnh->nh_control, nh->nh_priv); in nhop_get_nhop_internal() 374 *perror = finalize_nhop(rnh->nh_control, nh, true); in nhop_get_nhop_internal() 397 return (finalize_nhop(rnh->nh_control, nh, false)); in nhop_get_unlinked() 507 finalize_nhop(struct nh_control *ctl, struct nhop_object *nh, bool link) in finalize_nhop() 607 struct nh_control *ctl; in nhop_free() 647 ctl = nh_priv->nh_control; in nhop_free() 1083 struct nh_control *ctl; in nhops_update_ifmtu() 1087 ctl = rh->nh_control; in nhops_update_ifmtu() 1110 struct nh_control *ctl = iter->rh->nh_control; in nhops_iter_start() [all …]
|
| H A D | route_var.h | 42 struct nh_control; 73 struct nh_control *nh_control; /* nexthop subsystem data */ member 298 int nhgrp_ctl_init(struct nh_control *ctl); 299 void nhgrp_ctl_free(struct nh_control *ctl); 300 void nhgrp_ctl_unlink_all(struct nh_control *ctl);
|
| H A D | nhop.h | 76 struct nh_control;
|