Lines Matching refs:ets

17         EnhancedTransmissionSelection *ets;  in enhanced_transmission_selection_fill_message()  local
24 assert_se(ets = ETS(qdisc)); in enhanced_transmission_selection_fill_message()
30 r = sd_netlink_message_append_u8(req, TCA_ETS_NBANDS, ets->n_bands); in enhanced_transmission_selection_fill_message()
34 if (ets->n_strict > 0) { in enhanced_transmission_selection_fill_message()
35 r = sd_netlink_message_append_u8(req, TCA_ETS_NSTRICT, ets->n_strict); in enhanced_transmission_selection_fill_message()
40 if (ets->n_quanta > 0) { in enhanced_transmission_selection_fill_message()
45 for (unsigned i = 0; i < ets->n_quanta; i++) { in enhanced_transmission_selection_fill_message()
46 r = sd_netlink_message_append_u32(req, TCA_ETS_QUANTA_BAND, ets->quanta[i]); in enhanced_transmission_selection_fill_message()
56 if (ets->n_prio > 0) { in enhanced_transmission_selection_fill_message()
61 for (unsigned i = 0; i < ets->n_prio; i++) { in enhanced_transmission_selection_fill_message()
62 r = sd_netlink_message_append_u8(req, TCA_ETS_PRIOMAP_BAND, ets->prio[i]); in enhanced_transmission_selection_fill_message()
92 EnhancedTransmissionSelection *ets; in config_parse_ets_u8() local
111 ets = ETS(qdisc); in config_parse_ets_u8()
113 p = &ets->n_bands; in config_parse_ets_u8()
115 p = &ets->n_strict; in config_parse_ets_u8()
159 EnhancedTransmissionSelection *ets; in config_parse_ets_quanta() local
177 ets = ETS(qdisc); in config_parse_ets_quanta()
180 memzero(ets->quanta, sizeof(uint32_t) * TCQ_ETS_MAX_BANDS); in config_parse_ets_quanta()
181 ets->n_quanta = 0; in config_parse_ets_quanta()
215 if (ets->n_quanta >= TCQ_ETS_MAX_BANDS) { in config_parse_ets_quanta()
222 ets->quanta[ets->n_quanta++] = v; in config_parse_ets_quanta()
243 EnhancedTransmissionSelection *ets; in config_parse_ets_prio() local
261 ets = ETS(qdisc); in config_parse_ets_prio()
264 memzero(ets->prio, sizeof(uint8_t) * (TC_PRIO_MAX + 1)); in config_parse_ets_prio()
265 ets->n_prio = 0; in config_parse_ets_prio()
293 if (ets->n_prio > TC_PRIO_MAX) { in config_parse_ets_prio()
300 ets->prio[ets->n_prio++] = v; in config_parse_ets_prio()
309 EnhancedTransmissionSelection *ets; in enhanced_transmission_selection_verify() local
313 ets = ETS(qdisc); in enhanced_transmission_selection_verify()
315 if (ets->n_bands == 0) in enhanced_transmission_selection_verify()
316 ets->n_bands = ets->n_strict + ets->n_quanta; in enhanced_transmission_selection_verify()
318 if (ets->n_bands == 0) in enhanced_transmission_selection_verify()
324 if (ets->n_bands < ets->n_strict + ets->n_quanta) in enhanced_transmission_selection_verify()
330 for (unsigned i = 0; i < ets->n_prio; i++) in enhanced_transmission_selection_verify()
331 if (ets->prio[i] >= ets->n_bands) in enhanced_transmission_selection_verify()