diff options
| -rw-r--r-- | include/linux/net.h | 6 | ||||
| -rw-r--r-- | include/net/net_ratelimit.h | 8 | ||||
| -rw-r--r-- | net/core/sysctl_net_core.c | 1 | ||||
| -rw-r--r-- | net/core/utils.c | 1 |
4 files changed, 10 insertions, 6 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 1da55e9b6f01..b29923006b11 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
| @@ -289,11 +289,5 @@ extern int kernel_sock_shutdown(struct socket *sock, | |||
| 289 | MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ | 289 | MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ |
| 290 | "-type-" __stringify(type)) | 290 | "-type-" __stringify(type)) |
| 291 | 291 | ||
| 292 | #ifdef CONFIG_SYSCTL | ||
| 293 | #include <linux/sysctl.h> | ||
| 294 | #include <linux/ratelimit.h> | ||
| 295 | extern struct ratelimit_state net_ratelimit_state; | ||
| 296 | #endif | ||
| 297 | |||
| 298 | #endif /* __KERNEL__ */ | 292 | #endif /* __KERNEL__ */ |
| 299 | #endif /* _LINUX_NET_H */ | 293 | #endif /* _LINUX_NET_H */ |
diff --git a/include/net/net_ratelimit.h b/include/net/net_ratelimit.h new file mode 100644 index 000000000000..7727b4247daf --- /dev/null +++ b/include/net/net_ratelimit.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef _LINUX_NET_RATELIMIT_H | ||
| 2 | #define _LINUX_NET_RATELIMIT_H | ||
| 3 | |||
| 4 | #include <linux/ratelimit.h> | ||
| 5 | |||
| 6 | extern struct ratelimit_state net_ratelimit_state; | ||
| 7 | |||
| 8 | #endif /* _LINUX_NET_RATELIMIT_H */ | ||
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index a829e3f60aeb..77a65f031488 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | #include <net/ip.h> | 18 | #include <net/ip.h> |
| 19 | #include <net/sock.h> | 19 | #include <net/sock.h> |
| 20 | #include <net/net_ratelimit.h> | ||
| 20 | 21 | ||
| 21 | #ifdef CONFIG_RPS | 22 | #ifdef CONFIG_RPS |
| 22 | static int rps_sock_flow_sysctl(ctl_table *table, int write, | 23 | static int rps_sock_flow_sysctl(ctl_table *table, int write, |
diff --git a/net/core/utils.c b/net/core/utils.c index 2012bc797f9c..386e263f6066 100644 --- a/net/core/utils.c +++ b/net/core/utils.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <linux/ratelimit.h> | 27 | #include <linux/ratelimit.h> |
| 28 | 28 | ||
| 29 | #include <net/sock.h> | 29 | #include <net/sock.h> |
| 30 | #include <net/net_ratelimit.h> | ||
| 30 | 31 | ||
| 31 | #include <asm/byteorder.h> | 32 | #include <asm/byteorder.h> |
| 32 | #include <asm/system.h> | 33 | #include <asm/system.h> |
