Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Pavel Emelyanov | 8efa6e9 | 2008-03-31 19:41:14 -0700 | [diff] [blame] | 2 | #ifndef __NETNS_CORE_H__ |
| 3 | #define __NETNS_CORE_H__ |
| 4 | |
| 5 | struct ctl_table_header; |
Pavel Emelyanov | 70ee115 | 2008-03-31 19:42:16 -0700 | [diff] [blame] | 6 | struct prot_inuse; |
Pavel Emelyanov | 8efa6e9 | 2008-03-31 19:41:14 -0700 | [diff] [blame] | 7 | |
| 8 | struct netns_core { |
| 9 | /* core sysctls */ |
| 10 | struct ctl_table_header *sysctl_hdr; |
| 11 | |
| 12 | int sysctl_somaxconn; |
Pavel Emelyanov | 70ee115 | 2008-03-31 19:42:16 -0700 | [diff] [blame] | 13 | |
Tonghao Zhang | 648845a | 2017-12-14 05:51:58 -0800 | [diff] [blame] | 14 | #ifdef CONFIG_PROC_FS |
| 15 | int __percpu *sock_inuse; |
Tonghao Zhang | 08fc7f8 | 2017-12-14 05:51:57 -0800 | [diff] [blame] | 16 | struct prot_inuse __percpu *prot_inuse; |
Tonghao Zhang | 398b841 | 2017-12-14 05:51:59 -0800 | [diff] [blame] | 17 | #endif |
Pavel Emelyanov | 8efa6e9 | 2008-03-31 19:41:14 -0700 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | #endif |