PERFORCE change 127416 for review
Kip Macy
kmacy at FreeBSD.org
Fri Oct 12 01:20:35 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=127416
Change 127416 by kmacy at kmacy_home:ethng on 2007/10/12 08:20:28
only check for empty tags list on packet header
define page size iovec
Affected files ...
.. //depot/projects/ethng/src/sys/sys/mbuf.h#10 edit
Differences ...
==== //depot/projects/ethng/src/sys/sys/mbuf.h#10 (text+ko) ====
@@ -252,6 +252,7 @@
#define EXT_MBUF 7 /* external mbuf reference (M_IOVEC) */
#define EXT_IOVEC 8
#define EXT_CLIOVEC 9
+#define EXT_JMPIOVEC 10
#define EXT_NET_DRV 100 /* custom ext_buf provided by net driver(s) */
#define EXT_MOD_TYPE 200 /* custom module's ext_buf type */
#define EXT_DISPOSABLE 300 /* can throw this buffer away w/page flipping */
@@ -541,8 +542,10 @@
static __inline void
m_free_fast(struct mbuf *m)
{
- KASSERT(SLIST_EMPTY(&m->m_pkthdr.tags), ("doing fast free of mbuf with tags"));
-
+#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);
}
More information about the p4-projects
mailing list