Lines Matching refs:cbq
93 struct rtnl_cbq *cbq; in cbq_msg_parser() local
100 cbq = cbq_alloc(tca); in cbq_msg_parser()
101 if (!cbq) in cbq_msg_parser()
104 nla_memcpy(&cbq->cbq_lss, tb[TCA_CBQ_LSSOPT], sizeof(cbq->cbq_lss)); in cbq_msg_parser()
105 nla_memcpy(&cbq->cbq_rate, tb[TCA_CBQ_RATE], sizeof(cbq->cbq_rate)); in cbq_msg_parser()
106 nla_memcpy(&cbq->cbq_wrr, tb[TCA_CBQ_WRROPT], sizeof(cbq->cbq_wrr)); in cbq_msg_parser()
107 nla_memcpy(&cbq->cbq_fopt, tb[TCA_CBQ_FOPT], sizeof(cbq->cbq_fopt)); in cbq_msg_parser()
108 nla_memcpy(&cbq->cbq_ovl, tb[TCA_CBQ_OVL_STRATEGY], in cbq_msg_parser()
109 sizeof(cbq->cbq_ovl)); in cbq_msg_parser()
110 nla_memcpy(&cbq->cbq_police, tb[TCA_CBQ_POLICE], in cbq_msg_parser()
111 sizeof(cbq->cbq_police)); in cbq_msg_parser()
158 struct rtnl_cbq *cbq; in cbq_dump_line() local
162 cbq = cbq_qdisc(tca); in cbq_dump_line()
163 if (!cbq) in cbq_dump_line()
166 r = nl_cancel_down_bytes(cbq->cbq_rate.rate, &ru); in cbq_dump_line()
167 rbit = nl_cancel_down_bits(cbq->cbq_rate.rate * 8, &rubit); in cbq_dump_line()
170 r, ru, rbit, rubit, cbq->cbq_wrr.priority); in cbq_dump_line()
187 struct rtnl_cbq *cbq; in cbq_dump_details() local
192 cbq = cbq_qdisc(tca); in cbq_dump_details()
193 if (!cbq) in cbq_dump_details()
196 w = nl_cancel_down_bits(cbq->cbq_wrr.weight * 8, &unit); in cbq_dump_details()
199 cbq->cbq_lss.avpkt, in cbq_dump_details()
200 cbq->cbq_rate.mpu, in cbq_dump_details()
201 1 << cbq->cbq_rate.cell_log, in cbq_dump_details()
202 cbq->cbq_wrr.allot, w, unit); in cbq_dump_details()
204 el = cbq->cbq_lss.ewma_log; in cbq_dump_details()
207 nl_ticks2us(cbq->cbq_lss.minidle >> el), in cbq_dump_details()
208 nl_ticks2us(cbq->cbq_lss.maxidle >> el), in cbq_dump_details()
209 nl_ticks2us(cbq->cbq_lss.offtime >> el), in cbq_dump_details()
210 cbq->cbq_lss.level, in cbq_dump_details()
211 cbq->cbq_lss.ewma_log); in cbq_dump_details()
214 nl_ticks2us(cbq->cbq_ovl.penalty), in cbq_dump_details()
215 nl_ovl_strategy2str(cbq->cbq_ovl.strategy, buf, sizeof(buf))); in cbq_dump_details()
218 rtnl_tc_handle2str(cbq->cbq_fopt.split, buf, sizeof(buf)), in cbq_dump_details()
219 cbq->cbq_fopt.defmap); in cbq_dump_details()
222 nl_police2str(cbq->cbq_police.police, buf, sizeof(buf))); in cbq_dump_details()