/external/iproute2/tc/ |
D | q_tbf.c | 252 struct tc_tbf_qopt *qopt; in tbf_print_opt() local 269 qopt = RTA_DATA(tb[TCA_TBF_PARMS]); in tbf_print_opt() 270 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt)) in tbf_print_opt() 272 rate64 = qopt->rate.rate; in tbf_print_opt() 277 buffer = tc_calc_xmitsize(rate64, qopt->buffer); in tbf_print_opt() 280 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt() 285 fprintf(f, "[%08x] ", qopt->buffer); in tbf_print_opt() 286 prate64 = qopt->peakrate.rate; in tbf_print_opt() 292 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt() 293 mtu = tc_calc_xmitsize(prate64, qopt->mtu); in tbf_print_opt() [all …]
|
D | q_gred.c | 274 struct tc_gred_qopt *qopt; in gred_print_opt() local 299 qopt = RTA_DATA(tb[TCA_GRED_PARMS]); in gred_print_opt() 301 RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) { in gred_print_opt() 317 for (i=0;i<MAX_DPs;i++, qopt++) { in gred_print_opt() 318 if (qopt->DP >= MAX_DPs) continue; in gred_print_opt() 320 qopt->DP, in gred_print_opt() 321 qopt->prio, in gred_print_opt() 322 sprint_size(qopt->limit, b1), in gred_print_opt() 323 sprint_size(qopt->qth_min, b2), in gred_print_opt() 324 sprint_size(qopt->qth_max, b3)); in gred_print_opt() [all …]
|
D | q_sfb.c | 147 struct tc_sfb_qopt *qopt; in sfb_print_opt() local 155 qopt = RTA_DATA(tb[TCA_SFB_PARMS]); in sfb_print_opt() 156 if (RTA_PAYLOAD(tb[TCA_SFB_PARMS]) < sizeof(*qopt)) in sfb_print_opt() 163 qopt->limit, qopt->max, qopt->bin_size, in sfb_print_opt() 164 (double)qopt->increment / SFB_MAX_PROB, in sfb_print_opt() 165 (double)qopt->decrement / SFB_MAX_PROB, in sfb_print_opt() 166 qopt->penalty_rate, qopt->penalty_burst, in sfb_print_opt() 167 qopt->rehash_interval, qopt->warmup_time); in sfb_print_opt()
|
D | q_red.c | 161 struct tc_red_qopt *qopt; in red_print_opt() local 174 qopt = RTA_DATA(tb[TCA_RED_PARMS]); in red_print_opt() 175 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) in red_print_opt() 183 sprint_size(qopt->limit, b1), in red_print_opt() 184 sprint_size(qopt->qth_min, b2), in red_print_opt() 185 sprint_size(qopt->qth_max, b3)); in red_print_opt() 186 if (qopt->flags & TC_RED_ECN) in red_print_opt() 188 if (qopt->flags & TC_RED_HARDDROP) in red_print_opt() 190 if (qopt->flags & TC_RED_ADAPTATIVE) in red_print_opt() 193 fprintf(f, "ewma %u ", qopt->Wlog); in red_print_opt() [all …]
|
D | q_mqprio.c | 110 struct tc_mqprio_qopt *qopt; in mqprio_print_opt() local 115 qopt = RTA_DATA(opt); in mqprio_print_opt() 117 fprintf(f, " tc %u map ", qopt->num_tc); in mqprio_print_opt() 119 fprintf(f, "%u ", qopt->prio_tc_map[i]); in mqprio_print_opt() 121 for (i = 0; i < qopt->num_tc; i++) in mqprio_print_opt() 122 fprintf(f, "(%u:%u) ", qopt->offset[i], in mqprio_print_opt() 123 qopt->offset[i] + qopt->count[i] - 1); in mqprio_print_opt()
|
D | q_choke.c | 170 const struct tc_red_qopt *qopt; in choke_print_opt() local 180 qopt = RTA_DATA(tb[TCA_CHOKE_PARMS]); in choke_print_opt() 181 if (RTA_PAYLOAD(tb[TCA_CHOKE_PARMS]) < sizeof(*qopt)) in choke_print_opt() 188 qopt->limit, qopt->qth_min, qopt->qth_max); in choke_print_opt() 190 if (qopt->flags & TC_RED_ECN) in choke_print_opt() 194 fprintf(f, "ewma %u ", qopt->Wlog); in choke_print_opt() 198 fprintf(f, "Plog %u ", qopt->Plog); in choke_print_opt() 199 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_hfsc.c | 76 struct tc_hfsc_qopt qopt; in hfsc_parse_opt() local 78 memset(&qopt, 0, sizeof(qopt)); in hfsc_parse_opt() 83 if (qopt.defcls != 0) { in hfsc_parse_opt() 87 if (get_u16(&qopt.defcls, *argv, 16) < 0) { in hfsc_parse_opt() 102 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt)); in hfsc_parse_opt() 109 struct tc_hfsc_qopt *qopt; in hfsc_print_opt() local 113 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in hfsc_print_opt() 115 qopt = RTA_DATA(opt); in hfsc_print_opt() 117 if (qopt->defcls != 0) in hfsc_print_opt() 118 fprintf(f, "default %x ", qopt->defcls); in hfsc_print_opt()
|
D | q_sfq.c | 208 struct tc_sfq_qopt *qopt; in sfq_print_opt() local 216 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in sfq_print_opt() 220 qopt = RTA_DATA(opt); in sfq_print_opt() 221 fprintf(f, "limit %up ", qopt->limit); in sfq_print_opt() 222 fprintf(f, "quantum %s ", sprint_size(qopt->quantum, b1)); in sfq_print_opt() 229 fprintf(f, "flows %u/%u ", qopt->flows, qopt->divisor); in sfq_print_opt() 231 fprintf(f, "divisor %u ", qopt->divisor); in sfq_print_opt() 232 if (qopt->perturb_period) in sfq_print_opt() 233 fprintf(f, "perturb %dsec ", qopt->perturb_period); in sfq_print_opt()
|
D | q_fifo.c | 63 struct tc_fifo_qopt *qopt; in fifo_print_opt() local 68 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in fifo_print_opt() 70 qopt = RTA_DATA(opt); in fifo_print_opt() 73 fprintf(f, "limit %s", sprint_size(qopt->limit, b1)); in fifo_print_opt() 75 fprintf(f, "limit %up", qopt->limit); in fifo_print_opt()
|
D | q_netem.c | 544 struct tc_netem_qopt qopt; in netem_print_opt() local 546 int len = RTA_PAYLOAD(opt) - sizeof(qopt); in netem_print_opt() 557 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); in netem_print_opt() 561 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), in netem_print_opt() 605 fprintf(f, "limit %d", qopt.limit); in netem_print_opt() 607 if (qopt.latency) { in netem_print_opt() 608 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1)); in netem_print_opt() 610 if (qopt.jitter) { in netem_print_opt() 611 fprintf(f, " %s", sprint_ticks(qopt.jitter, b1)); in netem_print_opt() 617 if (qopt.loss) { in netem_print_opt() [all …]
|
D | q_prio.c | 99 struct tc_prio_qopt *qopt; in prio_print_opt() local 105 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in prio_print_opt() 106 sizeof(*qopt))) in prio_print_opt() 109 fprintf(f, "bands %u priomap ", qopt->bands); in prio_print_opt() 111 fprintf(f, " %d", qopt->priomap[i]); in prio_print_opt()
|
D | q_rr.c | 94 struct tc_prio_qopt *qopt; in rr_print_opt() local 100 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in rr_print_opt() 101 sizeof(*qopt))) in rr_print_opt() 104 fprintf(f, "bands %u priomap ", qopt->bands); in rr_print_opt() 106 fprintf(f, " %d", qopt->priomap[i]); in rr_print_opt()
|