Lines Matching refs:sch
68 static int skbprio_enqueue(struct sk_buff *skb, struct Qdisc *sch, in skbprio_enqueue() argument
72 struct skbprio_sched_data *q = qdisc_priv(sch); in skbprio_enqueue()
82 if (sch->q.qlen < sch->limit) { in skbprio_enqueue()
84 qdisc_qstats_backlog_inc(sch, skb); in skbprio_enqueue()
94 sch->q.qlen++; in skbprio_enqueue()
103 return qdisc_drop(skb, sch, to_free); in skbprio_enqueue()
107 qdisc_qstats_backlog_inc(sch, skb); in skbprio_enqueue()
114 qdisc_qstats_backlog_dec(sch, to_drop); in skbprio_enqueue()
115 qdisc_drop(to_drop, sch, to_free); in skbprio_enqueue()
125 BUG_ON(sch->q.qlen != 1); in skbprio_enqueue()
139 static struct sk_buff *skbprio_dequeue(struct Qdisc *sch) in skbprio_dequeue() argument
141 struct skbprio_sched_data *q = qdisc_priv(sch); in skbprio_dequeue()
148 sch->q.qlen--; in skbprio_dequeue()
149 qdisc_qstats_backlog_dec(sch, skb); in skbprio_dequeue()
150 qdisc_bstats_update(sch, skb); in skbprio_dequeue()
157 BUG_ON(sch->q.qlen); in skbprio_dequeue()
167 static int skbprio_change(struct Qdisc *sch, struct nlattr *opt, in skbprio_change() argument
175 sch->limit = ctl->limit; in skbprio_change()
179 static int skbprio_init(struct Qdisc *sch, struct nlattr *opt, in skbprio_init() argument
182 struct skbprio_sched_data *q = qdisc_priv(sch); in skbprio_init()
192 sch->limit = 64; in skbprio_init()
196 return skbprio_change(sch, opt, extack); in skbprio_init()
199 static int skbprio_dump(struct Qdisc *sch, struct sk_buff *skb) in skbprio_dump() argument
203 opt.limit = sch->limit; in skbprio_dump()
211 static void skbprio_reset(struct Qdisc *sch) in skbprio_reset() argument
213 struct skbprio_sched_data *q = qdisc_priv(sch); in skbprio_reset()
224 static void skbprio_destroy(struct Qdisc *sch) in skbprio_destroy() argument
226 struct skbprio_sched_data *q = qdisc_priv(sch); in skbprio_destroy()
233 static struct Qdisc *skbprio_leaf(struct Qdisc *sch, unsigned long arg) in skbprio_leaf() argument
238 static unsigned long skbprio_find(struct Qdisc *sch, u32 classid) in skbprio_find() argument
243 static int skbprio_dump_class(struct Qdisc *sch, unsigned long cl, in skbprio_dump_class() argument
250 static int skbprio_dump_class_stats(struct Qdisc *sch, unsigned long cl, in skbprio_dump_class_stats() argument
253 struct skbprio_sched_data *q = qdisc_priv(sch); in skbprio_dump_class_stats()
260 static void skbprio_walk(struct Qdisc *sch, struct qdisc_walker *arg) in skbprio_walk() argument
268 if (!tc_qdisc_stats_dump(sch, i + 1, arg)) in skbprio_walk()