/external/iproute2/tc/ |
D | q_tbf.c | 254 struct tc_tbf_qopt *qopt; in tbf_print_opt() local 272 qopt = RTA_DATA(tb[TCA_TBF_PARMS]); in tbf_print_opt() 273 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt)) in tbf_print_opt() 275 rate64 = qopt->rate.rate; in tbf_print_opt() 280 buffer = tc_calc_xmitsize(rate64, qopt->buffer); in tbf_print_opt() 283 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt() 288 fprintf(f, "[%08x] ", qopt->buffer); in tbf_print_opt() 289 prate64 = qopt->peakrate.rate; in tbf_print_opt() 295 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt() 296 mtu = tc_calc_xmitsize(prate64, qopt->mtu); in tbf_print_opt() [all …]
|
D | q_gred.c | 270 struct tc_gred_qopt *qopt; in gred_print_opt() local 296 qopt = RTA_DATA(tb[TCA_GRED_PARMS]); in gred_print_opt() 298 RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) { in gred_print_opt() 314 for (i = 0; i < MAX_DPs; i++, qopt++) { in gred_print_opt() 315 if (qopt->DP >= MAX_DPs) continue; in gred_print_opt() 317 qopt->DP, in gred_print_opt() 318 qopt->prio, in gred_print_opt() 319 sprint_size(qopt->limit, b1), in gred_print_opt() 320 sprint_size(qopt->qth_min, b2), in gred_print_opt() 321 sprint_size(qopt->qth_max, b3)); in gred_print_opt() [all …]
|
D | q_sfb.c | 146 struct tc_sfb_qopt *qopt; in sfb_print_opt() local 154 qopt = RTA_DATA(tb[TCA_SFB_PARMS]); in sfb_print_opt() 155 if (RTA_PAYLOAD(tb[TCA_SFB_PARMS]) < sizeof(*qopt)) in sfb_print_opt() 161 qopt->limit, qopt->max, qopt->bin_size, in sfb_print_opt() 162 (double)qopt->increment / SFB_MAX_PROB, in sfb_print_opt() 163 (double)qopt->decrement / SFB_MAX_PROB, in sfb_print_opt() 164 qopt->penalty_rate, qopt->penalty_burst, in sfb_print_opt() 165 qopt->rehash_interval, qopt->warmup_time); in sfb_print_opt()
|
D | q_red.c | 159 struct tc_red_qopt *qopt; in red_print_opt() local 173 qopt = RTA_DATA(tb[TCA_RED_PARMS]); in red_print_opt() 174 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) in red_print_opt() 182 sprint_size(qopt->limit, b1), in red_print_opt() 183 sprint_size(qopt->qth_min, b2), in red_print_opt() 184 sprint_size(qopt->qth_max, b3)); in red_print_opt() 185 if (qopt->flags & TC_RED_ECN) in red_print_opt() 187 if (qopt->flags & TC_RED_HARDDROP) in red_print_opt() 189 if (qopt->flags & TC_RED_ADAPTATIVE) in red_print_opt() 192 fprintf(f, "ewma %u ", qopt->Wlog); in red_print_opt() [all …]
|
D | q_mqprio.c | 112 struct tc_mqprio_qopt *qopt; in mqprio_print_opt() local 117 qopt = RTA_DATA(opt); in mqprio_print_opt() 119 fprintf(f, " tc %u map ", qopt->num_tc); in mqprio_print_opt() 121 fprintf(f, "%u ", qopt->prio_tc_map[i]); in mqprio_print_opt() 123 for (i = 0; i < qopt->num_tc; i++) in mqprio_print_opt() 124 fprintf(f, "(%u:%u) ", qopt->offset[i], in mqprio_print_opt() 125 qopt->offset[i] + qopt->count[i] - 1); in mqprio_print_opt()
|
D | q_choke.c | 168 const struct tc_red_qopt *qopt; in choke_print_opt() local 178 qopt = RTA_DATA(tb[TCA_CHOKE_PARMS]); in choke_print_opt() 179 if (RTA_PAYLOAD(tb[TCA_CHOKE_PARMS]) < sizeof(*qopt)) in choke_print_opt() 186 qopt->limit, qopt->qth_min, qopt->qth_max); in choke_print_opt() 188 if (qopt->flags & TC_RED_ECN) in choke_print_opt() 192 fprintf(f, "ewma %u ", qopt->Wlog); in choke_print_opt() 196 fprintf(f, "Plog %u ", qopt->Plog); in choke_print_opt() 197 fprintf(f, "Scell_log %u", qopt->Scell_log); in choke_print_opt()
|
D | q_multiq.c | 65 struct tc_multiq_qopt *qopt; in multiq_print_opt() local 69 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in multiq_print_opt() 72 qopt = RTA_DATA(opt); in multiq_print_opt() 74 fprintf(f, "bands %u/%u ", qopt->bands, qopt->max_bands); in multiq_print_opt()
|
D | q_sfq.c | 206 struct tc_sfq_qopt *qopt; in sfq_print_opt() local 215 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in sfq_print_opt() 219 qopt = RTA_DATA(opt); in sfq_print_opt() 220 fprintf(f, "limit %up ", qopt->limit); in sfq_print_opt() 221 fprintf(f, "quantum %s ", sprint_size(qopt->quantum, b1)); in sfq_print_opt() 228 fprintf(f, "flows %u/%u ", qopt->flows, qopt->divisor); in sfq_print_opt() 230 fprintf(f, "divisor %u ", qopt->divisor); in sfq_print_opt() 231 if (qopt->perturb_period) in sfq_print_opt() 232 fprintf(f, "perturb %dsec ", qopt->perturb_period); in sfq_print_opt()
|
D | q_fifo.c | 62 struct tc_fifo_qopt *qopt; in fifo_print_opt() local 67 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in fifo_print_opt() 69 qopt = RTA_DATA(opt); in fifo_print_opt() 72 fprintf(f, "limit %s", sprint_size(qopt->limit, b1)); in fifo_print_opt() 74 fprintf(f, "limit %up", qopt->limit); in fifo_print_opt()
|
D | q_hfsc.c | 76 struct tc_hfsc_qopt qopt = {}; in hfsc_parse_opt() local 81 if (qopt.defcls != 0) { in hfsc_parse_opt() 85 if (get_u16(&qopt.defcls, *argv, 16) < 0) { in hfsc_parse_opt() 100 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt)); in hfsc_parse_opt() 107 struct tc_hfsc_qopt *qopt; in hfsc_print_opt() local 111 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in hfsc_print_opt() 113 qopt = RTA_DATA(opt); in hfsc_print_opt() 115 if (qopt->defcls != 0) in hfsc_print_opt() 116 fprintf(f, "default %x ", qopt->defcls); in hfsc_print_opt()
|
D | q_netem.c | 539 struct tc_netem_qopt qopt; in netem_print_opt() local 549 len = RTA_PAYLOAD(opt) - sizeof(qopt); in netem_print_opt() 554 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); in netem_print_opt() 559 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), in netem_print_opt() 603 fprintf(f, "limit %d", qopt.limit); in netem_print_opt() 605 if (qopt.latency) { in netem_print_opt() 606 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1)); in netem_print_opt() 608 if (qopt.jitter) { in netem_print_opt() 609 fprintf(f, " %s", sprint_ticks(qopt.jitter, b1)); in netem_print_opt() 615 if (qopt.loss) { in netem_print_opt() [all …]
|
D | q_rr.c | 95 struct tc_prio_qopt *qopt; in rr_print_opt() local 101 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in rr_print_opt() 102 sizeof(*qopt))) in rr_print_opt() 105 fprintf(f, "bands %u priomap ", qopt->bands); in rr_print_opt() 107 fprintf(f, " %d", qopt->priomap[i]); in rr_print_opt()
|
D | q_prio.c | 100 struct tc_prio_qopt *qopt; in prio_print_opt() local 106 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in prio_print_opt() 107 sizeof(*qopt))) in prio_print_opt() 110 fprintf(f, "bands %u priomap ", qopt->bands); in prio_print_opt() 112 fprintf(f, " %d", qopt->priomap[i]); in prio_print_opt()
|