Lines Matching defs:qopt
20 const struct tc_mqprio_qopt *qopt,
26 for (i = 0; i < qopt->num_tc; i++) {
27 unsigned int last = qopt->offset[i] + qopt->count[i];
29 if (!qopt->count[i]) {
38 if (qopt->offset[i] >= dev->real_num_tx_queues ||
42 qopt->count[i], qopt->offset[i],
51 for (j = i + 1; j < qopt->num_tc; j++) {
52 if (intervals_overlap(qopt->offset[i], last,
53 qopt->offset[j],
54 qopt->offset[j] +
55 qopt->count[j])) {
58 i, qopt->count[i], qopt->offset[i],
59 j, qopt->count[j], qopt->offset[j]);
68 int mqprio_validate_qopt(struct net_device *dev, struct tc_mqprio_qopt *qopt,
76 if (qopt->num_tc > TC_MAX_QUEUE) {
84 if (qopt->prio_tc_map[i] >= qopt->num_tc) {
92 err = mqprio_validate_queue_counts(dev, qopt,
103 void mqprio_qopt_reconstruct(struct net_device *dev, struct tc_mqprio_qopt *qopt)
107 qopt->num_tc = num_tc;
108 memcpy(qopt->prio_tc_map, dev->prio_tc_map, sizeof(qopt->prio_tc_map));
111 qopt->count[tc] = dev->tc_to_txq[tc].count;
112 qopt->offset[tc] = dev->tc_to_txq[tc].offset;