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).
This commit is contained in:
Bosko Milekic 2000-11-13 02:59:57 +00:00
parent 95200624a6
commit 1edd6ddf05

View File

@ -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 | \