Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/in_pcb.c
Show First 20 Lines • Show All 3,341 Lines • ▼ Show 20 Lines | #ifdef INET | ||||
} else | } else | ||||
counter_u64_add(rate_limit_alloc_fail, 1); | counter_u64_add(rate_limit_alloc_fail, 1); | ||||
#endif | #endif | ||||
} | } | ||||
return (error); | return (error); | ||||
} | } | ||||
void | void | ||||
in_pcbdetach_tag(struct ifnet *ifp, struct m_snd_tag *mst) | in_pcbdetach_tag(struct m_snd_tag *mst) | ||||
{ | { | ||||
if (ifp == NULL) | |||||
return; | |||||
/* | m_snd_tag_rele(mst); | ||||
* If the device was detached while we still had reference(s) | |||||
* on the ifp, we assume if_snd_tag_free() was replaced with | |||||
* stubs. | |||||
*/ | |||||
ifp->if_snd_tag_free(mst); | |||||
/* release reference count on network interface */ | |||||
if_rele(ifp); | |||||
#ifdef INET | #ifdef INET | ||||
counter_u64_add(rate_limit_active, -1); | counter_u64_add(rate_limit_active, -1); | ||||
#endif | #endif | ||||
} | } | ||||
/* | /* | ||||
* Free an existing TX rate limit tag based on the "inp->inp_snd_tag", | * Free an existing TX rate limit tag based on the "inp->inp_snd_tag", | ||||
* if any: | * if any: | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |