X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..d1ecb069dfe24481e4a83f44cb5217a2b06746d7:/bsd/kern/uipc_mbuf2.c diff --git a/bsd/kern/uipc_mbuf2.c b/bsd/kern/uipc_mbuf2.c index 49727ff3a..5276ce659 100644 --- a/bsd/kern/uipc_mbuf2.c +++ b/bsd/kern/uipc_mbuf2.c @@ -564,3 +564,25 @@ m_tag_next(__unused struct mbuf *m, struct m_tag *t) { return SLIST_NEXT(t, m_tag_link); } + +void +m_prio_init(struct mbuf *m) +{ +#if !PKT_PRIORITY +#pragma unused(m) +#else /* PKT_PRIORITY */ + if (m->m_flags & M_PKTHDR) + m->m_pkthdr.prio = MBUF_PRIORITY_NORMAL; +#endif /* PKT_PRIORITY */ +} + +void +m_prio_background(struct mbuf *m) +{ +#if !PKT_PRIORITY +#pragma unused(m) +#else /* PKT_PRIORITY */ + if (m->m_flags & M_PKTHDR) + m->m_pkthdr.prio = MBUF_PRIORITY_BACKGROUND; +#endif /* PKT_PRIORITY */ +}