diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-05-14 09:25:18 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-05-14 09:25:18 +0000 |
commit | 1489164f6b32c53eeb00ecc6f307a4f574790cde (patch) | |
tree | a4de2056f1fe0c2e2ef1e782b8b87351902d3bc7 /sys/netgraph/netgraph.h | |
parent | 24072ca35b756417b697443a11c2a96eccf05649 (diff) | |
download | src-1489164f6b32c53eeb00ecc6f307a4f574790cde.tar.gz src-1489164f6b32c53eeb00ecc6f307a4f574790cde.zip |
Use uma(9) for allocating netgraph items:
- ng_getqblk() simply runs uma_zalloc().
- ng_free_item() simply frees.
- ngq_mtx is pushed down under NETGRAPH_DEBUG.
- NGQF_FREE is removed.
Increase default maxalloc to 512.
Reviewed by: julian
Notes
Notes:
svn path=/head/; revision=146212
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r-- | sys/netgraph/netgraph.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h index c2d580f6a62b..61b575ae3bc2 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -54,7 +54,7 @@ #include <sys/module.h> #include <sys/mutex.h> /* debugging options */ -#define NETGRAPH_DEBUG +#define NETGRAPH_DEBUG #define NG_SEPARATE_MALLOC /* make modules use their own malloc types */ /* @@ -612,8 +612,6 @@ struct ng_item { #define NGQF_READER 0x04 /* queued as a reader */ #define NGQF_WRITER 0x00 /* queued as a writer */ -#define NGQF_FREE 0x08 - /* * Get the mbuf (etc) out of an item. * Sets the value in the item to NULL in case we need to call NG_FREE_ITEM() @@ -664,10 +662,6 @@ static __inline hook_p _ngi_hook(item_p item, char *file, int line); static __inline void _ngi_check(item_p item, char *file, int line) { - if (item->el_flags & NGQF_FREE) { - dumpitem(item, file, line); - panic ("free item!"); - } (item)->lastline = line; (item)->lastfile = file; } |