net_sched: move tc_action into tcf_common
[cascardo/linux.git] / include / net / tc_act / tc_gact.h
index 93c520b..119cdb4 100644 (file)
@@ -13,8 +13,7 @@ struct tcf_gact {
        atomic_t                packets;
 #endif
 };
-#define to_gact(a) \
-       container_of(a->priv, struct tcf_gact, common)
+#define to_gact(a) ((struct tcf_gact *)a)
 
 static inline bool is_tcf_gact_shot(const struct tc_action *a)
 {
@@ -24,7 +23,7 @@ static inline bool is_tcf_gact_shot(const struct tc_action *a)
        if (a->ops && a->ops->type != TCA_ACT_GACT)
                return false;
 
-       gact = a->priv;
+       gact = to_gact(a);
        if (gact->tcf_action == TC_ACT_SHOT)
                return true;