diff options
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r-- | sys/sys/mbuf.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index d762a29..4fb1ae8 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -185,7 +185,7 @@ struct mbuf { */ #define EXT_CLUSTER 1 /* mbuf cluster */ #define EXT_SFBUF 2 /* sendfile(2)'s sf_bufs */ -#define EXT_JUMBO4 3 /* jumbo cluster 4096 bytes */ +#define EXT_JUMBOP 3 /* jumbo cluster 4096 bytes */ #define EXT_JUMBO9 4 /* jumbo cluster 9216 bytes */ #define EXT_JUMBO16 5 /* jumbo cluster 16184 bytes */ #define EXT_PACKET 6 /* mbuf+cluster from packet zone */ @@ -306,7 +306,7 @@ struct mbstat { #define MBUF_MEM_NAME "mbuf" #define MBUF_CLUSTER_MEM_NAME "mbuf_cluster" #define MBUF_PACKET_MEM_NAME "mbuf_packet" -#define MBUF_JUMBO4_MEM_NAME "mbuf_jumbo_4k" +#define MBUF_JUMBOP_MEM_NAME "mbuf_jumbo_pagesize" #define MBUF_JUMBO9_MEM_NAME "mbuf_jumbo_9k" #define MBUF_JUMBO16_MEM_NAME "mbuf_jumbo_16k" #define MBUF_TAG_MEM_NAME "mbuf_tag" @@ -333,7 +333,7 @@ struct mbstat { extern uma_zone_t zone_mbuf; extern uma_zone_t zone_clust; extern uma_zone_t zone_pack; -extern uma_zone_t zone_jumbo4; +extern uma_zone_t zone_jumbop; extern uma_zone_t zone_jumbo9; extern uma_zone_t zone_jumbo16; extern uma_zone_t zone_ext_refcnt; @@ -401,7 +401,7 @@ m_getcl(int how, short type, int flags) /* * m_getjcl() returns an mbuf with a cluster of the specified size attached. - * For size it takes MCLBYTES, MJUM4BYTES, MJUM9BYTES, MJUM16BYTES. + * For size it takes MCLBYTES, MJUMPAGESIZE, MJUM9BYTES, MJUM16BYTES. */ static __inline /* XXX: This is rather large, should be real function maybe. */ struct mbuf * @@ -422,9 +422,9 @@ m_getjcl(int how, short type, int flags, int size) case MCLBYTES: zone = zone_clust; break; -#if MJUM4BYTES != MCLBYTES - case MJUM4BYTES: - zone = zone_jumbo4; +#if MJUMPAGESIZE != MCLBYTES + case MJUMPAGESIZE: + zone = zone_jumbop; break; #endif case MJUM9BYTES: @@ -473,7 +473,7 @@ m_clget(struct mbuf *m, int how) * is the pointer to the cluster of the requested size. If an mbuf was * specified, it gets the cluster attached to it and the return value * can be safely ignored. - * For size it takes MCLBYTES, MJUM4BYTES, MJUM9BYTES, MJUM16BYTES. + * For size it takes MCLBYTES, MJUMPAGESIZE, MJUM9BYTES, MJUM16BYTES. */ static __inline void * @@ -490,9 +490,9 @@ m_cljget(struct mbuf *m, int how, int size) case MCLBYTES: zone = zone_clust; break; -#if MJUM4BYTES != MCLBYTES - case MJUM4BYTES: - zone = zone_jumbo4; +#if MJUMPAGESIZE != MCLBYTES + case MJUMPAGESIZE: + zone = zone_jumbop; break; #endif case MJUM9BYTES: |