| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
* Copyright © 2020 VMware, Inc. */ |
| 3 |
#pragma once |
| 4 |
|
| 5 |
#include "shared-forward.h" |
| 6 |
#include "qdisc.h" |
| 7 |
#include "tclass.h" |
| 8 |
|
| 9 |
typedef struct QuickFairQueueing { |
| 10 |
QDisc meta; |
| 11 |
} QuickFairQueueing; |
| 12 |
|
| 13 |
DEFINE_QDISC_CAST(QFQ, QuickFairQueueing); |
| 14 |
extern const QDiscVTable qfq_vtable; |
| 15 |
|
| 16 |
typedef struct QuickFairQueueingClass { |
| 17 |
TClass meta; |
| 18 |
|
| 19 |
uint32_t weight; |
| 20 |
uint32_t max_packet; |
| 21 |
} QuickFairQueueingClass; |
| 22 |
|
| 23 |
DEFINE_TCLASS_CAST(QFQ, QuickFairQueueingClass); |
| 24 |
extern const TClassVTable qfq_tclass_vtable; |
| 25 |
|
| 26 |
CONFIG_PARSER_PROTOTYPE(config_parse_qfq_weight); |
| 27 |
CONFIG_PARSER_PROTOTYPE(config_parse_qfq_max_packet); |