#include <linux/module.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <net/netlink.h>
#include <net/pkt_sched.h>
#include <net/pkt_cls.h>
#include <net/tcx.h>
struct ingress_sched_data { … };
static struct Qdisc *ingress_leaf(struct Qdisc *sch, unsigned long arg)
{ … }
static unsigned long ingress_find(struct Qdisc *sch, u32 classid)
{ … }
static unsigned long ingress_bind_filter(struct Qdisc *sch,
unsigned long parent, u32 classid)
{ … }
static void ingress_unbind_filter(struct Qdisc *sch, unsigned long cl)
{ … }
static void ingress_walk(struct Qdisc *sch, struct qdisc_walker *walker)
{ … }
static struct tcf_block *ingress_tcf_block(struct Qdisc *sch, unsigned long cl,
struct netlink_ext_ack *extack)
{ … }
static void clsact_chain_head_change(struct tcf_proto *tp_head, void *priv)
{
struct mini_Qdisc_pair *miniqp = priv;
mini_qdisc_pair_swap(miniqp, tp_head);
};
static void ingress_ingress_block_set(struct Qdisc *sch, u32 block_index)
{ … }
static u32 ingress_ingress_block_get(struct Qdisc *sch)
{ … }
static int ingress_init(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{ … }
static void ingress_destroy(struct Qdisc *sch)
{ … }
static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb)
{ … }
static const struct Qdisc_class_ops ingress_class_ops = …;
static struct Qdisc_ops ingress_qdisc_ops __read_mostly = …;
MODULE_ALIAS_NET_SCH(…) …;
struct clsact_sched_data { … };
static unsigned long clsact_find(struct Qdisc *sch, u32 classid)
{ … }
static unsigned long clsact_bind_filter(struct Qdisc *sch,
unsigned long parent, u32 classid)
{ … }
static struct tcf_block *clsact_tcf_block(struct Qdisc *sch, unsigned long cl,
struct netlink_ext_ack *extack)
{ … }
static void clsact_ingress_block_set(struct Qdisc *sch, u32 block_index)
{ … }
static void clsact_egress_block_set(struct Qdisc *sch, u32 block_index)
{ … }
static u32 clsact_ingress_block_get(struct Qdisc *sch)
{ … }
static u32 clsact_egress_block_get(struct Qdisc *sch)
{ … }
static int clsact_init(struct Qdisc *sch, struct nlattr *opt,
struct netlink_ext_ack *extack)
{ … }
static void clsact_destroy(struct Qdisc *sch)
{ … }
static const struct Qdisc_class_ops clsact_class_ops = …;
static struct Qdisc_ops clsact_qdisc_ops __read_mostly = …;
MODULE_ALIAS_NET_SCH(…) …;
static int __init ingress_module_init(void)
{ … }
static void __exit ingress_module_exit(void)
{ … }
module_init(…) …;
module_exit(ingress_module_exit);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;