Go to the documentation of this file. 1 #ifndef __NET_ACT_API_H
2 #define __NET_ACT_API_H
25 #define tcf_next common.tcfc_next
26 #define tcf_index common.tcfc_index
27 #define tcf_refcnt common.tcfc_refcnt
28 #define tcf_bindcnt common.tcfc_bindcnt
29 #define tcf_capab common.tcfc_capab
30 #define tcf_action common.tcfc_action
31 #define tcf_tm common.tcfc_tm
32 #define tcf_bstats common.tcfc_bstats
33 #define tcf_qstats common.tcfc_qstats
34 #define tcf_rate_est common.tcfc_rate_est
35 #define tcf_lock common.tcfc_lock
36 #define tcf_rcu common.tcfc_rcu
50 #define to_police(pc) \
51 container_of(pc, struct tcf_police, common)
59 static inline unsigned int tcf_hash(
u32 index,
unsigned int hmask)
64 #ifdef CONFIG_NET_CLS_ACT
66 #define ACT_P_CREATED 1
67 #define ACT_P_DELETED 1
75 const struct tc_action_ops *
ops;
78 struct tc_action *
next;
81 #define TCA_CAP_NONE 0
82 struct tc_action_ops {
83 struct tc_action_ops *
next;
92 int (*cleanup)(
struct tc_action *,
int bind);
104 int type,
struct tc_action *
a);
110 struct tc_action *
a,
int size,
111 int bind,
u32 *idx_gen,