From owner-cvs-all@FreeBSD.ORG Thu Dec 8 13:13:25 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D9DC16A41F; Thu, 8 Dec 2005 13:13:25 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F60043D95; Thu, 8 Dec 2005 13:13:07 +0000 (GMT) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jB8DD6dW085173; Thu, 8 Dec 2005 13:13:07 GMT (envelope-from andre@repoman.freebsd.org) Received: (from andre@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jB8DD6ak085172; Thu, 8 Dec 2005 13:13:06 GMT (envelope-from andre) Message-Id: <200512081313.jB8DD6ak085172@repoman.freebsd.org> From: Andre Oppermann Date: Thu, 8 Dec 2005 13:13:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_mbuf.c uipc_mbuf.c src/sys/sys mbuf.h param.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 13:13:25 -0000 andre 2005-12-08 13:13:06 UTC FreeBSD src repository Modified files: sys/kern kern_mbuf.c uipc_mbuf.c sys/sys mbuf.h param.h Log: Add an API for jumbo mbuf cluster allocation and also provide 4k clusters in addition to 9k and 16k ones. struct mbuf *m_getjcl(int how, short type, int flags, int size) void *m_cljget(struct mbuf *m, int how, int size) m_getjcl() returns an mbuf with a cluster of the specified size attached like m_getcl() does for 2k clusters. m_cljget() is different from m_clget() as it can allocate clusters without attaching them to an mbuf. In that case the return value is the pointer to the cluster of the requested size. If an mbuf was specified, it gets the cluster attached to it and the return value can be safely ignored. For size both take MCLBYTES, MJUM4BYTES, MJUM9BYTES, MJUM16BYTES. Reviewed by: glebius Tested by: glebius Sponsored by: TCP/IP Optimization Fundraise 2005 Revision Changes Path 1.16 +19 -1 src/sys/kern/kern_mbuf.c 1.159 +3 -0 src/sys/kern/uipc_mbuf.c 1.183 +88 -3 src/sys/sys/mbuf.h 1.256 +3 -2 src/sys/sys/param.h