mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue