Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_mbuf.c
Show First 20 Lines • Show All 1,520 Lines • ▼ Show 20 Lines | |||||
m_freem(struct mbuf *mb) | m_freem(struct mbuf *mb) | ||||
{ | { | ||||
MBUF_PROBE1(m__freem, mb); | MBUF_PROBE1(m__freem, mb); | ||||
while (mb != NULL) | while (mb != NULL) | ||||
mb = m_free(mb); | mb = m_free(mb); | ||||
} | } | ||||
/* | |||||
* Temporary primitive to allow freeing without going through m_free. | |||||
*/ | |||||
void | |||||
m_free_raw(struct mbuf *mb) | |||||
{ | |||||
uma_zfree(zone_mbuf, mb); | |||||
} | |||||
int | int | ||||
m_snd_tag_alloc(struct ifnet *ifp, union if_snd_tag_alloc_params *params, | m_snd_tag_alloc(struct ifnet *ifp, union if_snd_tag_alloc_params *params, | ||||
struct m_snd_tag **mstp) | struct m_snd_tag **mstp) | ||||
{ | { | ||||
if (ifp->if_snd_tag_alloc == NULL) | if (ifp->if_snd_tag_alloc == NULL) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
return (ifp->if_snd_tag_alloc(ifp, params, mstp)); | return (ifp->if_snd_tag_alloc(ifp, params, mstp)); | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |