aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2026-10-12 21:32:52 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2026-10-12 23:08:16 +0000
commit398254f9999eb1af5f0842570111d584aaf8d01a (patch)
treead3b112fd78a0f2ebfd2099b43268b4b96e6deed
parentcdd95034d6f4b5a7abe7d21b2b1a568fa5e906a0 (diff)
mbuf: simplify m_free
The check for (M_PKTHDR|M_NOFREE) was added by np@ in "91d1b03d3617 Merge r254736 from user/np/cxl_tuning." in order to support a clever rx mode optimization used by cxgbe at the time. That optimization was removed in 46e1e307edb6 several years ago. This check is otherwise unneeded and adds an extraneous test to every mbuf free, so let's remove it. Reviewed by: glebius, np Differential Revision: https://reviews.freebsd.org/D60686 Sponsored by: Netflix
-rw-r--r--sys/sys/mbuf.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 076cfecb1f99..504d2902b4fb 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1523,8 +1523,6 @@ m_free(struct mbuf *m)
struct mbuf *n = m->m_next;
MBUF_PROBE1(m__free, m);
- if ((m->m_flags & (M_PKTHDR|M_NOFREE)) == (M_PKTHDR|M_NOFREE))
- m_tag_delete_chain(m, NULL);
if (m->m_flags & M_PKTHDR && m->m_pkthdr.csum_flags & CSUM_SND_TAG)
m_snd_tag_rele(m->m_pkthdr.snd_tag);
if (m->m_flags & M_EXTPG)