]>
Commit | Line | Data |
---|---|---|
2874c5fd | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
d23b8ad8 JP |
2 | /* |
3 | * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> | |
d23b8ad8 JP |
4 | */ |
5 | ||
6 | #ifndef __NET_TC_BPF_H | |
7 | #define __NET_TC_BPF_H | |
8 | ||
9 | #include <linux/filter.h> | |
10 | #include <net/act_api.h> | |
11 | ||
12 | struct tcf_bpf { | |
ec0595cc | 13 | struct tc_action common; |
cff82457 | 14 | struct bpf_prog __rcu *filter; |
a8cb5f55 DB |
15 | union { |
16 | u32 bpf_fd; | |
17 | u16 bpf_num_ops; | |
18 | }; | |
d23b8ad8 | 19 | struct sock_filter *bpf_ops; |
a8cb5f55 | 20 | const char *bpf_name; |
d23b8ad8 | 21 | }; |
a85a970a | 22 | #define to_bpf(a) ((struct tcf_bpf *)a) |
d23b8ad8 JP |
23 | |
24 | #endif /* __NET_TC_BPF_H */ |