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()
833 if (unlikely(cl->un.leaf.q->q.qlen == 0)) { in htb_dequeue_tree()
849 skb = cl->un.leaf.q->dequeue(cl->un.leaf.q); in htb_dequeue_tree()
853 qdisc_warn_nonwc("htb", cl->un.leaf.q); in htb_dequeue_tree()
862 cl->un.leaf.deficit[level] -= qdisc_pkt_len(skb); in htb_dequeue_tree()
863 if (cl->un.leaf.deficit[level] < 0) { in htb_dequeue_tree()
864 cl->un.leaf.deficit[level] += cl->quantum; in htb_dequeue_tree()
871 if (!cl->un.leaf.q->q.qlen) in htb_dequeue_tree()
954 un.leaf.drop_list); in htb_drop()
956 if (cl->un.leaf.q->ops->drop && in htb_drop()
957 (len = cl->un.leaf.q->ops->drop(cl->un.leaf.q))) { in htb_drop()
959 if (!cl->un.leaf.q->q.qlen) in htb_drop()
981 if (cl->un.leaf.q) in htb_reset()
982 qdisc_reset(cl->un.leaf.q); in htb_reset()
983 INIT_LIST_HEAD(&cl->un.leaf.drop_list); in htb_reset()
1105 if (!cl->level && cl->un.leaf.q) in htb_dump_class()
1106 tcm->tcm_info = cl->un.leaf.q->handle; in htb_dump_class()
1143 if (!cl->level && cl->un.leaf.q) in htb_dump_class_stats()
1144 qlen = cl->un.leaf.q->q.qlen; in htb_dump_class_stats()
1169 *old = cl->un.leaf.q; in htb_graft()
1170 cl->un.leaf.q = new; in htb_graft()
1182 return !cl->level ? cl->un.leaf.q : NULL; in htb_leaf()
1189 if (cl->un.leaf.q->q.qlen == 0) in htb_qlen_notify()
1217 WARN_ON(cl->level || !cl->un.leaf.q || cl->prio_activity); in htb_parent_to_leaf()
1225 INIT_LIST_HEAD(&parent->un.leaf.drop_list); in htb_parent_to_leaf()
1226 parent->un.leaf.q = new_q ? new_q : &noop_qdisc; in htb_parent_to_leaf()
1236 WARN_ON(!cl->un.leaf.q); in htb_destroy_class()
1237 qdisc_destroy(cl->un.leaf.q); in htb_destroy_class()
1297 qlen = cl->un.leaf.q->q.qlen; in htb_delete()
1298 qdisc_reset(cl->un.leaf.q); in htb_delete()
1299 qdisc_tree_decrease_qlen(cl->un.leaf.q, qlen); in htb_delete()
1418 INIT_LIST_HEAD(&cl->un.leaf.drop_list); in htb_change_class()
1432 unsigned int qlen = parent->un.leaf.q->q.qlen; in htb_change_class()
1435 qdisc_reset(parent->un.leaf.q); in htb_change_class()
1436 qdisc_tree_decrease_qlen(parent->un.leaf.q, qlen); in htb_change_class()
1437 qdisc_destroy(parent->un.leaf.q); in htb_change_class()
1451 cl->un.leaf.q = new_q ? new_q : &noop_qdisc; in htb_change_class()
1590 .leaf = htb_leaf,