diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/sysctl_net_core.c | 8 | ||||
-rw-r--r-- | net/core/utils.c | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index 1e75b15854..b29712033d 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c | |||
@@ -136,6 +136,14 @@ ctl_table core_table[] = { | |||
136 | .mode = 0644, | 136 | .mode = 0644, |
137 | .proc_handler = &proc_dointvec | 137 | .proc_handler = &proc_dointvec |
138 | }, | 138 | }, |
139 | { | ||
140 | .ctl_name = NET_CORE_WARNINGS, | ||
141 | .procname = "warnings", | ||
142 | .data = &net_msg_warn, | ||
143 | .maxlen = sizeof(int), | ||
144 | .mode = 0644, | ||
145 | .proc_handler = &proc_dointvec | ||
146 | }, | ||
139 | { .ctl_name = 0 } | 147 | { .ctl_name = 0 } |
140 | }; | 148 | }; |
141 | 149 | ||
diff --git a/net/core/utils.c b/net/core/utils.c index 07236c17fa..34f08107b9 100644 --- a/net/core/utils.c +++ b/net/core/utils.c | |||
@@ -32,6 +32,8 @@ | |||
32 | 32 | ||
33 | int net_msg_cost = 5*HZ; | 33 | int net_msg_cost = 5*HZ; |
34 | int net_msg_burst = 10; | 34 | int net_msg_burst = 10; |
35 | int net_msg_warn = 1; | ||
36 | EXPORT_SYMBOL(net_msg_warn); | ||
35 | 37 | ||
36 | /* | 38 | /* |
37 | * All net warning printk()s should be guarded by this function. | 39 | * All net warning printk()s should be guarded by this function. |