Lines Matching refs:cbq
78 struct rtnl_cbq *cbq = data; in cbq_msg_parser() local
85 nla_memcpy(&cbq->cbq_lss, tb[TCA_CBQ_LSSOPT], sizeof(cbq->cbq_lss)); in cbq_msg_parser()
86 nla_memcpy(&cbq->cbq_rate, tb[TCA_CBQ_RATE], sizeof(cbq->cbq_rate)); in cbq_msg_parser()
87 nla_memcpy(&cbq->cbq_wrr, tb[TCA_CBQ_WRROPT], sizeof(cbq->cbq_wrr)); in cbq_msg_parser()
88 nla_memcpy(&cbq->cbq_fopt, tb[TCA_CBQ_FOPT], sizeof(cbq->cbq_fopt)); in cbq_msg_parser()
89 nla_memcpy(&cbq->cbq_ovl, tb[TCA_CBQ_OVL_STRATEGY], in cbq_msg_parser()
90 sizeof(cbq->cbq_ovl)); in cbq_msg_parser()
91 nla_memcpy(&cbq->cbq_police, tb[TCA_CBQ_POLICE], in cbq_msg_parser()
92 sizeof(cbq->cbq_police)); in cbq_msg_parser()
100 struct rtnl_cbq *cbq = data; in cbq_dump_line() local
104 if (!cbq) in cbq_dump_line()
107 r = nl_cancel_down_bytes(cbq->cbq_rate.rate, &ru); in cbq_dump_line()
108 rbit = nl_cancel_down_bits(cbq->cbq_rate.rate * 8, &rubit); in cbq_dump_line()
111 r, ru, rbit, rubit, cbq->cbq_wrr.priority); in cbq_dump_line()
117 struct rtnl_cbq *cbq = data; in cbq_dump_details() local
122 if (!cbq) in cbq_dump_details()
125 w = nl_cancel_down_bits(cbq->cbq_wrr.weight * 8, &unit); in cbq_dump_details()
128 cbq->cbq_lss.avpkt, in cbq_dump_details()
129 cbq->cbq_rate.mpu, in cbq_dump_details()
130 1 << cbq->cbq_rate.cell_log, in cbq_dump_details()
131 cbq->cbq_wrr.allot, w, unit); in cbq_dump_details()
133 el = cbq->cbq_lss.ewma_log; in cbq_dump_details()
136 nl_ticks2us(cbq->cbq_lss.minidle >> el), in cbq_dump_details()
137 nl_ticks2us(cbq->cbq_lss.maxidle >> el), in cbq_dump_details()
138 nl_ticks2us(cbq->cbq_lss.offtime >> el), in cbq_dump_details()
139 cbq->cbq_lss.level, in cbq_dump_details()
140 cbq->cbq_lss.ewma_log); in cbq_dump_details()
143 nl_ticks2us(cbq->cbq_ovl.penalty), in cbq_dump_details()
144 nl_ovl_strategy2str(cbq->cbq_ovl.strategy, buf, sizeof(buf))); in cbq_dump_details()
147 rtnl_tc_handle2str(cbq->cbq_fopt.split, buf, sizeof(buf)), in cbq_dump_details()
148 cbq->cbq_fopt.defmap); in cbq_dump_details()
151 nl_police2str(cbq->cbq_police.police, buf, sizeof(buf))); in cbq_dump_details()