/external/iproute2/tc/ |
q_multiq.c | 65 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);
|
q_sfb.c | 147 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->penalty_burst [all...] |
q_mqprio.c | 110 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);
|
q_tbf.c | 252 struct tc_tbf_qopt *qopt; local 269 qopt = RTA_DATA(tb[TCA_TBF_PARMS]); 270 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt)) 272 rate64 = qopt->rate.rate; 277 buffer = tc_calc_xmitsize(rate64, qopt->buffer); 280 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); 285 fprintf(f, "[%08x] ", qopt->buffer); 286 prate64 = qopt->peakrate.rate; 292 if (qopt->mtu || qopt->peakrate.mpu) [all...] |
q_gred.c | 274 struct tc_gred_qopt *qopt; local 299 qopt = RTA_DATA(tb[TCA_GRED_PARMS]); 301 RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) { 317 for (i=0;i<MAX_DPs;i++, qopt++) { 318 if (qopt->DP >= MAX_DPs) continue; 320 qopt->DP, 321 qopt->prio, 322 sprint_size(qopt->limit, b1), 323 sprint_size(qopt->qth_min, b2), 324 sprint_size(qopt->qth_max, b3)) [all...] |
q_fifo.c | 63 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);
|
q_prio.c | 99 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]);
|
q_rr.c | 94 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]);
|
q_red.c | 161 struct tc_red_qopt *qopt; local 174 qopt = RTA_DATA(tb[TCA_RED_PARMS]); 175 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) 183 sprint_size(qopt->limit, b1), 184 sprint_size(qopt->qth_min, b2), 185 sprint_size(qopt->qth_max, b3)); 186 if (qopt->flags & TC_RED_ECN) 188 if (qopt->flags & TC_RED_HARDDROP) 190 if (qopt->flags & TC_RED_ADAPTATIVE) 193 fprintf(f, "ewma %u ", qopt->Wlog) [all...] |
q_choke.c | 170 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->Scell_log) [all...] |
q_sfq.c | 208 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->perturb_period) [all...] |
q_hfsc.c | 76 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 = RTA_DATA(opt) [all...] |
q_netem.c | 544 struct tc_netem_qopt qopt; local 546 int len = RTA_PAYLOAD(opt) - sizeof(qopt); 557 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); 561 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), 605 fprintf(f, "limit %d", qopt.limit); 607 if (qopt.latency) { 608 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1)); 610 if (qopt.jitter) { 611 fprintf(f, " %s", sprint_ticks(qopt.jitter, b1)) [all...] |