Lines Matching refs:qdisc
73 struct Qdisc *qdisc; in mq_init() local
90 qdisc = qdisc_create_dflt(dev_queue, get_default_qdisc_ops(dev, ntx), in mq_init()
94 if (!qdisc) in mq_init()
96 priv->qdiscs[ntx] = qdisc; in mq_init()
97 qdisc->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; in mq_init()
110 struct Qdisc *qdisc, *old; in mq_attach() local
114 qdisc = priv->qdiscs[ntx]; in mq_attach()
115 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mq_attach()
120 qdisc_hash_add(qdisc, false); in mq_attach()
131 struct Qdisc *qdisc; in mq_dump() local
145 qdisc = netdev_get_tx_queue(dev, ntx)->qdisc_sleeping; in mq_dump()
146 spin_lock_bh(qdisc_lock(qdisc)); in mq_dump()
148 if (qdisc_is_percpu_stats(qdisc)) { in mq_dump()
149 qlen = qdisc_qlen_sum(qdisc); in mq_dump()
151 qdisc->cpu_bstats, in mq_dump()
152 &qdisc->bstats); in mq_dump()
154 qdisc->cpu_qstats, in mq_dump()
155 &qdisc->qstats, qlen); in mq_dump()
158 sch->q.qlen += qdisc->q.qlen; in mq_dump()
159 sch->bstats.bytes += qdisc->bstats.bytes; in mq_dump()
160 sch->bstats.packets += qdisc->bstats.packets; in mq_dump()
161 sch->qstats.qlen += qdisc->qstats.qlen; in mq_dump()
162 sch->qstats.backlog += qdisc->qstats.backlog; in mq_dump()
163 sch->qstats.drops += qdisc->qstats.drops; in mq_dump()
164 sch->qstats.requeues += qdisc->qstats.requeues; in mq_dump()
165 sch->qstats.overlimits += qdisc->qstats.overlimits; in mq_dump()
168 spin_unlock_bh(qdisc_lock(qdisc)); in mq_dump()