Lines Matching refs:sch
23 static struct Qdisc *ingress_leaf(struct Qdisc *sch, unsigned long arg) in ingress_leaf() argument
28 static unsigned long ingress_find(struct Qdisc *sch, u32 classid) in ingress_find() argument
33 static unsigned long ingress_bind_filter(struct Qdisc *sch, in ingress_bind_filter() argument
36 return ingress_find(sch, classid); in ingress_bind_filter()
39 static void ingress_unbind_filter(struct Qdisc *sch, unsigned long cl) in ingress_unbind_filter() argument
43 static void ingress_walk(struct Qdisc *sch, struct qdisc_walker *walker) in ingress_walk() argument
47 static struct tcf_block *ingress_tcf_block(struct Qdisc *sch, unsigned long cl, in ingress_tcf_block() argument
50 struct ingress_sched_data *q = qdisc_priv(sch); in ingress_tcf_block()
62 static void ingress_ingress_block_set(struct Qdisc *sch, u32 block_index) in ingress_ingress_block_set() argument
64 struct ingress_sched_data *q = qdisc_priv(sch); in ingress_ingress_block_set()
69 static u32 ingress_ingress_block_get(struct Qdisc *sch) in ingress_ingress_block_get() argument
71 struct ingress_sched_data *q = qdisc_priv(sch); in ingress_ingress_block_get()
76 static int ingress_init(struct Qdisc *sch, struct nlattr *opt, in ingress_init() argument
79 struct ingress_sched_data *q = qdisc_priv(sch); in ingress_init()
80 struct net_device *dev = qdisc_dev(sch); in ingress_init()
85 mini_qdisc_pair_init(&q->miniqp, sch, &dev->miniq_ingress); in ingress_init()
91 err = tcf_block_get_ext(&q->block, sch, &q->block_info, extack); in ingress_init()
100 static void ingress_destroy(struct Qdisc *sch) in ingress_destroy() argument
102 struct ingress_sched_data *q = qdisc_priv(sch); in ingress_destroy()
104 tcf_block_put_ext(q->block, sch, &q->block_info); in ingress_destroy()
108 static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb) in ingress_dump() argument
155 static unsigned long clsact_find(struct Qdisc *sch, u32 classid) in clsact_find() argument
166 static unsigned long clsact_bind_filter(struct Qdisc *sch, in clsact_bind_filter() argument
169 return clsact_find(sch, classid); in clsact_bind_filter()
172 static struct tcf_block *clsact_tcf_block(struct Qdisc *sch, unsigned long cl, in clsact_tcf_block() argument
175 struct clsact_sched_data *q = qdisc_priv(sch); in clsact_tcf_block()
187 static void clsact_ingress_block_set(struct Qdisc *sch, u32 block_index) in clsact_ingress_block_set() argument
189 struct clsact_sched_data *q = qdisc_priv(sch); in clsact_ingress_block_set()
194 static void clsact_egress_block_set(struct Qdisc *sch, u32 block_index) in clsact_egress_block_set() argument
196 struct clsact_sched_data *q = qdisc_priv(sch); in clsact_egress_block_set()
201 static u32 clsact_ingress_block_get(struct Qdisc *sch) in clsact_ingress_block_get() argument
203 struct clsact_sched_data *q = qdisc_priv(sch); in clsact_ingress_block_get()
208 static u32 clsact_egress_block_get(struct Qdisc *sch) in clsact_egress_block_get() argument
210 struct clsact_sched_data *q = qdisc_priv(sch); in clsact_egress_block_get()
215 static int clsact_init(struct Qdisc *sch, struct nlattr *opt, in clsact_init() argument
218 struct clsact_sched_data *q = qdisc_priv(sch); in clsact_init()
219 struct net_device *dev = qdisc_dev(sch); in clsact_init()
225 mini_qdisc_pair_init(&q->miniqp_ingress, sch, &dev->miniq_ingress); in clsact_init()
231 err = tcf_block_get_ext(&q->ingress_block, sch, &q->ingress_block_info, in clsact_init()
238 mini_qdisc_pair_init(&q->miniqp_egress, sch, &dev->miniq_egress); in clsact_init()
244 return tcf_block_get_ext(&q->egress_block, sch, &q->egress_block_info, extack); in clsact_init()
247 static void clsact_destroy(struct Qdisc *sch) in clsact_destroy() argument
249 struct clsact_sched_data *q = qdisc_priv(sch); in clsact_destroy()
251 tcf_block_put_ext(q->egress_block, sch, &q->egress_block_info); in clsact_destroy()
252 tcf_block_put_ext(q->ingress_block, sch, &q->ingress_block_info); in clsact_destroy()