Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/nhop_ctl.c
Show First 20 Lines • Show All 689 Lines • ▼ Show 20 Lines | nhop_free(struct nhop_object *nh) | ||||
epoch_call(net_epoch_preempt, destroy_nhop_epoch, | epoch_call(net_epoch_preempt, destroy_nhop_epoch, | ||||
&nh_priv->nh_epoch_ctx); | &nh_priv->nh_epoch_ctx); | ||||
} | } | ||||
void | void | ||||
nhop_free_any(struct nhop_object *nh) | nhop_free_any(struct nhop_object *nh) | ||||
{ | { | ||||
#ifdef ROUTE_MPATH | |||||
if (!NH_IS_NHGRP(nh)) | |||||
nhop_free(nh); | nhop_free(nh); | ||||
else | |||||
nhgrp_free((struct nhgrp_object *)nh); | |||||
#else | |||||
nhop_free(nh); | |||||
#endif | |||||
} | } | ||||
/* Helper functions */ | /* Helper functions */ | ||||
uint32_t | uint32_t | ||||
nhop_get_idx(const struct nhop_object *nh) | nhop_get_idx(const struct nhop_object *nh) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |