linux/net/sched/sch_codel.c

// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
 * Codel - The Controlled-Delay Active Queue Management algorithm
 *
 *  Copyright (C) 2011-2012 Kathleen Nichols <[email protected]>
 *  Copyright (C) 2011-2012 Van Jacobson <[email protected]>
 *
 *  Implemented on linux by :
 *  Copyright (C) 2012 Michael D. Taht <[email protected]>
 *  Copyright (C) 2012,2015 Eric Dumazet <[email protected]>
 */

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/skbuff.h>
#include <linux/prefetch.h>
#include <net/pkt_sched.h>
#include <net/codel.h>
#include <net/codel_impl.h>
#include <net/codel_qdisc.h>


#define DEFAULT_CODEL_LIMIT

struct codel_sched_data {};

/* This is the specific function called from codel_dequeue()
 * to dequeue a packet from queue. Note: backlog is handled in
 * codel, we dont need to reduce it here.
 */
static struct sk_buff *dequeue_func(struct codel_vars *vars, void *ctx)
{}

static void drop_func(struct sk_buff *skb, void *ctx)
{}

static struct sk_buff *codel_qdisc_dequeue(struct Qdisc *sch)
{}

static int codel_qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch,
			       struct sk_buff **to_free)
{}

static const struct nla_policy codel_policy[TCA_CODEL_MAX + 1] =;

static int codel_change(struct Qdisc *sch, struct nlattr *opt,
			struct netlink_ext_ack *extack)
{}

static int codel_init(struct Qdisc *sch, struct nlattr *opt,
		      struct netlink_ext_ack *extack)
{}

static int codel_dump(struct Qdisc *sch, struct sk_buff *skb)
{}

static int codel_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
{}

static void codel_reset(struct Qdisc *sch)
{}

static struct Qdisc_ops codel_qdisc_ops __read_mostly =;
MODULE_ALIAS_NET_SCH();

static int __init codel_module_init(void)
{}

static void __exit codel_module_exit(void)
{}

module_init()
module_exit()

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_LICENSE();