aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2019-01-31 22:37:28 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2019-01-31 22:37:28 +0000
commiteec189c70ba5bed05b2831426bb04e8a0b38fdb2 (patch)
tree330b731d076e83d221c2453f849ab0cf8a74941a /sys/sys
parent919e7b5359a7e7346c175b32022b5d698fde17bc (diff)
downloadsrc-eec189c70ba5bed05b2831426bb04e8a0b38fdb2.tar.gz
src-eec189c70ba5bed05b2831426bb04e8a0b38fdb2.zip
Add new m_ext type for data for M_NOFREE mbufs, which doesn't actually do
anything except several assertions. This type is going to be used for temporary on stack mbufs, that point into data in receive ring of a NIC, that shall not be freed. Such mbuf can not be stored or reallocated, its life time is current context.
Notes
Notes: svn path=/head/; revision=343627
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/mbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 827a01e3ba79..75217ed65c37 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -443,6 +443,7 @@ struct mbuf {
#define EXT_JUMBO16 5 /* jumbo cluster 16184 bytes */
#define EXT_PACKET 6 /* mbuf+cluster from packet zone */
#define EXT_MBUF 7 /* external mbuf reference */
+#define EXT_RXRING 8 /* data in NIC receive ring */
#define EXT_VENDOR1 224 /* for vendor-internal use */
#define EXT_VENDOR2 225 /* for vendor-internal use */