| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef __NETNS_CORE_H__ |
| 3 | #define __NETNS_CORE_H__ |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | |
| 7 | struct ; |
| 8 | struct prot_inuse; |
| 9 | struct cpumask; |
| 10 | |
| 11 | struct netns_core { |
| 12 | /* core sysctls */ |
| 13 | struct ctl_table_header *sysctl_hdr; |
| 14 | |
| 15 | int sysctl_somaxconn; |
| 16 | int sysctl_txq_reselection; |
| 17 | int sysctl_optmem_max; |
| 18 | u8 sysctl_txrehash; |
| 19 | u8 sysctl_tstamp_allow_data; |
| 20 | u8 sysctl_bypass_prot_mem; |
| 21 | |
| 22 | #ifdef CONFIG_PROC_FS |
| 23 | struct prot_inuse __percpu *prot_inuse; |
| 24 | #endif |
| 25 | |
| 26 | #if IS_ENABLED(CONFIG_RPS) && IS_ENABLED(CONFIG_SYSCTL) |
| 27 | struct cpumask *rps_default_mask; |
| 28 | #endif |
| 29 | }; |
| 30 | |
| 31 | #endif |
| 32 | |