1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * BPF programs attached to network namespace 4 */ 5 6 #ifndef __NETNS_BPF_H__ 7 #define __NETNS_BPF_H__ 8 9 #include <linux/bpf-netns.h> 10 11 struct bpf_prog; 12 13 struct netns_bpf { 14 struct bpf_prog __rcu *progs[MAX_NETNS_BPF_ATTACH_TYPE]; 15 struct bpf_link *links[MAX_NETNS_BPF_ATTACH_TYPE]; 16 }; 17 18 #endif /* __NETNS_BPF_H__ */ 19