Lines Matching refs:leaf
132 } leaf; member
547 WARN_ON(cl->level || !cl->un.leaf.q || !cl->un.leaf.q->q.qlen); in htb_activate()
552 list_add_tail(&cl->un.leaf.drop_list, in htb_activate()
569 list_del_init(&cl->un.leaf.drop_list); in htb_deactivate()
593 } else if ((ret = qdisc_enqueue(skb, cl->un.leaf.q)) != NET_XMIT_SUCCESS) { in htb_enqueue()
834 if (unlikely(cl->un.leaf.q->q.qlen == 0)) { in htb_dequeue_tree()
850 skb = cl->un.leaf.q->dequeue(cl->un.leaf.q); in htb_dequeue_tree()
854 qdisc_warn_nonwc("htb", cl->un.leaf.q); in htb_dequeue_tree()
863 cl->un.leaf.deficit[level] -= qdisc_pkt_len(skb); in htb_dequeue_tree()
864 if (cl->un.leaf.deficit[level] < 0) { in htb_dequeue_tree()
865 cl->un.leaf.deficit[level] += cl->quantum; in htb_dequeue_tree()
872 if (!cl->un.leaf.q->q.qlen) in htb_dequeue_tree()
956 un.leaf.drop_list); in htb_drop()
958 if (cl->un.leaf.q->ops->drop && in htb_drop()
959 (len = cl->un.leaf.q->ops->drop(cl->un.leaf.q))) { in htb_drop()
962 if (!cl->un.leaf.q->q.qlen) in htb_drop()
984 if (cl->un.leaf.q) in htb_reset()
985 qdisc_reset(cl->un.leaf.q); in htb_reset()
986 INIT_LIST_HEAD(&cl->un.leaf.drop_list); in htb_reset()
1106 if (!cl->level && cl->un.leaf.q) in htb_dump_class()
1107 tcm->tcm_info = cl->un.leaf.q->handle; in htb_dump_class()
1144 if (!cl->level && cl->un.leaf.q) in htb_dump_class_stats()
1145 qlen = cl->un.leaf.q->q.qlen; in htb_dump_class_stats()
1169 *old = qdisc_replace(sch, new, &cl->un.leaf.q); in htb_graft()
1176 return !cl->level ? cl->un.leaf.q : NULL; in htb_leaf()
1183 if (cl->un.leaf.q->q.qlen == 0) in htb_qlen_notify()
1211 WARN_ON(cl->level || !cl->un.leaf.q || cl->prio_activity); in htb_parent_to_leaf()
1219 INIT_LIST_HEAD(&parent->un.leaf.drop_list); in htb_parent_to_leaf()
1220 parent->un.leaf.q = new_q ? new_q : &noop_qdisc; in htb_parent_to_leaf()
1230 WARN_ON(!cl->un.leaf.q); in htb_destroy_class()
1231 qdisc_destroy(cl->un.leaf.q); in htb_destroy_class()
1290 unsigned int qlen = cl->un.leaf.q->q.qlen; in htb_delete()
1291 unsigned int backlog = cl->un.leaf.q->qstats.backlog; in htb_delete()
1293 qdisc_reset(cl->un.leaf.q); in htb_delete()
1294 qdisc_tree_reduce_backlog(cl->un.leaf.q, qlen, backlog); in htb_delete()
1413 INIT_LIST_HEAD(&cl->un.leaf.drop_list); in htb_change_class()
1427 unsigned int qlen = parent->un.leaf.q->q.qlen; in htb_change_class()
1428 unsigned int backlog = parent->un.leaf.q->qstats.backlog; in htb_change_class()
1431 qdisc_reset(parent->un.leaf.q); in htb_change_class()
1432 qdisc_tree_reduce_backlog(parent->un.leaf.q, qlen, backlog); in htb_change_class()
1433 qdisc_destroy(parent->un.leaf.q); in htb_change_class()
1447 cl->un.leaf.q = new_q ? new_q : &noop_qdisc; in htb_change_class()
1586 .leaf = htb_leaf,