[5270] in Athena Bugs
fix to mbuf.h for kernels with differing amounts of buffering
daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Mon Jun 25 13:11:38 1990
Date: Mon, 25 Jun 90 13:11:21 -0400
From: Mark Rosenstein <mar@MIT.EDU>
To: bugs@MIT.EDU
To make it possible to build kernels with a different amount of
buffering (such as more buffering on NFS servers), we need the
following change to h/mbuf.h in the kernel source tree:
*** /usr/include/sys/mbuf.h Mon Jul 18 14:11:18 1988
--- /tmp/mbuf.h Mon Jun 25 13:04:47 1990
***************
*** 37,45 ****
--- 37,47 ----
#define MMAXOFF (MSIZE-MTAIL) /* offset where data ends */
#define MLEN (MSIZE-MMINOFF-MTAIL) /* mbuf data length */
#ifdef GATEWAY
+ #ifndef NMBCLUSTERS
#define NMBCLUSTERS 512
#else
#define NMBCLUSTERS 256
+ #endif
#endif
#define NMBPCL (CLBYTES/MSIZE) /* # mbufs per cluster */
This allows a line "NMBCLUSTERS=512" in the config file to override
the previous value.
-Mark