net_sched: get rid of struct tcf_common
[cascardo/linux.git] / include / net / tc_act / tc_bpf.h
index 958d69c..2b94673 100644 (file)
@@ -14,7 +14,7 @@
 #include <net/act_api.h>
 
 struct tcf_bpf {
-       struct tcf_common       common;
+       struct tc_action        common;
        struct bpf_prog __rcu   *filter;
        union {
                u32             bpf_fd;
@@ -23,7 +23,6 @@ struct tcf_bpf {
        struct sock_filter      *bpf_ops;
        const char              *bpf_name;
 };
-#define to_bpf(a) \
-       container_of(a->priv, struct tcf_bpf, common)
+#define to_bpf(a) ((struct tcf_bpf *)a)
 
 #endif /* __NET_TC_BPF_H */