Searched refs:qopt (Results 1 - 13 of 13) sorted by relevance

/external/iproute2/tc/
H A Dq_multiq.c66 struct tc_multiq_qopt *qopt; local
70 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
73 qopt = RTA_DATA(opt);
75 fprintf(f, "bands %u/%u ", qopt->bands, qopt->max_bands);
H A Dq_tbf.c221 struct tc_tbf_qopt *qopt; local
235 qopt = RTA_DATA(tb[TCA_TBF_PARMS]);
236 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt))
238 fprintf(f, "rate %s ", sprint_rate(qopt->rate.rate, b1));
239 buffer = tc_calc_xmitsize(qopt->rate.rate, qopt->buffer);
242 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2));
247 fprintf(f, "[%08x] ", qopt->buffer);
248 if (qopt
[all...]
H A Dq_fifo.c63 struct tc_fifo_qopt *qopt; local
68 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
70 qopt = RTA_DATA(opt);
73 fprintf(f, "limit %s", sprint_size(qopt->limit, b1));
75 fprintf(f, "limit %up", qopt->limit);
H A Dq_sfb.c147 struct tc_sfb_qopt *qopt; local
155 qopt = RTA_DATA(tb[TCA_SFB_PARMS]);
156 if (RTA_PAYLOAD(tb[TCA_SFB_PARMS]) < sizeof(*qopt))
163 qopt->limit, qopt->max, qopt->bin_size,
164 (double)qopt->increment / SFB_MAX_PROB,
165 (double)qopt->decrement / SFB_MAX_PROB,
166 qopt->penalty_rate, qopt
[all...]
H A Dq_mqprio.c110 struct tc_mqprio_qopt *qopt; local
115 qopt = RTA_DATA(opt);
117 fprintf(f, " tc %u map ", qopt->num_tc);
119 fprintf(f, "%u ", qopt->prio_tc_map[i]);
121 for (i = 0; i < qopt->num_tc; i++)
122 fprintf(f, "(%u:%u) ", qopt->offset[i],
123 qopt->offset[i] + qopt->count[i] - 1);
H A Dq_gred.c265 struct tc_gred_qopt *qopt; local
286 qopt = RTA_DATA(tb[TCA_GRED_PARMS]);
287 if (RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) {
294 for (i=0;i<MAX_DPs;i++, qopt++) {
295 if (qopt->DP >= MAX_DPs) continue;
298 qopt->DP,
299 qopt->prio,
300 sprint_size(qopt->qave, b4),
301 sprint_size(qopt->backlog, b5));
303 qopt
[all...]
H A Dq_prio.c99 struct tc_prio_qopt *qopt; local
105 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt,
106 sizeof(*qopt)))
109 fprintf(f, "bands %u priomap ", qopt->bands);
111 fprintf(f, " %d", qopt->priomap[i]);
H A Dq_rr.c94 struct tc_prio_qopt *qopt; local
100 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt,
101 sizeof(*qopt)))
104 fprintf(f, "bands %u priomap ", qopt->bands);
106 fprintf(f, " %d", qopt->priomap[i]);
H A Dq_red.c160 struct tc_red_qopt *qopt; local
173 qopt = RTA_DATA(tb[TCA_RED_PARMS]);
174 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt))
182 sprint_size(qopt->limit, b1),
183 sprint_size(qopt->qth_min, b2),
184 sprint_size(qopt->qth_max, b3));
185 if (qopt->flags & TC_RED_ECN)
187 if (qopt->flags & TC_RED_HARDDROP)
189 if (qopt->flags & TC_RED_ADAPTATIVE)
192 fprintf(f, "ewma %u ", qopt
[all...]
H A Dq_choke.c170 const struct tc_red_qopt *qopt; local
180 qopt = RTA_DATA(tb[TCA_CHOKE_PARMS]);
181 if (RTA_PAYLOAD(tb[TCA_CHOKE_PARMS]) < sizeof(*qopt))
188 qopt->limit, qopt->qth_min, qopt->qth_max);
190 if (qopt->flags & TC_RED_ECN)
194 fprintf(f, "ewma %u ", qopt->Wlog);
198 fprintf(f, "Plog %u ", qopt->Plog);
199 fprintf(f, "Scell_log %u", qopt
[all...]
H A Dq_sfq.c208 struct tc_sfq_qopt *qopt; local
216 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
220 qopt = RTA_DATA(opt);
221 fprintf(f, "limit %up ", qopt->limit);
222 fprintf(f, "quantum %s ", sprint_size(qopt->quantum, b1));
229 fprintf(f, "flows %u/%u ", qopt->flows, qopt->divisor);
231 fprintf(f, "divisor %u ", qopt->divisor);
232 if (qopt->perturb_period)
233 fprintf(f, "perturb %dsec ", qopt
[all...]
H A Dq_hfsc.c76 struct tc_hfsc_qopt qopt; local
78 memset(&qopt, 0, sizeof(qopt));
83 if (qopt.defcls != 0) {
87 if (get_u16(&qopt.defcls, *argv, 16) < 0) {
102 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt));
109 struct tc_hfsc_qopt *qopt; local
113 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
115 qopt
[all...]
H A Dq_netem.c503 struct tc_netem_qopt qopt; local
505 int len = RTA_PAYLOAD(opt) - sizeof(qopt);
515 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt));
519 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt),
553 fprintf(f, "limit %d", qopt.limit);
555 if (qopt.latency) {
556 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1));
558 if (qopt.jitter) {
559 fprintf(f, " %s", sprint_ticks(qopt
[all...]

Completed in 115 milliseconds