Lines Matching refs:fq

15         FairQueueing *fq;  in fair_queueing_init()  local
19 fq = FQ(qdisc); in fair_queueing_init()
21 fq->pacing = -1; in fair_queueing_init()
22 fq->ce_threshold_usec = USEC_INFINITY; in fair_queueing_init()
28 FairQueueing *fq; in fair_queueing_fill_message() local
35 assert_se(fq = FQ(qdisc)); in fair_queueing_fill_message()
41 if (fq->packet_limit > 0) { in fair_queueing_fill_message()
42 r = sd_netlink_message_append_u32(req, TCA_FQ_PLIMIT, fq->packet_limit); in fair_queueing_fill_message()
47 if (fq->flow_limit > 0) { in fair_queueing_fill_message()
48 r = sd_netlink_message_append_u32(req, TCA_FQ_FLOW_PLIMIT, fq->flow_limit); in fair_queueing_fill_message()
53 if (fq->quantum > 0) { in fair_queueing_fill_message()
54 r = sd_netlink_message_append_u32(req, TCA_FQ_QUANTUM, fq->quantum); in fair_queueing_fill_message()
59 if (fq->initial_quantum > 0) { in fair_queueing_fill_message()
60 r = sd_netlink_message_append_u32(req, TCA_FQ_INITIAL_QUANTUM, fq->initial_quantum); in fair_queueing_fill_message()
65 if (fq->pacing >= 0) { in fair_queueing_fill_message()
66 r = sd_netlink_message_append_u32(req, TCA_FQ_RATE_ENABLE, fq->pacing); in fair_queueing_fill_message()
71 if (fq->max_rate > 0) { in fair_queueing_fill_message()
72 r = sd_netlink_message_append_u32(req, TCA_FQ_FLOW_MAX_RATE, fq->max_rate); in fair_queueing_fill_message()
77 if (fq->buckets > 0) { in fair_queueing_fill_message()
80 l = log2u(fq->buckets); in fair_queueing_fill_message()
86 if (fq->orphan_mask > 0) { in fair_queueing_fill_message()
87 r = sd_netlink_message_append_u32(req, TCA_FQ_ORPHAN_MASK, fq->orphan_mask); in fair_queueing_fill_message()
92 if (fq->ce_threshold_usec != USEC_INFINITY) { in fair_queueing_fill_message()
93 r = sd_netlink_message_append_u32(req, TCA_FQ_CE_THRESHOLD, fq->ce_threshold_usec); in fair_queueing_fill_message()
118 FairQueueing *fq; in config_parse_fair_queueing_u32() local
137 fq = FQ(qdisc); in config_parse_fair_queueing_u32()
140 p = &fq->packet_limit; in config_parse_fair_queueing_u32()
142 p = &fq->flow_limit; in config_parse_fair_queueing_u32()
144 p = &fq->buckets; in config_parse_fair_queueing_u32()
146 p = &fq->orphan_mask; in config_parse_fair_queueing_u32()
183 FairQueueing *fq; in config_parse_fair_queueing_size() local
203 fq = FQ(qdisc); in config_parse_fair_queueing_size()
206 p = &fq->quantum; in config_parse_fair_queueing_size()
208 p = &fq->initial_quantum; in config_parse_fair_queueing_size()
252 FairQueueing *fq; in config_parse_fair_queueing_bool() local
270 fq = FQ(qdisc); in config_parse_fair_queueing_bool()
273 fq->pacing = -1; in config_parse_fair_queueing_bool()
287 fq->pacing = r; in config_parse_fair_queueing_bool()
306 FairQueueing *fq; in config_parse_fair_queueing_usec() local
325 fq = FQ(qdisc); in config_parse_fair_queueing_usec()
328 fq->ce_threshold_usec = USEC_INFINITY; in config_parse_fair_queueing_usec()
348 fq->ce_threshold_usec = sec; in config_parse_fair_queueing_usec()
367 FairQueueing *fq; in config_parse_fair_queueing_max_rate() local
386 fq = FQ(qdisc); in config_parse_fair_queueing_max_rate()
389 fq->max_rate = 0; in config_parse_fair_queueing_max_rate()
409 fq->max_rate = sz / 8; in config_parse_fair_queueing_max_rate()