1 /* SPDX-License-Identifier: LGPL-2.1-or-later 2 * Copyright © 2019 VMware, Inc. */ 3 #pragma once 4 5 #include "conf-parser.h" 6 #include "qdisc.h" 7 #include "time-util.h" 8 9 typedef struct ControlledDelay { 10 QDisc meta; 11 12 uint32_t packet_limit; 13 usec_t interval_usec; 14 usec_t target_usec; 15 usec_t ce_threshold_usec; 16 int ecn; 17 } ControlledDelay; 18 19 DEFINE_QDISC_CAST(CODEL, ControlledDelay); 20 extern const QDiscVTable codel_vtable; 21 22 CONFIG_PARSER_PROTOTYPE(config_parse_controlled_delay_u32); 23 CONFIG_PARSER_PROTOTYPE(config_parse_controlled_delay_usec); 24 CONFIG_PARSER_PROTOTYPE(config_parse_controlled_delay_bool); 25