Lines Matching defs:leaf

90 /* interior & leaf nodes; props specific to leaves are marked L:
101 int quantum; /* but stored for parent-to-leaf return */
127 } leaf;
199 * should be passed directly thru. In all other cases leaf class is returned.
204 * have no valid leaf we try to use MAJOR:default leaf. It still unsuccessful
228 /* Start with inner filter chain if a non-leaf class is selected */
256 return cl; /* we hit leaf; return it */
552 * htb_activate - inserts leaf cl into appropriate active feeds
554 * Routine learns (new) priority of leaf and activates feed chain
555 * for the prio. It can be called on already active leaf safely.
556 * It also adds leaf into droplist.
560 WARN_ON(cl->level || !cl->leaf.q || !cl->leaf.q->q.qlen);
569 * htb_deactivate - remove leaf cl from active feeds
571 * Make sure that leaf is active. In the other words it can't be called
572 * with non-active leaf. It also removes class from the drop list.
605 } else if ((ret = qdisc_enqueue(skb, cl->leaf.q,
648 * htb_charge_class - charges amount "bytes" to leaf and ancestors
650 * Routine assumes that packet "bytes" long was dequeued from leaf cl
652 * leaf and all ancestors and to rate bucket for ancestors at levels
765 * htb_lookup_leaf - returns next leaf class in DRR order
767 * Find leaf where current feed pointers points to.
842 /* class can be empty - it is unlikely but can be true if leaf
844 * graft operation on the leaf since last dequeue;
847 if (unlikely(cl->leaf.q->q.qlen == 0)) {
863 skb = cl->leaf.q->dequeue(cl->leaf.q);
867 qdisc_warn_nonwc("htb", cl->leaf.q);
876 cl->leaf.deficit[level] -= qdisc_pkt_len(skb);
877 if (cl->leaf.deficit[level] < 0) {
878 cl->leaf.deficit[level] += cl->quantum;
885 if (!cl->leaf.q->q.qlen)
963 if (cl->leaf.q)
964 qdisc_reset(cl->leaf.q);
1087 if (!cl->level && cl->leaf.q)
1088 tcm->tcm_info = cl->leaf.q->handle;
1131 if (!cl->level && cl->leaf.q)
1132 qdisc_qstats_qlen_backlog(cl->leaf.q, &qlen, &qs.backlog);
1160 *old = qdisc_replace(sch, new, &cl->leaf.q);
1167 return !cl->level ? cl->leaf.q : NULL;
1193 WARN_ON(cl->level || !cl->leaf.q || cl->prio_activity);
1201 parent->leaf.q = new_q ? new_q : &noop_qdisc;
1211 WARN_ON(!cl->leaf.q);
1212 qdisc_put(cl->leaf.q);
1274 qdisc_purge_queue(cl->leaf.q);
1396 /* create leaf qdisc early because it uses kmalloc(GFP_KERNEL)
1405 qdisc_purge_queue(parent->leaf.q);
1406 parent_qdisc = parent->leaf.q;
1419 /* leaf (we) needs elementary qdisc */
1420 cl->leaf.q = new_q ? new_q : &noop_qdisc;
1436 if (cl->leaf.q != &noop_qdisc)
1437 qdisc_hash_add(cl->leaf.q, true);
1459 * is really leaf before changing cl->leaf !
1562 .leaf = htb_leaf,