Lines Matching full:classes
14 * classes at will. Instead one specifies number of classes, how many are
20 * The strict classes, if any, are tried for traffic first: first band 0, if it
55 struct ets_class classes[TCQ_ETS_MAX_BANDS]; member
94 return &q->classes[arg - 1]; in ets_class_from_arg()
100 int band = cl - q->classes; in ets_class_id()
130 q_sum += q->classes[i].quantum; in ets_offload_change()
133 quantum = q->classes[i].quantum; in ets_offload_change()
192 unsigned int band = cl - q->classes; in ets_class_is_strict()
208 /* Classes can be added and removed only through Qdisc_ops.change in ets_class_change()
400 return &q->classes[q->prio2band[band & TC_PRIO_MAX]]; in ets_classify()
406 return &q->classes[q->prio2band[0]]; in ets_classify()
407 return &q->classes[band]; in ets_classify()
466 cl = &q->classes[band]; in ets_qdisc_dequeue()
638 ets_class_id(sch, &q->classes[i]), in ets_qdisc_change()
651 if (q->classes[i].qdisc->q.qlen) { in ets_qdisc_change()
652 list_add_tail(&q->classes[i].alist, &q->active); in ets_qdisc_change()
653 q->classes[i].deficit = quanta[i]; in ets_qdisc_change()
657 if (i >= q->nstrict && q->classes[i].qdisc->q.qlen) in ets_qdisc_change()
658 list_del(&q->classes[i].alist); in ets_qdisc_change()
659 qdisc_tree_flush_backlog(q->classes[i].qdisc); in ets_qdisc_change()
665 WRITE_ONCE(q->classes[i].quantum, quanta[i]); in ets_qdisc_change()
668 q->classes[i].qdisc = queues[i]; in ets_qdisc_change()
669 if (q->classes[i].qdisc != &noop_qdisc) in ets_qdisc_change()
670 qdisc_hash_add(q->classes[i].qdisc, true); in ets_qdisc_change()
677 qdisc_put(q->classes[i].qdisc); in ets_qdisc_change()
678 q->classes[i].qdisc = NULL; in ets_qdisc_change()
679 WRITE_ONCE(q->classes[i].quantum, 0); in ets_qdisc_change()
680 q->classes[i].deficit = 0; in ets_qdisc_change()
681 gnet_stats_basic_sync_init(&q->classes[i].bstats); in ets_qdisc_change()
682 memset(&q->classes[i].qstats, 0, sizeof(q->classes[i].qstats)); in ets_qdisc_change()
702 INIT_LIST_HEAD(&q->classes[i].alist); in ets_qdisc_init()
713 if (q->classes[band].qdisc->q.qlen) in ets_qdisc_reset()
714 list_del(&q->classes[band].alist); in ets_qdisc_reset()
717 qdisc_reset(q->classes[band].qdisc); in ets_qdisc_reset()
728 qdisc_put(q->classes[band].qdisc); in ets_qdisc_destroy()
764 READ_ONCE(q->classes[band].quantum))) in ets_qdisc_dump()