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

/external/iproute2/tc/
H A Dq_multiq.c65 struct tc_multiq_qopt *qopt; local
69 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
72 qopt = RTA_DATA(opt);
74 fprintf(f, "bands %u/%u ", qopt->bands, qopt->max_bands);
H A Dq_sfb.c146 struct tc_sfb_qopt *qopt; local
154 qopt = RTA_DATA(tb[TCA_SFB_PARMS]);
155 if (RTA_PAYLOAD(tb[TCA_SFB_PARMS]) < sizeof(*qopt))
161 qopt->limit, qopt->max, qopt->bin_size,
162 (double)qopt->increment / SFB_MAX_PROB,
163 (double)qopt->decrement / SFB_MAX_PROB,
164 qopt->penalty_rate, qopt
[all...]
H A Dq_mqprio.c112 struct tc_mqprio_qopt *qopt; local
117 qopt = RTA_DATA(opt);
119 fprintf(f, " tc %u map ", qopt->num_tc);
121 fprintf(f, "%u ", qopt->prio_tc_map[i]);
123 for (i = 0; i < qopt->num_tc; i++)
124 fprintf(f, "(%u:%u) ", qopt->offset[i],
125 qopt->offset[i] + qopt->count[i] - 1);
H A Dq_tbf.c254 struct tc_tbf_qopt *qopt; local
272 qopt = RTA_DATA(tb[TCA_TBF_PARMS]);
273 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt))
275 rate64 = qopt->rate.rate;
280 buffer = tc_calc_xmitsize(rate64, qopt->buffer);
283 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2));
288 fprintf(f, "[%08x] ", qopt->buffer);
289 prate64 = qopt->peakrate.rate;
295 if (qopt
[all...]
H A Dq_gred.c270 struct tc_gred_qopt *qopt; local
296 qopt = RTA_DATA(tb[TCA_GRED_PARMS]);
298 RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) {
314 for (i = 0; i < MAX_DPs; i++, qopt++) {
315 if (qopt->DP >= MAX_DPs) continue;
317 qopt->DP,
318 qopt->prio,
319 sprint_size(qopt->limit, b1),
320 sprint_size(qopt->qth_min, b2),
321 sprint_size(qopt
[all...]
H A Dq_fifo.c62 struct tc_fifo_qopt *qopt; local
67 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
69 qopt = RTA_DATA(opt);
72 fprintf(f, "limit %s", sprint_size(qopt->limit, b1));
74 fprintf(f, "limit %up", qopt->limit);
H A Dq_prio.c100 struct tc_prio_qopt *qopt; local
106 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt,
107 sizeof(*qopt)))
110 fprintf(f, "bands %u priomap ", qopt->bands);
112 fprintf(f, " %d", qopt->priomap[i]);
H A Dq_rr.c95 struct tc_prio_qopt *qopt; local
101 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt,
102 sizeof(*qopt)))
105 fprintf(f, "bands %u priomap ", qopt->bands);
107 fprintf(f, " %d", qopt->priomap[i]);
H A Dq_red.c159 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.c168 const struct tc_red_qopt *qopt; local
178 qopt = RTA_DATA(tb[TCA_CHOKE_PARMS]);
179 if (RTA_PAYLOAD(tb[TCA_CHOKE_PARMS]) < sizeof(*qopt))
186 qopt->limit, qopt->qth_min, qopt->qth_max);
188 if (qopt->flags & TC_RED_ECN)
192 fprintf(f, "ewma %u ", qopt->Wlog);
196 fprintf(f, "Plog %u ", qopt->Plog);
197 fprintf(f, "Scell_log %u", qopt
[all...]
H A Dq_sfq.c206 struct tc_sfq_qopt *qopt; local
215 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
219 qopt = RTA_DATA(opt);
220 fprintf(f, "limit %up ", qopt->limit);
221 fprintf(f, "quantum %s ", sprint_size(qopt->quantum, b1));
228 fprintf(f, "flows %u/%u ", qopt->flows, qopt->divisor);
230 fprintf(f, "divisor %u ", qopt->divisor);
231 if (qopt->perturb_period)
232 fprintf(f, "perturb %dsec ", qopt
[all...]
H A Dq_hfsc.c76 struct tc_hfsc_qopt qopt = {}; local
81 if (qopt.defcls != 0) {
85 if (get_u16(&qopt.defcls, *argv, 16) < 0) {
100 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt));
107 struct tc_hfsc_qopt *qopt; local
111 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
113 qopt = RTA_DATA(opt);
115 if (qopt->defcls != 0)
116 fprintf(f, "default %x ", qopt
[all...]
H A Dq_netem.c539 struct tc_netem_qopt qopt; local
549 len = RTA_PAYLOAD(opt) - sizeof(qopt);
554 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt));
559 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt),
603 fprintf(f, "limit %d", qopt.limit);
605 if (qopt.latency) {
606 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1));
608 if (qopt.jitter) {
609 fprintf(f, " %s", sprint_ticks(qopt
[all...]

Completed in 125 milliseconds