xref: /openbmc/linux/include/net/netns/core.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
28efa6e93SPavel Emelyanov #ifndef __NETNS_CORE_H__
38efa6e93SPavel Emelyanov #define __NETNS_CORE_H__
48efa6e93SPavel Emelyanov 
5949d6b40SJakub Kicinski #include <linux/types.h>
6949d6b40SJakub Kicinski 
78efa6e93SPavel Emelyanov struct ctl_table_header;
870ee1159SPavel Emelyanov struct prot_inuse;
9*50bcfe8dSPaolo Abeni struct cpumask;
108efa6e93SPavel Emelyanov 
118efa6e93SPavel Emelyanov struct netns_core {
128efa6e93SPavel Emelyanov 	/* core sysctls */
138efa6e93SPavel Emelyanov 	struct ctl_table_header	*sysctl_hdr;
148efa6e93SPavel Emelyanov 
158efa6e93SPavel Emelyanov 	int	sysctl_somaxconn;
16e187013aSAkhmat Karakotov 	u8	sysctl_txrehash;
1770ee1159SPavel Emelyanov 
18648845abSTonghao Zhang #ifdef CONFIG_PROC_FS
1908fc7f81STonghao Zhang 	struct prot_inuse __percpu *prot_inuse;
20398b841eSTonghao Zhang #endif
21*50bcfe8dSPaolo Abeni 
22*50bcfe8dSPaolo Abeni #if IS_ENABLED(CONFIG_RPS) && IS_ENABLED(CONFIG_SYSCTL)
23*50bcfe8dSPaolo Abeni 	struct cpumask *rps_default_mask;
24*50bcfe8dSPaolo Abeni #endif
258efa6e93SPavel Emelyanov };
268efa6e93SPavel Emelyanov 
278efa6e93SPavel Emelyanov #endif
28