diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2000-11-13 02:59:57 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2000-11-13 02:59:57 +0000 |
commit | 3b4e222bcf33a0c07cedef4585bdc0b7d15e5ade (patch) | |
tree | cc07cd6596a9c2aedfa321fd2d21f087b090a547 | |
parent | 1925c689bb54430f43bbd1ad8fedc9e73c7dfa92 (diff) | |
download | FreeBSD-src-3b4e222bcf33a0c07cedef4585bdc0b7d15e5ade.zip FreeBSD-src-3b4e222bcf33a0c07cedef4585bdc0b7d15e5ade.tar.gz |
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).
-rw-r--r-- | sys/sys/mbuf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 723ca98..a936dcb 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 | \ |