From 4f825aadddcd6e3c0dbfe26b4683a15334952987 Mon Sep 17 00:00:00 2001 From: itojun Date: Thu, 27 Jul 2000 17:18:19 +0000 Subject: [PATCH] recover traditional MINCLSIZE (= MHLEN + MLEN + 1). it will make drivers less aggressive about use of cluster mbufs. this chnage affects drivers with m_devget()-emulation. many of recent drivers do not look at MINCLSIZE any more, not sure why. --- sys/sys/mbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 536ae0e22faf..278f777db25c 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -1,4 +1,4 @@ -/* $NetBSD: mbuf.h,v 1.49 2000/03/01 12:49:27 itojun Exp $ */ +/* $NetBSD: mbuf.h,v 1.50 2000/07/27 17:18:19 itojun Exp $ */ /*- * Copyright (c) 1996, 1997, 1999 The NetBSD Foundation, Inc. @@ -97,7 +97,7 @@ * non-external mbufs in the driver. This has no impact on performance * seen from the packet statistics, and avoid header pullups in network code. */ -#define MINCLSIZE (MHLEN + 1) /* smallest amount to put in cluster */ +#define MINCLSIZE (MHLEN+MLEN+1) /* smallest amount to put in cluster */ #define M_MAXCOMPRESS (MHLEN / 2) /* max amount to copy for compression */ /*