net_sched: move tc_action into tcf_common
[cascardo/linux.git] / include / net / tc_act / tc_nat.h
index 63d8e9c..a91ad3a 100644 (file)
@@ -13,9 +13,6 @@ struct tcf_nat {
        u32 flags;
 };
 
-static inline struct tcf_nat *to_tcf_nat(struct tc_action *a)
-{
-       return container_of(a->priv, struct tcf_nat, common);
-}
+#define to_tcf_nat(a) ((struct tcf_nat *)a)
 
 #endif /* __NET_TC_NAT_H */