svn commit: r230264 - head/sys/sys
Gleb Smirnoff
glebius at FreeBSD.org
Tue Jan 17 12:16:03 UTC 2012
On Tue, Jan 17, 2012 at 12:13:37PM +0000, Gleb Smirnoff wrote:
T> Author: glebius
T> Date: Tue Jan 17 12:13:36 2012
T> New Revision: 230264
T> URL: http://svn.freebsd.org/changeset/base/230264
T>
T> Log:
T> Provide a function m_get2() that allocates a minimal mbuf that
T> would fit specified size. Returned mbuf may be a single mbuf,
T> an mbuf with a cluster from packet zone, or an mbuf with jumbo
T> cluster of sufficient size.
I am open to discussion on bikeshed color^W^W a better name for
this function.
I utilized it in pfsync, however there are several other places where
it can be used instead of handrolled "if else if else" constructs.
--
Totus tuus, Glebius.
More information about the svn-src-head
mailing list