blob: 36c2d998a43c015c4b917428ec33f5839cde89b1 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Pavel Emelyanov8efa6e92008-03-31 19:41:14 -07002#ifndef __NETNS_CORE_H__
3#define __NETNS_CORE_H__
4
5struct ctl_table_header;
Pavel Emelyanov70ee1152008-03-31 19:42:16 -07006struct prot_inuse;
Pavel Emelyanov8efa6e92008-03-31 19:41:14 -07007
8struct netns_core {
9 /* core sysctls */
10 struct ctl_table_header *sysctl_hdr;
11
12 int sysctl_somaxconn;
Pavel Emelyanov70ee1152008-03-31 19:42:16 -070013
Tonghao Zhang648845a2017-12-14 05:51:58 -080014#ifdef CONFIG_PROC_FS
15 int __percpu *sock_inuse;
Tonghao Zhang08fc7f82017-12-14 05:51:57 -080016 struct prot_inuse __percpu *prot_inuse;
Tonghao Zhang398b8412017-12-14 05:51:59 -080017#endif
Pavel Emelyanov8efa6e92008-03-31 19:41:14 -070018};
19
20#endif