net_sched: act: hide struct tcf_common from API

Now we can totally hide it from modules. tcf_hash_*() API's
will operate on struct tc_action, modules don't need to care about
the details.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
WANG Cong
2014-02-11 17:07:31 -08:00
کامیت شده توسط David S. Miller
والد 7282ec8cb4
کامیت 86062033fe
19فایلهای تغییر یافته به همراه135 افزوده شده و 206 حذف شده

مشاهده پرونده

@@ -9,7 +9,7 @@ struct tcf_csum {
u32 update_flags;
};
#define to_tcf_csum(pc) \
container_of(pc,struct tcf_csum,common)
#define to_tcf_csum(a) \
container_of(a->priv,struct tcf_csum,common)
#endif /* __NET_TC_CSUM_H */

مشاهده پرونده

@@ -8,7 +8,7 @@ struct tcf_defact {
u32 tcfd_datalen;
void *tcfd_defdata;
};
#define to_defact(pc) \
container_of(pc, struct tcf_defact, common)
#define to_defact(a) \
container_of(a->priv, struct tcf_defact, common)
#endif /* __NET_TC_DEF_H */

مشاهده پرونده

@@ -11,7 +11,7 @@ struct tcf_gact {
int tcfg_paction;
#endif
};
#define to_gact(pc) \
container_of(pc, struct tcf_gact, common)
#define to_gact(a) \
container_of(a->priv, struct tcf_gact, common)
#endif /* __NET_TC_GACT_H */

مشاهده پرونده

@@ -11,7 +11,7 @@ struct tcf_ipt {
char *tcfi_tname;
struct xt_entry_target *tcfi_t;
};
#define to_ipt(pc) \
container_of(pc, struct tcf_ipt, common)
#define to_ipt(a) \
container_of(a->priv, struct tcf_ipt, common)
#endif /* __NET_TC_IPT_H */

مشاهده پرونده

@@ -11,7 +11,7 @@ struct tcf_mirred {
struct net_device *tcfm_dev;
struct list_head tcfm_list;
};
#define to_mirred(pc) \
container_of(pc, struct tcf_mirred, common)
#define to_mirred(a) \
container_of(a->priv, struct tcf_mirred, common)
#endif /* __NET_TC_MIR_H */

مشاهده پرونده

@@ -13,9 +13,9 @@ struct tcf_nat {
u32 flags;
};
static inline struct tcf_nat *to_tcf_nat(struct tcf_common *pc)
static inline struct tcf_nat *to_tcf_nat(struct tc_action *a)
{
return container_of(pc, struct tcf_nat, common);
return container_of(a->priv, struct tcf_nat, common);
}
#endif /* __NET_TC_NAT_H */

مشاهده پرونده

@@ -9,7 +9,7 @@ struct tcf_pedit {
unsigned char tcfp_flags;
struct tc_pedit_key *tcfp_keys;
};
#define to_pedit(pc) \
container_of(pc, struct tcf_pedit, common)
#define to_pedit(a) \
container_of(a->priv, struct tcf_pedit, common)
#endif /* __NET_TC_PED_H */

مشاهده پرونده

@@ -29,7 +29,7 @@ struct tcf_skbedit {
u16 queue_mapping;
/* XXX: 16-bit pad here? */
};
#define to_skbedit(pc) \
container_of(pc, struct tcf_skbedit, common)
#define to_skbedit(a) \
container_of(a->priv, struct tcf_skbedit, common)
#endif /* __NET_TC_SKBEDIT_H */