From owner-freebsd-questions Wed Nov 1 20: 8: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from starfruit.itojun.org (nat01.st.keio.ac.jp [131.113.17.11]) by hub.freebsd.org (Postfix) with ESMTP id AFD3C37B479; Wed, 1 Nov 2000 20:07:55 -0800 (PST) Received: from itojun.org (localhost [127.0.0.1]) by starfruit.itojun.org (Postfix) with ESMTP id A91127E56; Thu, 2 Nov 2000 13:07:53 +0900 (JST) To: Luigi Rizzo Cc: websoft@yahoo.com, freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG In-reply-to: rizzo's message of Wed, 01 Nov 2000 18:44:26 PST. <200011020244.SAA03643@iguana.aciri.org> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: mbuf and MINCLSIZE From: Jun-ichiro itojun Hagino Date: Thu, 02 Nov 2000 13:07:53 +0900 Message-Id: <20001102040753.A91127E56@starfruit.itojun.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 101 meaning MHLEN + 1, right? on KAME IPv6 merge, we happened to >> do that. >didn't we move to 256-byte clusters some time ago, hence >MHLEN is larger than that ? that is not the point. traditionally MINCLSIZE was MHLEN + MLEN + 1, and it made drivers to emit: MHLEN mbuf (len <= MHLEN) MHLEN mbuf + MLEN mbuf (len <= MHLEN + MLEN) MCLBYTES cluster mbuf (len > MHLEN + MLEN) Richard proposes to move MINCLSIZE to MHLEN + 1, and will effectively make drivers to emit: MHLEN mbuf (len <= MHLEN) MCLBYTES cluster mbuf (len > MHLEN) the latter stragegy will save us from m_pullup. itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message