Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2012 16:16:01 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-head@FreeBSD.org
Subject:   Re: svn commit: r230264 - head/sys/sys
Message-ID:  <20120117121601.GF12760@FreeBSD.org>
In-Reply-To: <201201171213.q0HCDbfj089892@svn.freebsd.org>
References:  <201201171213.q0HCDbfj089892@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120117121601.GF12760>