mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Make netgraph ISR and callout MPSAFE.
Reviewed by: rwatson, ru
This commit is contained in:
parent
610b5a1fb1
commit
687809752d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141719
@ -1079,8 +1079,7 @@ int ng_send_fn(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);
|
||||
/* We should mark callout mpsafe as soon as we mark netgraph ISR mpsafe */
|
||||
#define ng_callout_init(c) callout_init(c, 0)
|
||||
#define ng_callout_init(c) callout_init(c, CALLOUT_MPSAFE)
|
||||
|
||||
/*
|
||||
* prototypes the user should DEFINITELY not use directly
|
||||
|
@ -2973,8 +2973,8 @@ ngb_mod_event(module_t mod, int event, void *data)
|
||||
mtx_init(&ngq_mtx, "netgraph free item list mutex", NULL,
|
||||
MTX_DEF);
|
||||
s = splimp();
|
||||
/* XXX could use NETISR_MPSAFE but need to verify code */
|
||||
netisr_register(NETISR_NETGRAPH, (netisr_t *)ngintr, NULL, 0);
|
||||
netisr_register(NETISR_NETGRAPH, (netisr_t *)ngintr, NULL,
|
||||
NETISR_MPSAFE);
|
||||
splx(s);
|
||||
break;
|
||||
case MOD_UNLOAD:
|
||||
|
Loading…
Reference in New Issue
Block a user