Lines Matching refs:qdisc
230 struct Qdisc *qdisc; in mqprio_init() local
274 qdisc = qdisc_create_dflt(dev_queue, in mqprio_init()
278 if (!qdisc) in mqprio_init()
281 priv->qdiscs[i] = qdisc; in mqprio_init()
282 qdisc->flags |= TCQ_F_ONETXQUEUE | TCQ_F_NOPARENT; in mqprio_init()
312 struct Qdisc *qdisc, *old; in mqprio_attach() local
317 qdisc = priv->qdiscs[ntx]; in mqprio_attach()
318 old = dev_graft_qdisc(qdisc->dev_queue, qdisc); in mqprio_attach()
322 qdisc_hash_add(qdisc, false); in mqprio_attach()
408 struct Qdisc *qdisc; in mqprio_dump() local
421 qdisc = netdev_get_tx_queue(dev, ntx)->qdisc_sleeping; in mqprio_dump()
422 spin_lock_bh(qdisc_lock(qdisc)); in mqprio_dump()
424 gnet_stats_add_basic(&sch->bstats, qdisc->cpu_bstats, in mqprio_dump()
425 &qdisc->bstats, false); in mqprio_dump()
426 gnet_stats_add_queue(&sch->qstats, qdisc->cpu_qstats, in mqprio_dump()
427 &qdisc->qstats); in mqprio_dump()
428 sch->q.qlen += qdisc_qlen(qdisc); in mqprio_dump()
430 spin_unlock_bh(qdisc_lock(qdisc)); in mqprio_dump()
531 struct Qdisc *qdisc = rtnl_dereference(q->qdisc); in mqprio_dump_class_stats() local
533 spin_lock_bh(qdisc_lock(qdisc)); in mqprio_dump_class_stats()
535 gnet_stats_add_basic(&bstats, qdisc->cpu_bstats, in mqprio_dump_class_stats()
536 &qdisc->bstats, false); in mqprio_dump_class_stats()
537 gnet_stats_add_queue(&qstats, qdisc->cpu_qstats, in mqprio_dump_class_stats()
538 &qdisc->qstats); in mqprio_dump_class_stats()
539 sch->q.qlen += qdisc_qlen(qdisc); in mqprio_dump_class_stats()
541 spin_unlock_bh(qdisc_lock(qdisc)); in mqprio_dump_class_stats()