1 /* SPDX-License-Identifier: LGPL-2.1-or-later 2 * Copyright © 2020 VMware, Inc. */ 3 #pragma once 4 5 #include "conf-parser.h" 6 #include "qdisc.h" 7 8 typedef struct GenericRandomEarlyDetection { 9 QDisc meta; 10 11 uint32_t virtual_queues; 12 uint32_t default_virtual_queue; 13 int grio; 14 } GenericRandomEarlyDetection; 15 16 DEFINE_QDISC_CAST(GRED, GenericRandomEarlyDetection); 17 extern const QDiscVTable gred_vtable; 18 19 CONFIG_PARSER_PROTOTYPE(config_parse_generic_random_early_detection_u32); 20 CONFIG_PARSER_PROTOTYPE(config_parse_generic_random_early_detection_bool); 21