summaryrefslogtreecommitdiff
path: root/include/net/netns/core.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-11-21 17:22:21 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-11-21 17:22:21 -0800
commit4843f6873f7c4835e62f2c73ba0fd538e57a2f22 (patch)
treeee620501a1ffbad9a83141e3a70154e1fe641040 /include/net/netns/core.h
downloadlinux-master.tar.gz
linux-master.zip
Merge tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctlgraftedHEADmaster
Pull sysctl fix from Joel Granados: "Fix sysctl jiffy / milliseconds conversion: - Writing a previously read value "X" shall keep the same "X" value - Remove truncation that was causing incorrect saturation of valid timeouts" * tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl: sysctl: Do jiffy / ms conversion in ulong space
Diffstat (limited to 'include/net/netns/core.h')
-rw-r--r--include/net/netns/core.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/net/netns/core.h b/include/net/netns/core.h
new file mode 100644
index 000000000..9ef3d70e5
--- /dev/null
+++ b/include/net/netns/core.h
@@ -0,0 +1,31 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __NETNS_CORE_H__
+#define __NETNS_CORE_H__
+
+#include <linux/types.h>
+
+struct ctl_table_header;
+struct prot_inuse;
+struct cpumask;
+
+struct netns_core {
+ /* core sysctls */
+ struct ctl_table_header *sysctl_hdr;
+
+ int sysctl_somaxconn;
+ int sysctl_txq_reselection;
+ int sysctl_optmem_max;
+ u8 sysctl_txrehash;
+ u8 sysctl_tstamp_allow_data;
+ u8 sysctl_bypass_prot_mem;
+
+#ifdef CONFIG_PROC_FS
+ struct prot_inuse __percpu *prot_inuse;
+#endif
+
+#if IS_ENABLED(CONFIG_RPS) && IS_ENABLED(CONFIG_SYSCTL)
+ struct cpumask *rps_default_mask;
+#endif
+};
+
+#endif