summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-06-07 22:11:12 +0000
committerjulian <julian@FreeBSD.org>2004-06-07 22:11:12 +0000
commit241cef49c32e27fb3f6a00e7125f893eb49fc455 (patch)
tree625261bb44336f8790d5844c5b6ede17a4358e59 /sys/netgraph
parentdb4692c79005c52547cd6829e2bd5754b489f9db (diff)
downloadFreeBSD-src-241cef49c32e27fb3f6a00e7125f893eb49fc455.zip
FreeBSD-src-241cef49c32e27fb3f6a00e7125f893eb49fc455.tar.gz
Now that mbufs are allocated using uma,
don't check for accidental usage of mbuf 'how' flags as they are the same thing.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_message.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h
index 4a5f479..715d114 100644
--- a/sys/netgraph/ng_message.h
+++ b/sys/netgraph/ng_message.h
@@ -371,10 +371,6 @@ struct flow_manager {
*/
#define NG_MKMESSAGE(msg, cookie, cmdid, len, how) \
do { \
- KASSERT(!(how & M_DONTWAIT), \
- ("NG_MKMESSAGE() with how=M_DONTWAIT (%d)\n", how)); \
- KASSERT(!(how & M_TRYWAIT), \
- ("NG_MKMESSAGE() with how=M_TRYWAIT (%d)\n", how)); \
MALLOC((msg), struct ng_mesg *, sizeof(struct ng_mesg) \
+ (len), M_NETGRAPH_MSG, (how) | M_ZERO); \
if ((msg) == NULL) \
OpenPOWER on IntegriCloud