Cleanup comment in machine/param.h regarding mbuf-related sizes, and get rid
of MCLOFSET, which does not appear to be used anywhere anymore, and if it is, it probably shouldn't be.
This commit is contained in:
parent
039c6f3637
commit
ec222a71d9
@ -120,18 +120,16 @@
|
||||
|
||||
/*
|
||||
* Constants related to network buffer management.
|
||||
* MCLBYTES must be no larger than CLBYTES (the software page size), and,
|
||||
* on machines that exchange pages of input or output buffers with mbuf
|
||||
* clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
|
||||
* of the hardware page size.
|
||||
* MCLBYTES must be no larger than PAGE_SIZE.
|
||||
*/
|
||||
#ifndef MSIZE
|
||||
#define MSIZE 256 /* size of an mbuf */
|
||||
#endif /* MSIZE */
|
||||
|
||||
#ifndef MCLSHIFT
|
||||
# define MCLSHIFT 11 /* convert bytes to m_buf clusters */
|
||||
/* 2K cluster can hold Ether frame */
|
||||
#define MCLSHIFT 11 /* convert bytes to mbuf clusters */
|
||||
#endif /* MCLSHIFT */
|
||||
#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */
|
||||
#define MCLOFSET (MCLBYTES - 1)
|
||||
#define MCLBYTES (1 << MCLSHIFT) /* size of a mbuf cluster */
|
||||
|
||||
/* pages ("clicks") to disk blocks */
|
||||
#define ctod(x) ((x) << (PAGE_SHIFT - DEV_BSHIFT))
|
||||
|
@ -102,20 +102,16 @@
|
||||
|
||||
/*
|
||||
* Constants related to network buffer management.
|
||||
* MCLBYTES must be no larger than CLBYTES (the software page size), and,
|
||||
* on machines that exchange pages of input or output buffers with mbuf
|
||||
* clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
|
||||
* of the hardware page size.
|
||||
* MCLBYTES must be no larger than PAGE_SIZE.
|
||||
*/
|
||||
#ifndef MSIZE
|
||||
#define MSIZE 256 /* size of an mbuf */
|
||||
#endif /* MSIZE */
|
||||
|
||||
#ifndef MCLSHIFT
|
||||
#define MCLSHIFT 11 /* convert bytes to m_buf clusters */
|
||||
#define MCLSHIFT 11 /* convert bytes to mbuf clusters */
|
||||
#endif /* MCLSHIFT */
|
||||
#define MCLBYTES (1 << MCLSHIFT) /* size of an m_buf cluster */
|
||||
#define MCLOFSET (MCLBYTES - 1) /* offset within an m_buf cluster */
|
||||
#define MCLBYTES (1 << MCLSHIFT) /* size of an mbuf cluster */
|
||||
|
||||
/*
|
||||
* Some macros for units conversion
|
||||
|
@ -116,18 +116,16 @@
|
||||
|
||||
/*
|
||||
* Constants related to network buffer management.
|
||||
* MCLBYTES must be no larger than CLBYTES (the software page size), and,
|
||||
* on machines that exchange pages of input or output buffers with mbuf
|
||||
* clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
|
||||
* of the hardware page size.
|
||||
* MCLBYTES must be no larger than PAGE_SIZE.
|
||||
*/
|
||||
#ifndef MSIZE
|
||||
#define MSIZE 256 /* size of an mbuf */
|
||||
#endif /* MSIZE */
|
||||
|
||||
#ifndef MCLSHIFT
|
||||
# define MCLSHIFT 11 /* convert bytes to m_buf clusters */
|
||||
/* 2K cluster can hold Ether frame */
|
||||
#define MCLSHIFT 11 /* convert bytes to mbuf clusters */
|
||||
#endif /* MCLSHIFT */
|
||||
#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */
|
||||
#define MCLOFSET (MCLBYTES - 1)
|
||||
#define MCLBYTES (1 << MCLSHIFT) /* size of a mbuf cluster */
|
||||
|
||||
/*
|
||||
* Size of kernel malloc arena in CLBYTES-sized logical pages
|
||||
|
Loading…
x
Reference in New Issue
Block a user