#include <linux/module.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/skbuff.h>
#include <net/netlink.h>
#include <net/pkt_sched.h>
#include <net/pkt_cls.h>
struct prio_sched_data { … };
static struct Qdisc *
prio_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr)
{ … }
static int
prio_enqueue(struct sk_buff *skb, struct Qdisc *sch, struct sk_buff **to_free)
{ … }
static struct sk_buff *prio_peek(struct Qdisc *sch)
{ … }
static struct sk_buff *prio_dequeue(struct Qdisc *sch)
{ … }
static void
prio_reset(struct Qdisc *sch)
{ … }
static int prio_offload(struct Qdisc *sch, struct tc_prio_qopt *qopt)
{ … }
static void
prio_destroy(struct Qdisc *sch)
{ … }
static int prio_tune(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{ … }
static int prio_init(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{ … }
static int prio_dump_offload(struct Qdisc *sch)
{ … }
static int prio_dump(struct Qdisc *sch, struct sk_buff *skb)
{ … }
static int prio_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
struct Qdisc **old, struct netlink_ext_ack *extack)
{ … }
static struct Qdisc *
prio_leaf(struct Qdisc *sch, unsigned long arg)
{ … }
static unsigned long prio_find(struct Qdisc *sch, u32 classid)
{ … }
static unsigned long prio_bind(struct Qdisc *sch, unsigned long parent, u32 classid)
{ … }
static void prio_unbind(struct Qdisc *q, unsigned long cl)
{ … }
static int prio_dump_class(struct Qdisc *sch, unsigned long cl, struct sk_buff *skb,
struct tcmsg *tcm)
{ … }
static int prio_dump_class_stats(struct Qdisc *sch, unsigned long cl,
struct gnet_dump *d)
{ … }
static void prio_walk(struct Qdisc *sch, struct qdisc_walker *arg)
{ … }
static struct tcf_block *prio_tcf_block(struct Qdisc *sch, unsigned long cl,
struct netlink_ext_ack *extack)
{ … }
static const struct Qdisc_class_ops prio_class_ops = …;
static struct Qdisc_ops prio_qdisc_ops __read_mostly = …;
MODULE_ALIAS_NET_SCH(…) …;
static int __init prio_module_init(void)
{ … }
static void __exit prio_module_exit(void)
{ … }
module_init(…) …
module_exit(…)
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;