Lines Matching refs:sfq
44 struct rtnl_sfq *sfq = data; in sfq_msg_parser() local
55 sfq->qs_quantum = opts->quantum; in sfq_msg_parser()
56 sfq->qs_perturb = opts->perturb_period; in sfq_msg_parser()
57 sfq->qs_limit = opts->limit; in sfq_msg_parser()
58 sfq->qs_divisor = opts->divisor; in sfq_msg_parser()
59 sfq->qs_flows = opts->flows; in sfq_msg_parser()
61 sfq->qs_mask = (SCH_SFQ_ATTR_QUANTUM | SCH_SFQ_ATTR_PERTURB | in sfq_msg_parser()
71 struct rtnl_sfq *sfq = data; in sfq_dump_line() local
73 if (sfq) in sfq_dump_line()
74 nl_dump(p, " quantum %u perturb %us", sfq->qs_quantum, in sfq_dump_line()
75 sfq->qs_perturb); in sfq_dump_line()
81 struct rtnl_sfq *sfq = data; in sfq_dump_details() local
83 if (sfq) in sfq_dump_details()
85 sfq->qs_limit, sfq->qs_divisor); in sfq_dump_details()
90 struct rtnl_sfq *sfq = data; in sfq_msg_fill() local
93 if (!sfq) in sfq_msg_fill()
96 opts.quantum = sfq->qs_quantum; in sfq_msg_fill()
97 opts.perturb_period = sfq->qs_perturb; in sfq_msg_fill()
98 opts.limit = sfq->qs_limit; in sfq_msg_fill()
116 struct rtnl_sfq *sfq; in rtnl_sfq_set_quantum() local
118 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_quantum()
121 sfq->qs_quantum = quantum; in rtnl_sfq_set_quantum()
122 sfq->qs_mask |= SCH_SFQ_ATTR_QUANTUM; in rtnl_sfq_set_quantum()
132 struct rtnl_sfq *sfq; in rtnl_sfq_get_quantum() local
134 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_quantum()
137 if (sfq->qs_mask & SCH_SFQ_ATTR_QUANTUM) in rtnl_sfq_get_quantum()
138 return sfq->qs_quantum; in rtnl_sfq_get_quantum()
151 struct rtnl_sfq *sfq; in rtnl_sfq_set_limit() local
153 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_limit()
156 sfq->qs_limit = limit; in rtnl_sfq_set_limit()
157 sfq->qs_mask |= SCH_SFQ_ATTR_LIMIT; in rtnl_sfq_set_limit()
167 struct rtnl_sfq *sfq; in rtnl_sfq_get_limit() local
169 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_limit()
172 if (sfq->qs_mask & SCH_SFQ_ATTR_LIMIT) in rtnl_sfq_get_limit()
173 return sfq->qs_limit; in rtnl_sfq_get_limit()
187 struct rtnl_sfq *sfq; in rtnl_sfq_set_perturb() local
189 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_perturb()
192 sfq->qs_perturb = perturb; in rtnl_sfq_set_perturb()
193 sfq->qs_mask |= SCH_SFQ_ATTR_PERTURB; in rtnl_sfq_set_perturb()
203 struct rtnl_sfq *sfq; in rtnl_sfq_get_perturb() local
205 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_perturb()
208 if (sfq->qs_mask & SCH_SFQ_ATTR_PERTURB) in rtnl_sfq_get_perturb()
209 return sfq->qs_perturb; in rtnl_sfq_get_perturb()
221 struct rtnl_sfq *sfq; in rtnl_sfq_get_divisor() local
223 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_divisor()
226 if (sfq->qs_mask & SCH_SFQ_ATTR_DIVISOR) in rtnl_sfq_get_divisor()
227 return sfq->qs_divisor; in rtnl_sfq_get_divisor()