summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2013-08-24 21:09:57 +0000
committerandre <andre@FreeBSD.org>2013-08-24 21:09:57 +0000
commit6ad648e223be6153dd1674649bfc08d9733aa04a (patch)
treeee6ceca012e8636b524b1c6c58ea0f30423ab84d /sys/sys/mbuf.h
parent351bab29d0ce107dd4e077382c34b080d6c3f1af (diff)
downloadFreeBSD-src-6ad648e223be6153dd1674649bfc08d9733aa04a.zip
FreeBSD-src-6ad648e223be6153dd1674649bfc08d9733aa04a.tar.gz
Remove unused m_free_fast(). The difference to m_free() is only
2 predictable branches nowadays. However as a pre-condition the caller had to ensure that the mbuf pkthdr did not have any mtags attached to it, costing some potential branches again. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index ed56ea5..6ba3f16 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -453,8 +453,6 @@ struct mbuf {
#define MT_NOINIT 255 /* Not a type but a flag to allocate
a non-initialized mbuf */
-#define MB_NOTAGS 0x1UL /* no tags attached to mbuf */
-
/*
* Compatibility with historic mbuf allocator.
*/
@@ -636,17 +634,6 @@ m_getcl(int how, short type, int flags)
return (uma_zalloc_arg(zone_pack, &args, how));
}
-static __inline void
-m_free_fast(struct mbuf *m)
-{
-#ifdef INVARIANTS
- if (m->m_flags & M_PKTHDR)
- KASSERT(SLIST_EMPTY(&m->m_pkthdr.tags), ("doing fast free of mbuf with tags"));
-#endif
-
- uma_zfree_arg(zone_mbuf, m, (void *)MB_NOTAGS);
-}
-
static __inline struct mbuf *
m_free(struct mbuf *m)
{
OpenPOWER on IntegriCloud