Add macro NET_CALLOUT_MPSAFE, which should be used when initializing
network related callouts. Reviewed by: rwatson
This commit is contained in:
parent
6313c7a1f2
commit
d111bbbc06
@ -395,6 +395,7 @@ extern int debug_mpsafenet; /* defined in net/netisr.c */
|
||||
if (!debug_mpsafenet) \
|
||||
mtx_assert(&Giant, MA_OWNED); \
|
||||
} while (0)
|
||||
#define NET_CALLOUT_MPSAFE (debug_mpsafenet ? CALLOUT_MPSAFE : 0)
|
||||
|
||||
#define UGAR(rval) do { \
|
||||
int _val = (rval); \
|
||||
|
Loading…
Reference in New Issue
Block a user