1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include <linux/pkt_sched.h>
5 
6 #include "conf-parser.h"
7 #include "qdisc.h"
8 
9 typedef struct EnhancedTransmissionSelection {
10         QDisc meta;
11 
12         uint8_t n_bands;
13         uint8_t n_strict;
14         unsigned n_quanta;
15         uint32_t quanta[TCQ_ETS_MAX_BANDS];
16         unsigned n_prio;
17         uint8_t prio[TC_PRIO_MAX + 1];
18 } EnhancedTransmissionSelection;
19 
20 DEFINE_QDISC_CAST(ETS, EnhancedTransmissionSelection);
21 extern const QDiscVTable ets_vtable;
22 
23 CONFIG_PARSER_PROTOTYPE(config_parse_ets_u8);
24 CONFIG_PARSER_PROTOTYPE(config_parse_ets_quanta);
25 CONFIG_PARSER_PROTOTYPE(config_parse_ets_prio);
26