Lines Matching refs:fq_codel
48 struct rtnl_fq_codel *fq_codel = data; in fq_codel_msg_parser() local
57 fq_codel->fq_target = nla_get_u32(tb[TCA_FQ_CODEL_TARGET]); in fq_codel_msg_parser()
58 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_TARGET; in fq_codel_msg_parser()
62 fq_codel->fq_interval = nla_get_u32(tb[TCA_FQ_CODEL_INTERVAL]); in fq_codel_msg_parser()
63 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_INTERVAL; in fq_codel_msg_parser()
67 fq_codel->fq_limit = nla_get_u32(tb[TCA_FQ_CODEL_LIMIT]); in fq_codel_msg_parser()
68 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_LIMIT; in fq_codel_msg_parser()
72 fq_codel->fq_quantum = nla_get_u32(tb[TCA_FQ_CODEL_QUANTUM]); in fq_codel_msg_parser()
73 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_QUANTUM; in fq_codel_msg_parser()
77 fq_codel->fq_flows = nla_get_u32(tb[TCA_FQ_CODEL_FLOWS]); in fq_codel_msg_parser()
78 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_FLOWS; in fq_codel_msg_parser()
82 fq_codel->fq_ecn = nla_get_u32(tb[TCA_FQ_CODEL_ECN]); in fq_codel_msg_parser()
83 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_ECN; in fq_codel_msg_parser()
92 struct rtnl_fq_codel *fq_codel = data; in fq_codel_dump_line() local
94 if (!fq_codel) in fq_codel_dump_line()
97 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_LIMIT) in fq_codel_dump_line()
98 nl_dump(p, " limit %u packets", fq_codel->fq_limit); in fq_codel_dump_line()
99 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_TARGET) in fq_codel_dump_line()
100 nl_dump(p, " target %u", fq_codel->fq_target); in fq_codel_dump_line()
101 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_INTERVAL) in fq_codel_dump_line()
102 nl_dump(p, " interval %u", fq_codel->fq_interval); in fq_codel_dump_line()
103 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_ECN) in fq_codel_dump_line()
104 nl_dump(p, " ecn %u", fq_codel->fq_ecn); in fq_codel_dump_line()
105 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_FLOWS) in fq_codel_dump_line()
106 nl_dump(p, " flows %u", fq_codel->fq_flows); in fq_codel_dump_line()
107 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_QUANTUM) in fq_codel_dump_line()
108 nl_dump(p, " quantum %u", fq_codel->fq_quantum); in fq_codel_dump_line()
113 struct rtnl_fq_codel *fq_codel = data; in fq_codel_msg_fill() local
115 if (!fq_codel) in fq_codel_msg_fill()
118 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_LIMIT) in fq_codel_msg_fill()
119 NLA_PUT_U32(msg, TCA_FQ_CODEL_LIMIT, fq_codel->fq_limit); in fq_codel_msg_fill()
120 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_INTERVAL) in fq_codel_msg_fill()
121 NLA_PUT_U32(msg, TCA_FQ_CODEL_INTERVAL, fq_codel->fq_interval); in fq_codel_msg_fill()
122 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_TARGET) in fq_codel_msg_fill()
123 NLA_PUT_U32(msg, TCA_FQ_CODEL_TARGET, fq_codel->fq_target); in fq_codel_msg_fill()
124 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_QUANTUM) in fq_codel_msg_fill()
125 NLA_PUT_U32(msg, TCA_FQ_CODEL_QUANTUM, fq_codel->fq_quantum); in fq_codel_msg_fill()
126 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_FLOWS) in fq_codel_msg_fill()
127 NLA_PUT_U32(msg, TCA_FQ_CODEL_FLOWS, fq_codel->fq_flows); in fq_codel_msg_fill()
128 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_ECN) in fq_codel_msg_fill()
129 NLA_PUT_U32(msg, TCA_FQ_CODEL_ECN, fq_codel->fq_ecn); in fq_codel_msg_fill()
150 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_set_limit() local
152 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_limit()
155 fq_codel->fq_limit = limit; in rtnl_qdisc_fq_codel_set_limit()
156 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_LIMIT; in rtnl_qdisc_fq_codel_set_limit()
168 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_get_limit() local
170 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_get_limit()
173 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_LIMIT) in rtnl_qdisc_fq_codel_get_limit()
174 return fq_codel->fq_limit; in rtnl_qdisc_fq_codel_get_limit()
187 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_set_target() local
189 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_target()
192 fq_codel->fq_target = target; in rtnl_qdisc_fq_codel_set_target()
193 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_TARGET; in rtnl_qdisc_fq_codel_set_target()
205 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_get_target() local
207 if ((fq_codel = rtnl_tc_data(TC_CAST(qdisc))) && in rtnl_qdisc_fq_codel_get_target()
208 fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_TARGET) in rtnl_qdisc_fq_codel_get_target()
209 return fq_codel->fq_target; in rtnl_qdisc_fq_codel_get_target()
222 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_set_interval() local
224 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_interval()
227 fq_codel->fq_interval = interval; in rtnl_qdisc_fq_codel_set_interval()
228 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_INTERVAL; in rtnl_qdisc_fq_codel_set_interval()
240 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_get_interval() local
242 if ((fq_codel = rtnl_tc_data(TC_CAST(qdisc))) && in rtnl_qdisc_fq_codel_get_interval()
243 fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_INTERVAL) in rtnl_qdisc_fq_codel_get_interval()
244 return fq_codel->fq_interval; in rtnl_qdisc_fq_codel_get_interval()
257 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_set_quantum() local
259 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_quantum()
262 fq_codel->fq_quantum = quantum; in rtnl_qdisc_fq_codel_set_quantum()
263 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_QUANTUM; in rtnl_qdisc_fq_codel_set_quantum()
275 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_get_quantum() local
277 if ((fq_codel = rtnl_tc_data(TC_CAST(qdisc))) && in rtnl_qdisc_fq_codel_get_quantum()
278 (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_QUANTUM)) in rtnl_qdisc_fq_codel_get_quantum()
279 return fq_codel->fq_quantum; in rtnl_qdisc_fq_codel_get_quantum()
292 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_set_flows() local
294 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_flows()
297 fq_codel->fq_flows = flows; in rtnl_qdisc_fq_codel_set_flows()
298 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_FLOWS; in rtnl_qdisc_fq_codel_set_flows()
310 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_get_flows() local
312 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_get_flows()
315 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_FLOWS) in rtnl_qdisc_fq_codel_get_flows()
316 return fq_codel->fq_flows; in rtnl_qdisc_fq_codel_get_flows()
328 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_set_ecn() local
330 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_ecn()
333 fq_codel->fq_ecn = ecn; in rtnl_qdisc_fq_codel_set_ecn()
334 fq_codel->fq_mask |= SCH_FQ_CODEL_ATTR_ECN; in rtnl_qdisc_fq_codel_set_ecn()
346 struct rtnl_fq_codel *fq_codel; in rtnl_qdisc_fq_codel_get_ecn() local
348 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_get_ecn()
351 if (fq_codel->fq_mask & SCH_FQ_CODEL_ATTR_ECN) in rtnl_qdisc_fq_codel_get_ecn()
352 return fq_codel->fq_ecn; in rtnl_qdisc_fq_codel_get_ecn()