diff options
author | andre <andre@FreeBSD.org> | 2013-08-19 11:16:53 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2013-08-19 11:16:53 +0000 |
commit | e1092223ba2a73c4a5457df5da754502e8ac7500 (patch) | |
tree | 13e9b105b730d76c937752deb7e8e2c20af10e40 /sys/sys/mbuf.h | |
parent | fd76db45877685066364d0c4b173b1f41b3ee7ad (diff) | |
download | FreeBSD-src-e1092223ba2a73c4a5457df5da754502e8ac7500.zip FreeBSD-src-e1092223ba2a73c4a5457df5da754502e8ac7500.tar.gz |
Remove the unused M_NOFREE mbuf flag. It didn't have any in-tree users
for a very long time, if ever.
Should such a functionality ever be needed again the appropriate and
much better way to do it is through a custom EXT_SOMETHING external mbuf
type together with a dedicated *ext_free function.
Discussed with: trociny, glebius
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r-- | sys/sys/mbuf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 5efeb72..5a1530a 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -200,7 +200,7 @@ struct mbuf { /* 0x00008000 free */ #define M_VLANTAG 0x00010000 /* ether_vtag is valid */ #define M_PROMISC 0x00020000 /* packet was not for us */ -#define M_NOFREE 0x00040000 /* do not free mbuf, embedded in cluster */ + /* 0x00040000 free */ #define M_PROTO6 0x00080000 /* protocol-specific */ #define M_PROTO7 0x00100000 /* protocol-specific */ #define M_PROTO8 0x00200000 /* protocol-specific */ @@ -515,7 +515,7 @@ m_free(struct mbuf *m) if (m->m_flags & M_EXT) mb_free_ext(m); - else if ((m->m_flags & M_NOFREE) == 0) + else uma_zfree(zone_mbuf, m); return (n); } |