aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tc_act/tc_bpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tc_act/tc_bpf.h')
-rw-r--r--include/net/tc_act/tc_bpf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/tc_act/tc_bpf.h b/include/net/tc_act/tc_bpf.h
index 86a070ffc930..a152e9858b2c 100644
--- a/include/net/tc_act/tc_bpf.h
+++ b/include/net/tc_act/tc_bpf.h
@@ -16,8 +16,12 @@
struct tcf_bpf {
struct tcf_common common;
struct bpf_prog *filter;
+ union {
+ u32 bpf_fd;
+ u16 bpf_num_ops;
+ };
struct sock_filter *bpf_ops;
- u16 bpf_num_ops;
+ const char *bpf_name;
};
#define to_bpf(a) \
container_of(a->priv, struct tcf_bpf, common)