Lines Matching refs:sch

64 static int dsmark_graft(struct Qdisc *sch, unsigned long arg,  in dsmark_graft()  argument
68 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_graft()
71 __func__, sch, p, new, old); in dsmark_graft()
74 new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, in dsmark_graft()
75 sch->handle, NULL); in dsmark_graft()
80 *old = qdisc_replace(sch, new, &p->q); in dsmark_graft()
84 static struct Qdisc *dsmark_leaf(struct Qdisc *sch, unsigned long arg) in dsmark_leaf() argument
86 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_leaf()
90 static unsigned long dsmark_find(struct Qdisc *sch, u32 classid) in dsmark_find() argument
95 static unsigned long dsmark_bind_filter(struct Qdisc *sch, in dsmark_bind_filter() argument
99 __func__, sch, qdisc_priv(sch), classid); in dsmark_bind_filter()
101 return dsmark_find(sch, classid); in dsmark_bind_filter()
104 static void dsmark_unbind_filter(struct Qdisc *sch, unsigned long cl) in dsmark_unbind_filter() argument
116 static int dsmark_change(struct Qdisc *sch, u32 classid, u32 parent, in dsmark_change() argument
120 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_change()
126 __func__, sch, p, classid, parent, *arg); in dsmark_change()
153 static int dsmark_delete(struct Qdisc *sch, unsigned long arg, in dsmark_delete() argument
156 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_delete()
167 static void dsmark_walk(struct Qdisc *sch, struct qdisc_walker *walker) in dsmark_walk() argument
169 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_walk()
173 __func__, sch, p, walker); in dsmark_walk()
182 if (walker->fn(sch, i + 1, walker) < 0) { in dsmark_walk()
192 static struct tcf_block *dsmark_tcf_block(struct Qdisc *sch, unsigned long cl, in dsmark_tcf_block() argument
195 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_tcf_block()
202 static int dsmark_enqueue(struct sk_buff *skb, struct Qdisc *sch, in dsmark_enqueue() argument
206 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_enqueue()
209 pr_debug("%s(skb %p,sch %p,[qdisc %p])\n", __func__, skb, sch, p); in dsmark_enqueue()
240 if (TC_H_MAJ(skb->priority) == sch->handle) in dsmark_enqueue()
274 qdisc_qstats_drop(sch); in dsmark_enqueue()
278 sch->qstats.backlog += len; in dsmark_enqueue()
279 sch->q.qlen++; in dsmark_enqueue()
284 qdisc_drop(skb, sch, to_free); in dsmark_enqueue()
288 static struct sk_buff *dsmark_dequeue(struct Qdisc *sch) in dsmark_dequeue() argument
290 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_dequeue()
294 pr_debug("%s(sch %p,[qdisc %p])\n", __func__, sch, p); in dsmark_dequeue()
300 qdisc_bstats_update(sch, skb); in dsmark_dequeue()
301 qdisc_qstats_backlog_dec(sch, skb); in dsmark_dequeue()
302 sch->q.qlen--; in dsmark_dequeue()
331 static struct sk_buff *dsmark_peek(struct Qdisc *sch) in dsmark_peek() argument
333 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_peek()
335 pr_debug("%s(sch %p,[qdisc %p])\n", __func__, sch, p); in dsmark_peek()
340 static int dsmark_init(struct Qdisc *sch, struct nlattr *opt, in dsmark_init() argument
343 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_init()
350 pr_debug("%s(sch %p,[qdisc %p],opt %p)\n", __func__, sch, p, opt); in dsmark_init()
355 err = tcf_block_get(&p->block, &p->filter_list, sch, extack); in dsmark_init()
391 p->q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, sch->handle, in dsmark_init()
405 static void dsmark_reset(struct Qdisc *sch) in dsmark_reset() argument
407 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_reset()
409 pr_debug("%s(sch %p,[qdisc %p])\n", __func__, sch, p); in dsmark_reset()
412 sch->qstats.backlog = 0; in dsmark_reset()
413 sch->q.qlen = 0; in dsmark_reset()
416 static void dsmark_destroy(struct Qdisc *sch) in dsmark_destroy() argument
418 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_destroy()
420 pr_debug("%s(sch %p,[qdisc %p])\n", __func__, sch, p); in dsmark_destroy()
428 static int dsmark_dump_class(struct Qdisc *sch, unsigned long cl, in dsmark_dump_class() argument
431 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_dump_class()
434 pr_debug("%s(sch %p,[qdisc %p],class %ld\n", __func__, sch, p, cl); in dsmark_dump_class()
439 tcm->tcm_handle = TC_H_MAKE(TC_H_MAJ(sch->handle), cl - 1); in dsmark_dump_class()
456 static int dsmark_dump(struct Qdisc *sch, struct sk_buff *skb) in dsmark_dump() argument
458 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_dump()