Home
last modified time | relevance | path

Searched refs:tcf_proto (Results 1 – 32 of 32) sorted by relevance

/linux-4.4.14/net/sched/
Dcls_cgroup.c25 struct tcf_proto *tp;
29 static int cls_cgroup_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_cgroup_classify()
46 static unsigned long cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get()
51 static int cls_cgroup_init(struct tcf_proto *tp) in cls_cgroup_init()
72 struct tcf_proto *tp, unsigned long base, in cls_cgroup_change()
127 static bool cls_cgroup_destroy(struct tcf_proto *tp, bool force) in cls_cgroup_destroy()
141 static int cls_cgroup_delete(struct tcf_proto *tp, unsigned long arg) in cls_cgroup_delete()
146 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg) in cls_cgroup_walk()
161 static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in cls_cgroup_dump()
Dcls_basic.c35 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()
Dcls_bpf.c50 struct tcf_proto *tp;
78 static int cls_bpf_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_bpf_classify()
142 static int cls_bpf_init(struct tcf_proto *tp) in cls_bpf_init()
156 static void cls_bpf_delete_prog(struct tcf_proto *tp, struct cls_bpf_prog *prog) in cls_bpf_delete_prog()
177 static int cls_bpf_delete(struct tcf_proto *tp, unsigned long arg) in cls_bpf_delete()
188 static bool cls_bpf_destroy(struct tcf_proto *tp, bool force) in cls_bpf_destroy()
207 static unsigned long cls_bpf_get(struct tcf_proto *tp, u32 handle) in cls_bpf_get()
266 const struct tcf_proto *tp) in cls_bpf_prog_from_efd()
304 static int cls_bpf_modify_existing(struct net *net, struct tcf_proto *tp, in cls_bpf_modify_existing()
352 static u32 cls_bpf_grab_new_handle(struct tcf_proto *tp, in cls_bpf_grab_new_handle()
[all …]
Dcls_fw.c48 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()
Dcls_api.c103 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 …]
Dcls_tcindex.c44 struct tcf_proto *tp;
82 static int tcindex_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tcindex_classify()
108 static unsigned long tcindex_get(struct tcf_proto *tp, u32 handle) in tcindex_get()
120 static int tcindex_init(struct tcf_proto *tp) in tcindex_init()
153 static int tcindex_delete(struct tcf_proto *tp, unsigned long arg) in tcindex_delete()
192 static int tcindex_destroy_element(struct tcf_proto *tp, in tcindex_destroy_element()
237 tcindex_set_parms(struct net *net, struct tcf_proto *tp, unsigned long base, in tcindex_set_parms()
429 struct tcf_proto *tp, unsigned long base, u32 handle, in tcindex_change()
453 static void tcindex_walk(struct tcf_proto *tp, struct tcf_walker *walker) in tcindex_walk()
492 static bool tcindex_destroy(struct tcf_proto *tp, bool force) in tcindex_destroy()
[all …]
Dcls_route.c59 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()
Dcls_u32.c66 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 …]
Dcls_rsvp.h131 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()
294 static void rsvp_delete_filter(struct tcf_proto *tp, struct rsvp_filter *f) in rsvp_delete_filter()
304 static bool rsvp_destroy(struct tcf_proto *tp, bool force) in rsvp_destroy()
342 static int rsvp_delete(struct tcf_proto *tp, unsigned long arg) in rsvp_delete()
382 static unsigned int gen_handle(struct tcf_proto *tp, unsigned salt) in gen_handle()
465 struct tcf_proto *tp, unsigned long base, in rsvp_change()
636 static void rsvp_walk(struct tcf_proto *tp, struct tcf_walker *arg) in rsvp_walk()
[all …]
Dcls_flow.c45 struct tcf_proto *tp;
292 static int flow_classify(struct sk_buff *skb, const struct tcf_proto *tp, in flow_classify()
376 struct tcf_proto *tp, unsigned long base, in flow_change()
553 static int flow_delete(struct tcf_proto *tp, unsigned long arg) in flow_delete()
562 static int flow_init(struct tcf_proto *tp) in flow_init()
574 static bool flow_destroy(struct tcf_proto *tp, bool force) in flow_destroy()
591 static unsigned long flow_get(struct tcf_proto *tp, u32 handle) in flow_get()
602 static int flow_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in flow_dump()
663 static void flow_walk(struct tcf_proto *tp, struct tcf_walker *arg) in flow_walk()
Dcls_flower.c118 static int fl_classify(struct sk_buff *skb, const struct tcf_proto *tp, in fl_classify()
146 static int fl_init(struct tcf_proto *tp) in fl_init()
168 static bool fl_destroy(struct tcf_proto *tp, bool force) in fl_destroy()
187 static unsigned long fl_get(struct tcf_proto *tp, u32 handle) in fl_get()
398 static int fl_set_parms(struct net *net, struct tcf_proto *tp, in fl_set_parms()
431 static u32 fl_grab_new_handle(struct tcf_proto *tp, in fl_grab_new_handle()
453 struct tcf_proto *tp, unsigned long base, in fl_change()
522 static int fl_delete(struct tcf_proto *tp, unsigned long arg) in fl_delete()
535 static void fl_walk(struct tcf_proto *tp, struct tcf_walker *arg) in fl_walk()
571 static int fl_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, in fl_dump()
Dsch_multiq.c34 struct tcf_proto __rcu *filter_list;
45 struct tcf_proto *fl = rcu_dereference_bh(q->filter_list); in multiq_classify()
387 static struct tcf_proto __rcu **multiq_find_tcf(struct Qdisc *sch, in multiq_find_tcf()
Dsch_prio.c27 struct tcf_proto __rcu *filter_list;
39 struct tcf_proto *fl; in prio_classify()
350 static struct tcf_proto __rcu **prio_find_tcf(struct Qdisc *sch, in prio_find_tcf()
Dsch_ingress.c43 static struct tcf_proto __rcu **ingress_find_tcf(struct Qdisc *sch, in ingress_find_tcf()
Dsch_sfb.c57 struct tcf_proto __rcu *filter_list;
255 static bool sfb_classify(struct sk_buff *skb, struct tcf_proto *fl, in sfb_classify()
283 struct tcf_proto *fl; in sfb_enqueue()
653 static struct tcf_proto __rcu **sfb_find_tcf(struct Qdisc *sch, in sfb_find_tcf()
Dsch_dsmark.c45 struct tcf_proto __rcu *filter_list;
185 static inline struct tcf_proto __rcu **dsmark_find_tcf(struct Qdisc *sch, in dsmark_find_tcf()
228 struct tcf_proto *fl = rcu_dereference_bh(p->filter_list); in dsmark_enqueue()
Dsch_drr.c38 struct tcf_proto __rcu *filter_list;
189 static struct tcf_proto __rcu **drr_tcf_chain(struct Qdisc *sch, in drr_tcf_chain()
320 struct tcf_proto *fl; in drr_classify()
Dematch.c173 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()
Dsch_atm.c44 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()
Dsch_fq_codel.c54 struct tcf_proto __rcu *filter_list; /* optional external classifier */
81 struct tcf_proto *filter; in fq_codel_classify()
539 static struct tcf_proto __rcu **fq_codel_find_tcf(struct Qdisc *sch, in fq_codel_find_tcf()
Dsch_choke.c60 struct tcf_proto __rcu *filter_list;
200 struct tcf_proto *fl; in choke_classify()
Dsch_sfq.c127 struct tcf_proto __rcu *filter_list;
169 struct tcf_proto *fl; in sfq_classify()
821 static struct tcf_proto __rcu **sfq_find_tcf(struct Qdisc *sch, in sfq_find_tcf()
Dsch_htb.c106 struct tcf_proto __rcu *filter_list; /* class attached filters */
156 struct tcf_proto __rcu *filter_list;
212 struct tcf_proto *tcf; in htb_classify()
1523 static struct tcf_proto __rcu **htb_find_tcf(struct Qdisc *sch, in htb_find_tcf()
1528 struct tcf_proto __rcu **fl = cl ? &cl->filter_list : &q->filter_list; in htb_find_tcf()
Dsch_api.c1820 int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify()
1825 const struct tcf_proto *old_tp = tp; in tc_classify()
1863 bool tcf_destroy(struct tcf_proto *tp, bool force) in tcf_destroy()
1874 void tcf_destroy_chain(struct tcf_proto __rcu **fl) in tcf_destroy_chain()
1876 struct tcf_proto *tp; in tcf_destroy_chain()
Dsch_qfq.c184 struct tcf_proto __rcu *filter_list;
580 static struct tcf_proto __rcu **qfq_tcf_chain(struct Qdisc *sch, in qfq_tcf_chain()
705 struct tcf_proto *fl; in qfq_classify()
Dsch_hfsc.c119 struct tcf_proto __rcu *filter_list; /* filter list */
1158 struct tcf_proto *tcf; in hfsc_classify()
1288 static struct tcf_proto __rcu **
Dsch_cbq.c136 struct tcf_proto __rcu *filter_list;
224 struct tcf_proto *fl; in cbq_classify()
1955 static struct tcf_proto __rcu **cbq_find_tcf(struct Qdisc *sch, in cbq_find_tcf()
/linux-4.4.14/include/net/
Dpkt_cls.h14 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()
Dsch_generic.h170 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 …]
Dpkt_sched.h113 int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
/linux-4.4.14/include/linux/
Dnetdevice.h1692 struct tcf_proto __rcu *ingress_cl_list;
/linux-4.4.14/net/core/
Ddev.c3679 struct tcf_proto *cl = rcu_dereference_bh(skb->dev->ingress_cl_list); in handle_ing()