Date: Fri, 12 Oct 2007 08:20:34 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 127416 for review Message-ID: <200710120820.l9C8KY7q097906@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=127416 Change 127416 by kmacy@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710120820.l9C8KY7q097906>