HomeFreeBSD

Rename m_getm() to m_getm2() and rewrite it to allocate up to page sized
rS163915Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Rename m_getm() to m_getm2() and rewrite it to allocate up to page sized
mbuf clusters. Add a flags parameter to accept M_PKTHDR and M_EOR mbuf
chain flags. Provide compatibility macro for m_getm() calling m_getm2()
with M_PKTHDR set.

Rewrite m_uiotombuf() to use m_getm2() for mbuf allocation and do the
uiomove() in a tight loop over the mbuf chain. Add a flags parameter to
accept mbuf flags to be passed to m_getm2(). Adjust all callers for the
extra parameter.

Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 month

Details

Provenance
andreAuthored on
Parents
rS163914: Revert the last change. Masking only 2 MSBs of the virtual address
Branches
Unknown
Tags
Unknown

Event Timeline