Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131827789
D30958.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
D30958.diff
View Options
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
--- a/sys/kern/kern_mbuf.c
+++ b/sys/kern/kern_mbuf.c
@@ -658,7 +658,8 @@
flags = (unsigned long)arg;
KASSERT((m->m_flags & M_NOFREE) == 0, ("%s: M_NOFREE set", __func__));
- if (!(flags & MB_DTOR_SKIP) && (m->m_flags & M_PKTHDR) && !SLIST_EMPTY(&m->m_pkthdr.tags))
+ KASSERT((flags & 0x1) == 0, ("%s: obsolete MB_DTOR_SKIP passed", __func__));
+ if ((m->m_flags & M_PKTHDR) && !SLIST_EMPTY(&m->m_pkthdr.tags))
m_tag_delete_chain(m, NULL);
}
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -478,8 +478,6 @@
#define M_PROTO10 0x00400000 /* protocol-specific */
#define M_PROTO11 0x00800000 /* protocol-specific */
-#define MB_DTOR_SKIP 0x1 /* don't pollute the cache by touching a freed mbuf */
-
/*
* Flags to purge when crossing layers.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 12:26 PM (5 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23623024
Default Alt Text
D30958.diff (862 B)
Attached To
Mode
D30958: iflib: retire MB_DTOR_SKIP
Attached
Detach File
Event Timeline
Log In to Comment