From 1edd6ddf054e5d83344f83b66afe90c2f9f89d49 Mon Sep 17 00:00:00 2001 From: Bosko Milekic Date: Mon, 13 Nov 2000 02:59:57 +0000 Subject: [PATCH] Change the ext_type type from short to int, since it doesn't cost us anything and it's likely to be faster on alphas. Also, add EXT_MOD_TYPE for modules that want to add their own ext_type and are not network drivers (so they don't use EXT_NET_DRV). --- sys/sys/mbuf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 723ca98672dd..a936dcb9068c 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -107,7 +107,7 @@ struct m_ext { void *ext_args; /* optional argument pointer */ u_int ext_size; /* size of buffer, for ext_free */ union mext_refcnt *ref_cnt; /* pointer to ref count info */ - short ext_type; /* type of external storage */ + int ext_type; /* type of external storage */ }; struct mbuf { @@ -157,6 +157,7 @@ struct mbuf { #define EXT_CLUSTER 1 /* mbuf cluster */ #define EXT_SFBUF 2 /* sendfile(2)'s sf_bufs */ #define EXT_NET_DRV 100 /* custom ext_buf provided by net driver(s) */ +#define EXT_MOD_TYPE 200 /* custom module's ext_buf type */ /* flags copied when copying m_pkthdr */ #define M_COPYFLAGS (M_PKTHDR|M_EOR|M_PROTO1|M_PROTO1|M_PROTO2|M_PROTO3 | \