Searched refs:nh_priv (Results 1 – 6 of 6) sorted by relevance
/freebsd/sys/net/route/ |
H A D | nhop_ctl.c | 342 tmp_priv = find_nhop(rnh->nh_control, nh->nh_priv); in nhop_get_nhop_internal() 510 nh->nh_priv->nh_vnet = curvnet; in finalize_nhop() 513 refcount_init(&nh->nh_priv->nh_linked, 2); in finalize_nhop() 515 MPASS(nh->nh_priv->nh_fibnum == ctl->ctl_rh->rib_fibnum); in finalize_nhop() 518 refcount_release(&nh->nh_priv->nh_linked); in finalize_nhop() 520 nh->nh_priv->nh_finalized = 1; in finalize_nhop() 522 } else if (link_nhop(ctl, nh->nh_priv) == 0) { in finalize_nhop() 563 struct nhop_priv *nh_priv; in destroy_nhop_epoch() local 565 nh_priv = __containerof(ctx, struct nhop_priv, nh_epoch_ctx); in destroy_nhop_epoch() 567 destroy_nhop(nh_priv->nh); in destroy_nhop_epoch() [all …]
|
H A D | nhop.c | 141 struct nhop_priv *nh_priv; in nhops_destroy_rib() local 159 CHT_SLIST_FOREACH(&ctl->nh_head, nhops, nh_priv) { in nhops_destroy_rib() 160 FIB_RH_LOG(LOG_DEBUG3, rh, "marking nhop %u unlinked", nh_priv->nh_idx); in nhops_destroy_rib() 161 refcount_release(&nh_priv->nh_linked); in nhops_destroy_rib() 284 link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv) in link_nhop() argument 289 KASSERT((nh_priv->nh_idx == 0), ("nhop index is already allocated")); in link_nhop() 308 nh_priv->nh_idx = idx; in link_nhop() 309 nh_priv->nh_control = ctl; in link_nhop() 310 nh_priv->nh_finalized = 1; in link_nhop() 312 CHT_SLIST_INSERT_HEAD(&ctl->nh_head, nhops, nh_priv); in link_nhop() [all …]
|
H A D | nhop_var.h | 99 ((_nh)->nh_priv->rt_flags & RTF_PINNED)) 100 #define NH_IS_LINKED(_nh) ((_nh)->nh_priv->nh_idx != 0) 104 const struct nhop_priv *nh_priv); 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 D | nhgrp_ctl.c | 91 uint32_t a_idx = w_a->nh->nh_priv->nh_idx; in wn_cmp_idx() 92 uint32_t b_idx = w_b->nh->nh_priv->nh_idx; in wn_cmp_idx() 492 if (wn[i].nh->nh_priv->nh_control != ctl) { in nhgrp_alloc() 496 if (wn[i].nh->nh_priv->nh_idx == last_id) { in nhgrp_alloc() 500 last_id = wn[i].nh->nh_priv->nh_idx; in nhgrp_alloc() 818 wn->nh->nh_priv->nh_idx, wn->weight); in nhgrp_print_buf() 879 ext[i].nh_idx = nhg_priv->nhg_nh_weights[i].nh->nh_priv->nh_idx; in dump_nhgrp_entry() 893 ext[i].nh_idx = nhg->nhops[i]->nh_priv->nh_idx; in dump_nhgrp_entry()
|
H A D | route_helpers.c | 342 uint32_t nh_idx_old = wn_old[idx_old].nh->nh_priv->nh_idx; in decompose_change_notification() 343 uint32_t nh_idx_new = wn_new[idx_new].nh->nh_priv->nh_idx; in decompose_change_notification()
|
H A D | nhop.h | 142 struct nhop_priv *nh_priv; /* control plane data */ member
|