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 FirstInFirstOut { 9 QDisc meta; 10 11 uint32_t limit; 12 } FirstInFirstOut; 13 14 DEFINE_QDISC_CAST(PFIFO, FirstInFirstOut); 15 DEFINE_QDISC_CAST(BFIFO, FirstInFirstOut); 16 DEFINE_QDISC_CAST(PFIFO_HEAD_DROP, FirstInFirstOut); 17 DEFINE_QDISC_CAST(PFIFO_FAST, FirstInFirstOut); 18 19 extern const QDiscVTable pfifo_vtable; 20 extern const QDiscVTable bfifo_vtable; 21 extern const QDiscVTable pfifo_head_drop_vtable; 22 extern const QDiscVTable pfifo_fast_vtable; 23 24 CONFIG_PARSER_PROTOTYPE(config_parse_pfifo_size); 25 CONFIG_PARSER_PROTOTYPE(config_parse_bfifo_size); 26