Home
last modified time | relevance | path

Searched refs:qopt (Results 1 – 11 of 11) sorted by relevance

/external/iproute2/tc/
Dq_tbf.c221 struct tc_tbf_qopt *qopt; in tbf_print_opt() local
235 qopt = RTA_DATA(tb[TCA_TBF_PARMS]); in tbf_print_opt()
236 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt)) in tbf_print_opt()
238 fprintf(f, "rate %s ", sprint_rate(qopt->rate.rate, b1)); in tbf_print_opt()
239 buffer = tc_calc_xmitsize(qopt->rate.rate, qopt->buffer); in tbf_print_opt()
242 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt()
247 fprintf(f, "[%08x] ", qopt->buffer); in tbf_print_opt()
248 if (qopt->peakrate.rate) { in tbf_print_opt()
249 fprintf(f, "peakrate %s ", sprint_rate(qopt->peakrate.rate, b1)); in tbf_print_opt()
250 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt()
[all …]
Dq_gred.c263 struct tc_gred_qopt *qopt; in gred_print_opt() local
279 qopt = RTA_DATA(tb[TCA_GRED_PARMS]); in gred_print_opt()
280 if (RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) { in gred_print_opt()
287 for (i=0;i<MAX_DPs;i++, qopt++) { in gred_print_opt()
288 if (qopt->DP >= MAX_DPs) continue; in gred_print_opt()
291 qopt->DP, in gred_print_opt()
292 qopt->prio, in gred_print_opt()
293 sprint_size(qopt->qave, b4), in gred_print_opt()
294 sprint_size(qopt->backlog, b5)); in gred_print_opt()
296 qopt->forced+qopt->early, in gred_print_opt()
[all …]
Dq_sfq.c84 struct tc_sfq_qopt *qopt; in sfq_print_opt() local
90 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in sfq_print_opt()
92 qopt = RTA_DATA(opt); in sfq_print_opt()
93 fprintf(f, "limit %up ", qopt->limit); in sfq_print_opt()
94 fprintf(f, "quantum %s ", sprint_size(qopt->quantum, b1)); in sfq_print_opt()
96 fprintf(f, "flows %u/%u ", qopt->flows, qopt->divisor); in sfq_print_opt()
98 if (qopt->perturb_period) in sfq_print_opt()
99 fprintf(f, "perturb %dsec ", qopt->perturb_period); in sfq_print_opt()
Dq_netem.c311 struct tc_netem_qopt qopt; in netem_print_opt() local
312 int len = RTA_PAYLOAD(opt) - sizeof(qopt); in netem_print_opt()
322 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); in netem_print_opt()
326 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), in netem_print_opt()
346 fprintf(f, "limit %d", qopt.limit); in netem_print_opt()
348 if (qopt.latency) { in netem_print_opt()
349 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1)); in netem_print_opt()
351 if (qopt.jitter) { in netem_print_opt()
352 fprintf(f, " %s", sprint_ticks(qopt.jitter, b1)); in netem_print_opt()
358 if (qopt.loss) { in netem_print_opt()
[all …]
Dq_red.c163 struct tc_red_qopt *qopt; in red_print_opt() local
175 qopt = RTA_DATA(tb[TCA_RED_PARMS]); in red_print_opt()
176 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) in red_print_opt()
179 sprint_size(qopt->limit, b1), in red_print_opt()
180 sprint_size(qopt->qth_min, b2), in red_print_opt()
181 sprint_size(qopt->qth_max, b3)); in red_print_opt()
183 if (qopt->flags & TC_RED_ECN) in red_print_opt()
188 qopt->Wlog, qopt->Plog, qopt->Scell_log); in red_print_opt()
Dq_hfsc.c72 struct tc_hfsc_qopt qopt; in hfsc_parse_opt() local
74 memset(&qopt, 0, sizeof(qopt)); in hfsc_parse_opt()
79 if (qopt.defcls != 0) { in hfsc_parse_opt()
83 if (get_u16(&qopt.defcls, *argv, 16) < 0) { in hfsc_parse_opt()
98 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt)); in hfsc_parse_opt()
105 struct tc_hfsc_qopt *qopt; in hfsc_print_opt() local
109 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in hfsc_print_opt()
111 qopt = RTA_DATA(opt); in hfsc_print_opt()
113 if (qopt->defcls != 0) in hfsc_print_opt()
114 fprintf(f, "default %x ", qopt->defcls); in hfsc_print_opt()
Dq_multiq.c69 struct tc_multiq_qopt *qopt; in multiq_print_opt() local
73 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in multiq_print_opt()
76 qopt = RTA_DATA(opt); in multiq_print_opt()
78 fprintf(f, "bands %u/%u ", qopt->bands, qopt->max_bands); in multiq_print_opt()
Dq_fifo.c65 struct tc_fifo_qopt *qopt; in fifo_print_opt() local
70 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in fifo_print_opt()
72 qopt = RTA_DATA(opt); in fifo_print_opt()
75 fprintf(f, "limit %s", sprint_size(qopt->limit, b1)); in fifo_print_opt()
77 fprintf(f, "limit %up", qopt->limit); in fifo_print_opt()
Dq_rr.c97 struct tc_prio_qopt *qopt; in rr_print_opt() local
103 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in rr_print_opt()
104 sizeof(*qopt))) in rr_print_opt()
107 fprintf(f, "bands %u priomap ", qopt->bands); in rr_print_opt()
109 fprintf(f, " %d", qopt->priomap[i]); in rr_print_opt()
Dq_prio.c103 struct tc_prio_qopt *qopt; in prio_print_opt() local
109 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in prio_print_opt()
110 sizeof(*qopt))) in prio_print_opt()
113 fprintf(f, "bands %u priomap ", qopt->bands); in prio_print_opt()
115 fprintf(f, " %d", qopt->priomap[i]); in prio_print_opt()
/external/iproute2/
DChangeLog109 * Handle pfifo_fast that has no qopt without segfaulting