diff options
author | sam <sam@FreeBSD.org> | 2003-11-05 23:42:51 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-11-05 23:42:51 +0000 |
commit | 0927f68a4503fa8ab92003e394032c483b3c32c5 (patch) | |
tree | 2123cf5ccfc35f8e4b70b2c2a96394a1aba17b84 /sys/net | |
parent | 09e99681c0a5abf9fd6d76407d5adb96f3d3c96e (diff) | |
download | FreeBSD-src-0927f68a4503fa8ab92003e394032c483b3c32c5.zip FreeBSD-src-0927f68a4503fa8ab92003e394032c483b3c32c5.tar.gz |
o make debug_mpsafenet globally visible
o move it from subr_bus.c to netisr.c where it more properly belongs
o add NET_PICKUP_GIANT and NET_DROP_GIANT macros that will be used to
grab Giant as needed when MPSAFE operation is enabled
Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/netisr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/net/netisr.c b/sys/net/netisr.c index 347fd9a..cb24e12 100644 --- a/sys/net/netisr.c +++ b/sys/net/netisr.c @@ -53,6 +53,16 @@ #include <net/if_var.h> #include <net/netisr.h> +/* + * XXX this is a temporary measure to allow folks to + * XXX disable Giant locking in the network code without + * XXX recompiling--in case of problems. + */ +int debug_mpsafenet = 0; +TUNABLE_INT("debug.mpsafenet", &debug_mpsafenet); +SYSCTL_INT(_debug, OID_AUTO, mpsafenet, CTLFLAG_RD, &debug_mpsafenet, 0, + "Enable/disable MPSAFE network support"); + volatile unsigned int netisr; /* scheduling bits for network */ struct netisr { |