Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86062033 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

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: default avatarCong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7282ec8c
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -98,16 +98,14 @@ struct tc_action_ops {
};

int tcf_hash_search(struct tc_action *a, u32 index);
void tcf_hash_destroy(struct tcf_common *p, struct tcf_hashinfo *hinfo);
int tcf_hash_release(struct tcf_common *p, int bind,
		     struct tcf_hashinfo *hinfo);
void tcf_hash_destroy(struct tc_action *a);
int tcf_hash_release(struct tc_action *a, int bind);
u32 tcf_hash_new_index(struct tcf_hashinfo *hinfo);
struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a,
				  int bind);
struct tcf_common *tcf_hash_create(u32 index, struct nlattr *est,
				   struct tc_action *a, int size,
				   int bind);
void tcf_hash_insert(struct tcf_common *p, struct tcf_hashinfo *hinfo);
int tcf_hash_check(u32 index, struct tc_action *a, int bind);
int tcf_hash_create(u32 index, struct nlattr *est, struct tc_action *a,
		    int size, int bind);
void tcf_hash_cleanup(struct tc_action *a, struct nlattr *est);
void tcf_hash_insert(struct tc_action *a);

int tcf_register_action(struct tc_action_ops *a);
int tcf_unregister_action(struct tc_action_ops *a);
+2 −2
Original line number Diff line number Diff line
@@ -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 */
+2 −2
Original line number Diff line number Diff line
@@ -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 */
+2 −2
Original line number Diff line number Diff line
@@ -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 */
+2 −2
Original line number Diff line number Diff line
@@ -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 */
Loading