Lines Matching refs:qdisc

139 	struct Qdisc *qdisc;  in mqprio_init()  local
228 qdisc = qdisc_create_dflt(dev_queue, in mqprio_init()
232 if (!qdisc) in mqprio_init()
235 priv->qdiscs[i] = qdisc; in mqprio_init()
236 qdisc->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; in mqprio_init()
293 struct Qdisc *qdisc, *old; in mqprio_attach() local
298 qdisc = priv->qdiscs[ntx]; in mqprio_attach()
299 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mqprio_attach()
303 qdisc_hash_add(qdisc, false); in mqprio_attach()
389 struct Qdisc *qdisc; in mqprio_dump() local
402 qdisc = netdev_get_tx_queue(dev, ntx)->qdisc_sleeping; in mqprio_dump()
403 spin_lock_bh(qdisc_lock(qdisc)); in mqprio_dump()
405 gnet_stats_add_basic(&sch->bstats, qdisc->cpu_bstats, in mqprio_dump()
406 &qdisc->bstats, false); in mqprio_dump()
407 gnet_stats_add_queue(&sch->qstats, qdisc->cpu_qstats, in mqprio_dump()
408 &qdisc->qstats); in mqprio_dump()
409 sch->q.qlen += qdisc_qlen(qdisc); in mqprio_dump()
411 spin_unlock_bh(qdisc_lock(qdisc)); in mqprio_dump()
518 struct Qdisc *qdisc = rtnl_dereference(q->qdisc); in mqprio_dump_class_stats() local
520 spin_lock_bh(qdisc_lock(qdisc)); in mqprio_dump_class_stats()
522 gnet_stats_add_basic(&bstats, qdisc->cpu_bstats, in mqprio_dump_class_stats()
523 &qdisc->bstats, false); in mqprio_dump_class_stats()
524 gnet_stats_add_queue(&qstats, qdisc->cpu_qstats, in mqprio_dump_class_stats()
525 &qdisc->qstats); in mqprio_dump_class_stats()
526 sch->q.qlen += qdisc_qlen(qdisc); in mqprio_dump_class_stats()
528 spin_unlock_bh(qdisc_lock(qdisc)); in mqprio_dump_class_stats()