summaryrefslogtreecommitdiffstats
path: root/src/network/tc/drr.h
blob: c96cc4db0070190156f669b3c6d19c4a6a92507c (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-or-later
 * 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);