diff options
Diffstat (limited to 'include/net/netns')
| -rw-r--r-- | include/net/netns/bpf.h | 9 | ||||
| -rw-r--r-- | include/net/netns/core.h | 1 | ||||
| -rw-r--r-- | include/net/netns/ipv4.h | 5 | 
3 files changed, 12 insertions, 3 deletions
| diff --git a/include/net/netns/bpf.h b/include/net/netns/bpf.h index 0ca6a1b87185..2c01a278d1eb 100644 --- a/include/net/netns/bpf.h +++ b/include/net/netns/bpf.h @@ -6,11 +6,18 @@  #ifndef __NETNS_BPF_H__  #define __NETNS_BPF_H__ -#include <linux/bpf-netns.h> +#include <linux/list.h>  struct bpf_prog;  struct bpf_prog_array; +enum netns_bpf_attach_type { +	NETNS_BPF_INVALID = -1, +	NETNS_BPF_FLOW_DISSECTOR = 0, +	NETNS_BPF_SK_LOOKUP, +	MAX_NETNS_BPF_ATTACH_TYPE +}; +  struct netns_bpf {  	/* Array of programs to run compiled from progs or links */  	struct bpf_prog_array __rcu *run_array[MAX_NETNS_BPF_ATTACH_TYPE]; diff --git a/include/net/netns/core.h b/include/net/netns/core.h index 36c2d998a43c..552bc25b1933 100644 --- a/include/net/netns/core.h +++ b/include/net/netns/core.h @@ -12,7 +12,6 @@ struct netns_core {  	int	sysctl_somaxconn;  #ifdef CONFIG_PROC_FS -	int __percpu *sock_inuse;  	struct prot_inuse __percpu *prot_inuse;  #endif  }; diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index 2f65701a43c9..78557643526e 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h @@ -65,7 +65,7 @@ struct netns_ipv4 {  	bool			fib_has_custom_local_routes;  	bool			fib_offload_disabled;  #ifdef CONFIG_IP_ROUTE_CLASSID -	int			fib_num_tclassid_users; +	atomic_t		fib_num_tclassid_users;  #endif  	struct hlist_head	*fib_table_hash;  	struct sock		*fibnl; @@ -85,6 +85,9 @@ struct netns_ipv4 {  	int sysctl_icmp_ratelimit;  	int sysctl_icmp_ratemask; +	u32 ip_rt_min_pmtu; +	int ip_rt_mtu_expires; +  	struct local_ports ip_local_ports;  	u8 sysctl_tcp_ecn; |