summaryrefslogtreecommitdiffstats
path: root/src/network/tc/drr.h
blob: ff2b658acc97d5ab7d74a786ffe5da81a8fdfad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: LGPL-2.1+
 * Copyright © 2020 VMware, Inc. */
#pragma once

#include "qdisc.h"

typedef struct DeficitRoundRobinScheduler {
        QDisc meta;
} DeficitRoundRobinScheduler;

DEFINE_QDISC_CAST(DRR, DeficitRoundRobinScheduler);
extern const QDiscVTable drr_vtable;

typedef struct DeficitRoundRobinSchedulerClass {
        TClass meta;

        uint32_t quantum;
} DeficitRoundRobinSchedulerClass;

DEFINE_TCLASS_CAST(DRR, DeficitRoundRobinSchedulerClass);
extern const TClassVTable drr_tclass_vtable;

CONFIG_PARSER_PROTOTYPE(config_parse_drr_size);