/linux-4.1.27/net/sched/ |
D | cls_cgroup.c | 25 struct tcf_proto *tp; 29 static int cls_cgroup_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_cgroup_classify() 65 static unsigned long cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get() 70 static int cls_cgroup_init(struct tcf_proto *tp) in cls_cgroup_init() 91 struct tcf_proto *tp, unsigned long base, in cls_cgroup_change() 146 static bool cls_cgroup_destroy(struct tcf_proto *tp, bool force) in cls_cgroup_destroy() 160 static int cls_cgroup_delete(struct tcf_proto *tp, unsigned long arg) in cls_cgroup_delete() 165 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg) in cls_cgroup_walk() 180 static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in cls_cgroup_dump()
|
D | cls_basic.c | 35 struct tcf_proto *tp; 40 static int basic_classify(struct sk_buff *skb, const struct tcf_proto *tp, in basic_classify() 59 static unsigned long basic_get(struct tcf_proto *tp, u32 handle) in basic_get() 78 static int basic_init(struct tcf_proto *tp) in basic_init() 99 static bool basic_destroy(struct tcf_proto *tp, bool force) in basic_destroy() 117 static int basic_delete(struct tcf_proto *tp, unsigned long arg) in basic_delete() 132 static int basic_set_parms(struct net *net, struct tcf_proto *tp, in basic_set_parms() 166 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change() 233 static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg) in basic_walk() 251 static int basic_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in basic_dump()
|
D | cls_bpf.c | 49 struct tcf_proto *tp; 62 static int cls_bpf_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_bpf_classify() 100 static int cls_bpf_init(struct tcf_proto *tp) in cls_bpf_init() 114 static void cls_bpf_delete_prog(struct tcf_proto *tp, struct cls_bpf_prog *prog) in cls_bpf_delete_prog() 135 static int cls_bpf_delete(struct tcf_proto *tp, unsigned long arg) in cls_bpf_delete() 146 static bool cls_bpf_destroy(struct tcf_proto *tp, bool force) in cls_bpf_destroy() 165 static unsigned long cls_bpf_get(struct tcf_proto *tp, u32 handle) in cls_bpf_get() 264 static int cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp, in cls_bpf_modify_existing() 301 static u32 cls_bpf_grab_new_handle(struct tcf_proto *tp, in cls_bpf_grab_new_handle() 323 struct tcf_proto *tp, unsigned long base, in cls_bpf_change() [all …]
|
D | cls_fw.c | 48 struct tcf_proto *tp; 59 static int fw_classify(struct sk_buff *skb, const struct tcf_proto *tp, in fw_classify() 98 static unsigned long fw_get(struct tcf_proto *tp, u32 handle) in fw_get() 114 static int fw_init(struct tcf_proto *tp) in fw_init() 130 static bool fw_destroy(struct tcf_proto *tp, bool force) in fw_destroy() 158 static int fw_delete(struct tcf_proto *tp, unsigned long arg) in fw_delete() 190 fw_change_attrs(struct net *net, struct tcf_proto *tp, struct fw_filter *f, in fw_change_attrs() 237 struct tcf_proto *tp, unsigned long base, in fw_change() 335 static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg) in fw_walk() 364 static int fw_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in fw_dump()
|
D | cls_api.c | 103 struct nlmsghdr *n, struct tcf_proto *tp, 109 static inline u32 tcf_auto_prio(struct tcf_proto *tp) in tcf_auto_prio() 132 struct tcf_proto __rcu **back; in tc_ctl_tfilter() 133 struct tcf_proto __rcu **chain; in tc_ctl_tfilter() 134 struct tcf_proto *tp; in tc_ctl_tfilter() 289 struct tcf_proto *next = rtnl_dereference(tp->next); in tc_ctl_tfilter() 316 struct tcf_proto *next = rtnl_dereference(tp->next); in tc_ctl_tfilter() 354 static int tcf_fill_node(struct net *net, struct sk_buff *skb, struct tcf_proto *tp, in tcf_fill_node() 389 struct nlmsghdr *n, struct tcf_proto *tp, in tfilter_notify() 414 static int tcf_node_dump(struct tcf_proto *tp, unsigned long n, in tcf_node_dump() [all …]
|
D | cls_tcindex.c | 43 struct tcf_proto *tp; 81 static int tcindex_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tcindex_classify() 107 static unsigned long tcindex_get(struct tcf_proto *tp, u32 handle) in tcindex_get() 119 static int tcindex_init(struct tcf_proto *tp) in tcindex_init() 137 tcindex_delete(struct tcf_proto *tp, unsigned long arg) in tcindex_delete() 171 static int tcindex_destroy_element(struct tcf_proto *tp, in tcindex_destroy_element() 216 tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, in tcindex_set_parms() 408 struct tcf_proto *tp, unsigned long base, u32 handle, in tcindex_change() 432 static void tcindex_walk(struct tcf_proto *tp, struct tcf_walker *walker) in tcindex_walk() 471 static bool tcindex_destroy(struct tcf_proto *tp, bool force) in tcindex_destroy() [all …]
|
D | sch_ingress.c | 20 struct tcf_proto __rcu *filter_list; 49 static struct tcf_proto __rcu **ingress_find_tcf(struct Qdisc *sch, in ingress_find_tcf() 63 struct tcf_proto *fl = rcu_dereference_bh(p->filter_list); in ingress_enqueue()
|
D | cls_route.c | 59 struct tcf_proto *tp; 128 static int route4_classify(struct sk_buff *skb, const struct tcf_proto *tp, in route4_classify() 230 static unsigned long route4_get(struct tcf_proto *tp, u32 handle) in route4_get() 259 static int route4_init(struct tcf_proto *tp) in route4_init() 280 static bool route4_destroy(struct tcf_proto *tp, bool force) in route4_destroy() 321 static int route4_delete(struct tcf_proto *tp, unsigned long arg) in route4_delete() 380 static int route4_set_parms(struct net *net, struct tcf_proto *tp, in route4_set_parms() 475 struct tcf_proto *tp, unsigned long base, in route4_change() 564 static void route4_walk(struct tcf_proto *tp, struct tcf_walker *arg) in route4_walk() 600 static int route4_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in route4_dump()
|
D | cls_u32.c | 66 struct tcf_proto *tp; 105 static int u32_classify(struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res) in u32_classify() 286 static unsigned long u32_get(struct tcf_proto *tp, u32 handle) in u32_get() 320 static int u32_init(struct tcf_proto *tp) in u32_init() 356 static int u32_destroy_key(struct tcf_proto *tp, in u32_destroy_key() 404 static int u32_delete_key(struct tcf_proto *tp, struct tc_u_knode *key) in u32_delete_key() 427 static void u32_clear_hnode(struct tcf_proto *tp, struct tc_u_hnode *ht) in u32_clear_hnode() 442 static int u32_destroy_hnode(struct tcf_proto *tp, struct tc_u_hnode *ht) in u32_destroy_hnode() 477 static bool u32_destroy(struct tcf_proto *tp, bool force) in u32_destroy() 535 static int u32_delete(struct tcf_proto *tp, unsigned long arg) in u32_delete() [all …]
|
D | cls_rsvp.h | 131 static int rsvp_classify(struct sk_buff *skb, const struct tcf_proto *tp, in rsvp_classify() 225 static void rsvp_replace(struct tcf_proto *tp, struct rsvp_filter *n, u32 h) in rsvp_replace() 252 static unsigned long rsvp_get(struct tcf_proto *tp, u32 handle) in rsvp_get() 274 static int rsvp_init(struct tcf_proto *tp) in rsvp_init() 287 rsvp_delete_filter(struct tcf_proto *tp, struct rsvp_filter *f) in rsvp_delete_filter() 294 static bool rsvp_destroy(struct tcf_proto *tp, bool force) in rsvp_destroy() 332 static int rsvp_delete(struct tcf_proto *tp, unsigned long arg) in rsvp_delete() 372 static unsigned int gen_handle(struct tcf_proto *tp, unsigned salt) in gen_handle() 455 struct tcf_proto *tp, unsigned long base, in rsvp_change() 626 static void rsvp_walk(struct tcf_proto *tp, struct tcf_walker *arg) in rsvp_walk() [all …]
|
D | cls_flow.c | 44 struct tcf_proto *tp; 279 static int flow_classify(struct sk_buff *skb, const struct tcf_proto *tp, in flow_classify() 363 struct tcf_proto *tp, unsigned long base, in flow_change() 540 static int flow_delete(struct tcf_proto *tp, unsigned long arg) in flow_delete() 549 static int flow_init(struct tcf_proto *tp) in flow_init() 561 static bool flow_destroy(struct tcf_proto *tp, bool force) in flow_destroy() 578 static unsigned long flow_get(struct tcf_proto *tp, u32 handle) in flow_get() 589 static int flow_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in flow_dump() 650 static void flow_walk(struct tcf_proto *tp, struct tcf_walker *arg) in flow_walk()
|
D | sch_prio.c | 27 struct tcf_proto __rcu *filter_list; 39 struct tcf_proto *fl; in prio_classify() 355 static struct tcf_proto __rcu **prio_find_tcf(struct Qdisc *sch, in prio_find_tcf()
|
D | sch_multiq.c | 34 struct tcf_proto __rcu *filter_list; 45 struct tcf_proto *fl = rcu_dereference_bh(q->filter_list); in multiq_classify() 391 static struct tcf_proto __rcu **multiq_find_tcf(struct Qdisc *sch, in multiq_find_tcf()
|
D | sch_dsmark.c | 40 struct tcf_proto __rcu *filter_list; 189 static inline struct tcf_proto __rcu **dsmark_find_tcf(struct Qdisc *sch, in dsmark_find_tcf() 232 struct tcf_proto *fl = rcu_dereference_bh(p->filter_list); in dsmark_enqueue()
|
D | sch_sfb.c | 58 struct tcf_proto __rcu *filter_list; 256 static bool sfb_classify(struct sk_buff *skb, struct tcf_proto *fl, in sfb_classify() 284 struct tcf_proto *fl; in sfb_enqueue() 665 static struct tcf_proto __rcu **sfb_find_tcf(struct Qdisc *sch, in sfb_find_tcf()
|
D | sch_drr.c | 38 struct tcf_proto __rcu *filter_list; 188 static struct tcf_proto __rcu **drr_tcf_chain(struct Qdisc *sch, in drr_tcf_chain() 323 struct tcf_proto *fl; in drr_classify()
|
D | sch_choke.c | 60 struct tcf_proto __rcu *filter_list; 206 struct tcf_proto *fl; in choke_classify() 569 static struct tcf_proto __rcu **choke_find_tcf(struct Qdisc *sch, in choke_find_tcf()
|
D | ematch.c | 173 static int tcf_em_validate(struct tcf_proto *tp, in tcf_em_validate() 304 int tcf_em_tree_validate(struct tcf_proto *tp, struct nlattr *nla, in tcf_em_tree_validate()
|
D | sch_fq_codel.c | 55 struct tcf_proto __rcu *filter_list; /* optional external classifier */ 88 struct tcf_proto *filter; in fq_codel_classify() 501 static struct tcf_proto __rcu **fq_codel_find_tcf(struct Qdisc *sch, in fq_codel_find_tcf()
|
D | sch_atm.c | 44 struct tcf_proto __rcu *filter_list; 348 static struct tcf_proto __rcu **atm_tc_find_tcf(struct Qdisc *sch, in atm_tc_find_tcf() 373 struct tcf_proto *fl; in atm_tc_enqueue()
|
D | sch_api.c | 1818 int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify_compat() 1842 int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify() 1847 const struct tcf_proto *otp = tp; in tc_classify() 1872 bool tcf_destroy(struct tcf_proto *tp, bool force) in tcf_destroy() 1883 void tcf_destroy_chain(struct tcf_proto __rcu **fl) in tcf_destroy_chain() 1885 struct tcf_proto *tp; in tcf_destroy_chain()
|
D | sch_sfq.c | 128 struct tcf_proto __rcu *filter_list; 190 struct tcf_proto *fl; in sfq_classify() 842 static struct tcf_proto __rcu **sfq_find_tcf(struct Qdisc *sch, in sfq_find_tcf()
|
D | sch_htb.c | 106 struct tcf_proto __rcu *filter_list; /* class attached filters */ 156 struct tcf_proto __rcu *filter_list; 212 struct tcf_proto *tcf; in htb_classify() 1527 static struct tcf_proto __rcu **htb_find_tcf(struct Qdisc *sch, in htb_find_tcf() 1532 struct tcf_proto __rcu **fl = cl ? &cl->filter_list : &q->filter_list; in htb_find_tcf()
|
D | sch_qfq.c | 184 struct tcf_proto __rcu *filter_list; 581 static struct tcf_proto __rcu **qfq_tcf_chain(struct Qdisc *sch, in qfq_tcf_chain() 710 struct tcf_proto *fl; in qfq_classify()
|
D | sch_hfsc.c | 119 struct tcf_proto __rcu *filter_list; /* filter list */ 1157 struct tcf_proto *tcf; in hfsc_classify() 1291 static struct tcf_proto __rcu **
|
D | sch_cbq.c | 136 struct tcf_proto __rcu *filter_list; 224 struct tcf_proto *fl; in cbq_classify() 1959 static struct tcf_proto __rcu **cbq_find_tcf(struct Qdisc *sch, in cbq_find_tcf()
|
/linux-4.1.27/include/net/ |
D | pkt_cls.h | 14 int (*fn)(struct tcf_proto *, unsigned long node, struct tcf_walker *); 27 cls_set_class(struct tcf_proto *tp, unsigned long *clp, in cls_set_class() 40 tcf_bind_filter(struct tcf_proto *tp, struct tcf_result *r, unsigned long base) in tcf_bind_filter() 51 tcf_unbind_filter(struct tcf_proto *tp, struct tcf_result *r) in tcf_unbind_filter() 133 int tcf_exts_validate(struct net *net, struct tcf_proto *tp, 137 void tcf_exts_change(struct tcf_proto *tp, struct tcf_exts *dst, 245 int tcf_em_tree_validate(struct tcf_proto *, struct nlattr *, 263 static inline void tcf_em_tree_change(struct tcf_proto *tp, in tcf_em_tree_change()
|
D | sch_generic.h | 170 struct tcf_proto __rcu ** (*tcf_chain)(struct Qdisc *, unsigned long); 216 const struct tcf_proto *, 218 int (*init)(struct tcf_proto*); 219 bool (*destroy)(struct tcf_proto*, bool); 221 unsigned long (*get)(struct tcf_proto*, u32 handle); 223 struct tcf_proto*, unsigned long, 226 int (*delete)(struct tcf_proto*, unsigned long); 227 void (*walk)(struct tcf_proto*, struct tcf_walker *arg); 230 int (*dump)(struct net*, struct tcf_proto*, unsigned long, 236 struct tcf_proto { struct [all …]
|
D | pkt_sched.h | 113 int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp, 115 int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
|