Make mbuf sizes tunable from config file (from 386BSD path 134).

This commit is contained in:
mycroft 1993-04-22 03:54:17 +00:00
parent ff3324f812
commit 36b1304dc1

View File

@ -82,10 +82,14 @@
* clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
* of the hardware page size.
*/
#ifndef MSIZE
#define MSIZE 128 /* size of an mbuf */
#define MCLBYTES 1024
#define MCLSHIFT 10
#define MCLOFSET (MCLBYTES - 1)
#endif
#ifndef MCLSHIFT
#define MCLSHIFT 10 /* convert bytes to m_buf clusters */
#endif
#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */
#define MCLOFSET (MCLBYTES - 1) /* offset within a m_buf cluster */
#ifndef NMBCLUSTERS
#ifdef GATEWAY
#define NMBCLUSTERS 512 /* map size, max cluster allocation */