Lines Matching full:band

20  * The strict classes, if any, are tried for traffic first: first band 0, if it
21 * has no traffic then band 1, etc.
24 * ones are tried next. Each band is assigned a deficit counter, initialized to
25 * "quantum" of that band. ETS maintains a list of active bandwidth-sharing
26 * bands whose qdiscs are non-empty. A packet is dequeued from the band at the
29 * scheduler moves on to the next band in the active list.
100 int band = cl - q->classes; in ets_class_id() local
102 return TC_H_MAKE(sch->handle, band + 1); in ets_class_id()
170 qopt.graft_params.band = arg - 1; in ets_offload_graft()
192 unsigned int band = cl - q->classes; in ets_class_is_strict() local
194 return band < q->nstrict; in ets_class_is_strict()
276 unsigned long band = TC_H_MIN(classid); in ets_class_find() local
279 if (band - 1 >= q->nbands) in ets_class_find()
281 return band; in ets_class_find()
377 u32 band = skb->priority; in ets_classify() local
398 if (TC_H_MAJ(band)) in ets_classify()
399 band = 0; in ets_classify()
400 return &q->classes[q->prio2band[band & TC_PRIO_MAX]]; in ets_classify()
402 band = res.classid; in ets_classify()
404 band = TC_H_MIN(band) - 1; in ets_classify()
405 if (band >= q->nbands) in ets_classify()
407 return &q->classes[band]; in ets_classify()
461 unsigned int band; in ets_qdisc_dequeue() local
465 for (band = 0; band < q->nstrict; band++) { in ets_qdisc_dequeue()
466 cl = &q->classes[band]; in ets_qdisc_dequeue()
506 u8 band; in ets_qdisc_priomap_parse() local
523 band = nla_get_u8(attr); in ets_qdisc_priomap_parse()
524 if (band >= nbands) { in ets_qdisc_priomap_parse()
525 NL_SET_ERR_MSG_MOD(extack, "Invalid band number in ETS priomap"); in ets_qdisc_priomap_parse()
528 priomap[prio++] = band; in ets_qdisc_priomap_parse()
545 int band = nstrict; in ets_qdisc_quanta_parse() local
558 if (band >= nbands) { in ets_qdisc_quanta_parse()
562 err = ets_quantum_parse(sch, attr, &quanta[band++], in ets_qdisc_quanta_parse()
603 /* Unless overridden, traffic goes to the last band. */ in ets_qdisc_change()
710 int band; in ets_qdisc_reset() local
712 for (band = q->nstrict; band < q->nbands; band++) { in ets_qdisc_reset()
713 if (q->classes[band].qdisc->q.qlen) in ets_qdisc_reset()
714 list_del(&q->classes[band].alist); in ets_qdisc_reset()
716 for (band = 0; band < q->nbands; band++) in ets_qdisc_reset()
717 qdisc_reset(q->classes[band].qdisc); in ets_qdisc_reset()
723 int band; in ets_qdisc_destroy() local
727 for (band = 0; band < q->nbands; band++) in ets_qdisc_destroy()
728 qdisc_put(q->classes[band].qdisc); in ets_qdisc_destroy()
737 int band; in ets_qdisc_dump() local
762 for (band = nstrict; band < nbands; band++) { in ets_qdisc_dump()
764 READ_ONCE(q->classes[band].quantum))) in ets_qdisc_dump()