Use NET_CALLOUT_MPSAFE for netgraph callout initializer.

This commit is contained in:
Gleb Smirnoff 2006-06-06 08:05:27 +00:00
parent 9297f2a72e
commit 27e216594b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159331
2 changed files with 1 additions and 3 deletions

View file

@ -1101,7 +1101,7 @@ int ng_send_fn1(node_p node, hook_p hook, ng_item_fn *fn,
int ng_uncallout(struct callout *c, node_p node);
int ng_callout(struct callout *c, node_p node, hook_p hook, int ticks,
ng_item_fn *fn, void * arg1, int arg2);
#define ng_callout_init(c) callout_init(c, CALLOUT_MPSAFE)
#define ng_callout_init(c) callout_init(c, NET_CALLOUT_MPSAFE)
/* Flags for netgraph functions. */
#define NG_NOFLAGS 0x00000000 /* no special options */

View file

@ -3581,9 +3581,7 @@ ng_callout_trampoline(void *arg)
{
item_p item = arg;
NET_LOCK_GIANT();
ng_snd_item(item, 0);
NET_UNLOCK_GIANT();
}