@@ -337,6 +337,7 @@ static inline void sch_tree_unlock(const struct Qdisc *q)
#define tcf_tree_unlock(tp) sch_tree_unlock((tp)->q)
extern struct Qdisc noop_qdisc;
+extern struct Qdisc noqueue_qdisc;
extern struct Qdisc_ops noop_qdisc_ops;
extern struct Qdisc_ops pfifo_fast_ops;
extern struct Qdisc_ops mq_qdisc_ops;
@@ -425,13 +425,12 @@ static struct Qdisc_ops noqueue_qdisc_ops __read_mostly = {
.owner = THIS_MODULE,
};
-static struct Qdisc noqueue_qdisc;
static struct netdev_queue noqueue_netdev_queue = {
.qdisc = &noqueue_qdisc,
.qdisc_sleeping = &noqueue_qdisc,
};
-static struct Qdisc noqueue_qdisc = {
+struct Qdisc noqueue_qdisc = {
.enqueue = NULL,
.dequeue = noop_dequeue,
.flags = TCQ_F_BUILTIN,
This needs to be referenced from within net/sched/sched_api.c later. Signed-off-by: Phil Sutter <phil@nwl.cc> --- include/net/sch_generic.h | 1 + net/sched/sch_generic.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-)