Linux Audio

Check our new training course

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