From 0927f68a4503fa8ab92003e394032c483b3c32c5 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 5 Nov 2003 23:42:51 +0000 Subject: 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 --- sys/net/netisr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/net') 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 #include +/* + * 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 { -- cgit v1.1