/* Check the input */ if (qopt->parent != TC_H_ROOT) return -EINVAL;
params = &qopt->replace_params; if (params->bands != NUM_PRIO_QUEUES) return -EINVAL;
for (i = 0; i < params->bands; ++i) { /* In the switch the DWRR is always on the lowest consecutive * priorities. Due to this, the first priority must map to the * first DWRR band.
*/ if (params->priomap[i] != (7 - i)) return -EINVAL;
if (params->quanta[i] && params->weights[i] == 0) return -EINVAL;
}
se_idx = SE_IDX_PORT + port->chip_port;
/* Find minimum weight */ for (i = 0; i < params->bands; ++i) { if (params->quanta[i] == 0) continue;
w_min = min(w_min, params->weights[i]);
}
for (i = 0; i < params->bands; ++i) { if (params->quanta[i] == 0) continue;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.