aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tc_act/tc_defact.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tc_act/tc_defact.h')
-rw-r--r--include/net/tc_act/tc_defact.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/tc_act/tc_defact.h b/include/net/tc_act/tc_defact.h
index ab9b5d6be67b..d47f040a3bdf 100644
--- a/include/net/tc_act/tc_defact.h
+++ b/include/net/tc_act/tc_defact.h
@@ -4,11 +4,10 @@
#include <net/act_api.h>
struct tcf_defact {
- struct tcf_common common;
+ struct tc_action common;
u32 tcfd_datalen;
void *tcfd_defdata;
};
-#define to_defact(a) \
- container_of(a->priv, struct tcf_defact, common)
+#define to_defact(a) ((struct tcf_defact *)a)
#endif /* __NET_TC_DEF_H */