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 QuickFairQueueing { 9 QDisc meta; 10 } QuickFairQueueing; 11 12 DEFINE_QDISC_CAST(QFQ, QuickFairQueueing); 13 extern const QDiscVTable qfq_vtable; 14 15 typedef struct QuickFairQueueingClass { 16 TClass meta; 17 18 uint32_t weight; 19 uint32_t max_packet; 20 } QuickFairQueueingClass; 21 22 DEFINE_TCLASS_CAST(QFQ, QuickFairQueueingClass); 23 extern const TClassVTable qfq_tclass_vtable; 24 25 CONFIG_PARSER_PROTOTYPE(config_parse_quick_fair_queueing_weight); 26 CONFIG_PARSER_PROTOTYPE(config_parse_quick_fair_queueing_max_packet); 27