mirror of
https://github.com/opnsense/src.git
synced 2026-04-03 16:35:27 -04:00
iflib: retire MB_DTOR_SKIP
The flag was added in 2016 but remains unused.
Reviewed by: kbowling
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D30958
This commit is contained in:
parent
2eb9ad4274
commit
fb32c8dbeb
2 changed files with 2 additions and 3 deletions
|
|
@ -658,7 +658,8 @@ mb_dtor_mbuf(void *mem, int size, void *arg)
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -478,8 +478,6 @@ m_epg_pagelen(const struct mbuf *m, int pidx, int pgoff)
|
|||
#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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue