Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/uipc_mbuf.c
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
m_pkthdr_init(struct mbuf *m, int how) | m_pkthdr_init(struct mbuf *m, int how) | ||||
{ | { | ||||
#ifdef MAC | #ifdef MAC | ||||
int error; | int error; | ||||
#endif | #endif | ||||
m->m_data = m->m_pktdat; | m->m_data = m->m_pktdat; | ||||
bzero(&m->m_pkthdr, sizeof(m->m_pkthdr)); | bzero(&m->m_pkthdr, sizeof(m->m_pkthdr)); | ||||
#ifdef NUMA | |||||
m->m_pkthdr.numa_domain = M_NODOM; | |||||
#endif | |||||
#ifdef MAC | #ifdef MAC | ||||
/* If the label init fails, fail the alloc */ | /* If the label init fails, fail the alloc */ | ||||
error = mac_mbuf_init(m, how); | error = mac_mbuf_init(m, how); | ||||
if (error) | if (error) | ||||
return (error); | return (error); | ||||
#endif | #endif | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 1,521 Lines • Show Last 20 Lines |