• Home
  • Raw
  • Download

Lines Matching refs:q

69 	struct sk_buff *skb = __skb_dequeue(&sch->q);  in dequeue()
77 struct codel_sched_data *q = qdisc_priv(sch); in codel_qdisc_dequeue() local
80 skb = codel_dequeue(sch, &q->params, &q->vars, &q->stats, dequeue); in codel_qdisc_dequeue()
85 if (q->stats.drop_count && sch->q.qlen) { in codel_qdisc_dequeue()
86 qdisc_tree_reduce_backlog(sch, q->stats.drop_count, q->stats.drop_len); in codel_qdisc_dequeue()
87 q->stats.drop_count = 0; in codel_qdisc_dequeue()
88 q->stats.drop_len = 0; in codel_qdisc_dequeue()
97 struct codel_sched_data *q; in codel_qdisc_enqueue() local
103 q = qdisc_priv(sch); in codel_qdisc_enqueue()
104 q->drop_overlimit++; in codel_qdisc_enqueue()
117 struct codel_sched_data *q = qdisc_priv(sch); in codel_change() local
134 q->params.target = ((u64)target * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change()
140 q->params.interval = ((u64)interval * NSEC_PER_USEC) >> CODEL_SHIFT; in codel_change()
147 q->params.ecn = !!nla_get_u32(tb[TCA_CODEL_ECN]); in codel_change()
149 qlen = sch->q.qlen; in codel_change()
150 while (sch->q.qlen > sch->limit) { in codel_change()
151 struct sk_buff *skb = __skb_dequeue(&sch->q); in codel_change()
157 qdisc_tree_reduce_backlog(sch, qlen - sch->q.qlen, dropped); in codel_change()
165 struct codel_sched_data *q = qdisc_priv(sch); in codel_init() local
169 codel_params_init(&q->params); in codel_init()
170 codel_vars_init(&q->vars); in codel_init()
171 codel_stats_init(&q->stats); in codel_init()
190 struct codel_sched_data *q = qdisc_priv(sch); in codel_dump() local
198 codel_time_to_us(q->params.target)) || in codel_dump()
202 codel_time_to_us(q->params.interval)) || in codel_dump()
204 q->params.ecn)) in codel_dump()
216 const struct codel_sched_data *q = qdisc_priv(sch); in codel_dump_stats() local
218 .maxpacket = q->stats.maxpacket, in codel_dump_stats()
219 .count = q->vars.count, in codel_dump_stats()
220 .lastcount = q->vars.lastcount, in codel_dump_stats()
221 .drop_overlimit = q->drop_overlimit, in codel_dump_stats()
222 .ldelay = codel_time_to_us(q->vars.ldelay), in codel_dump_stats()
223 .dropping = q->vars.dropping, in codel_dump_stats()
224 .ecn_mark = q->stats.ecn_mark, in codel_dump_stats()
227 if (q->vars.dropping) { in codel_dump_stats()
228 codel_tdiff_t delta = q->vars.drop_next - codel_get_time(); in codel_dump_stats()
241 struct codel_sched_data *q = qdisc_priv(sch); in codel_reset() local
244 codel_vars_init(&q->vars); in codel_reset()