Lines Matching refs:un
136 } un; member
406 if (p->un.inner.clprio[prio].feed.rb_node) in htb_activate_prios()
412 htb_add_to_id_tree(&p->un.inner.clprio[prio].feed, cl, prio); in htb_activate_prios()
442 if (p->un.inner.clprio[prio].ptr == cl->node + prio) { in htb_deactivate_prios()
447 p->un.inner.clprio[prio].last_ptr_id = cl->common.classid; in htb_deactivate_prios()
448 p->un.inner.clprio[prio].ptr = NULL; in htb_deactivate_prios()
452 &p->un.inner.clprio[prio].feed); in htb_deactivate_prios()
454 if (!p->un.inner.clprio[prio].feed.rb_node) in htb_deactivate_prios()
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()
800 clp = &cl->un.inner.clprio[prio]; in htb_lookup_leaf()
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()
855 htb_next_rb_node(level ? &cl->parent->un.inner.clprio[prio].ptr: 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()
866 htb_next_rb_node(level ? &cl->parent->un.inner.clprio[prio].ptr : 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()
982 memset(&cl->un.inner, 0, sizeof(cl->un.inner)); in htb_reset()
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()
1218 memset(&parent->un.inner, 0, sizeof(parent->un.inner)); 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()
1444 memset(&parent->un.inner, 0, sizeof(parent->un.inner)); in htb_change_class()
1447 cl->un.leaf.q = new_q ? new_q : &noop_qdisc; in htb_change_class()