Merge tag 'block-5.9-2020-08-14' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / include / net / netns / bpf.h
blob0ca6a1b8718533adf2f37223bf4d8955df151246
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * BPF programs attached to network namespace
4 */
6 #ifndef __NETNS_BPF_H__
7 #define __NETNS_BPF_H__
9 #include <linux/bpf-netns.h>
11 struct bpf_prog;
12 struct bpf_prog_array;
14 struct netns_bpf {
15 /* Array of programs to run compiled from progs or links */
16 struct bpf_prog_array __rcu *run_array[MAX_NETNS_BPF_ATTACH_TYPE];
17 struct bpf_prog *progs[MAX_NETNS_BPF_ATTACH_TYPE];
18 struct list_head links[MAX_NETNS_BPF_ATTACH_TYPE];
21 #endif /* __NETNS_BPF_H__ */