diff options
Diffstat (limited to 'include/net/netns/bpf.h')
| -rw-r--r-- | include/net/netns/bpf.h | 9 | 
1 files changed, 8 insertions, 1 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]; |