Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if.c
Show First 20 Lines • Show All 623 Lines • ▼ Show 20 Lines | #endif /* MAC */ | ||||
IF_ADDR_LOCK_DESTROY(ifp); | IF_ADDR_LOCK_DESTROY(ifp); | ||||
ifq_delete(&ifp->if_snd); | ifq_delete(&ifp->if_snd); | ||||
for (int i = 0; i < IFCOUNTERS; i++) | for (int i = 0; i < IFCOUNTERS; i++) | ||||
counter_u64_free(ifp->if_counters[i]); | counter_u64_free(ifp->if_counters[i]); | ||||
free(ifp->if_description, M_IFDESCR); | free(ifp->if_description, M_IFDESCR); | ||||
free(ifp->if_hw_addr, M_IFADDR); | free(ifp->if_hw_addr, M_IFADDR); | ||||
if (ifp->if_numa_domain == IF_NODOM) | |||||
free(ifp, M_IFNET); | free(ifp, M_IFNET); | ||||
else | |||||
free_domain(ifp, M_IFNET); | |||||
} | } | ||||
static void | static void | ||||
if_destroy(epoch_context_t ctx) | if_destroy(epoch_context_t ctx) | ||||
{ | { | ||||
struct ifnet *ifp; | struct ifnet *ifp; | ||||
ifp = __containerof(ctx, struct ifnet, if_epoch_ctx); | ifp = __containerof(ctx, struct ifnet, if_epoch_ctx); | ||||
▲ Show 20 Lines • Show All 3,934 Lines • Show Last 20 Lines |