summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/netisr.c10
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 {
OpenPOWER on IntegriCloud