1 --- a/net/sched/Kconfig
2 +++ b/net/sched/Kconfig
5 bool "QoS and/or fair queueing"
7 + select NET_SCH_FQ_CODEL
9 When the kernel has several packets to send out over a network
10 device, it has to decide which ones to send first, which ones to
11 --- a/net/sched/sch_fq_codel.c
12 +++ b/net/sched/sch_fq_codel.c
13 @@ -594,7 +594,7 @@ static const struct Qdisc_class_ops fq_c
14 .walk = fq_codel_walk,
17 -static struct Qdisc_ops fq_codel_qdisc_ops __read_mostly = {
18 +struct Qdisc_ops fq_codel_qdisc_ops __read_mostly = {
19 .cl_ops = &fq_codel_class_ops,
21 .priv_size = sizeof(struct fq_codel_sched_data),
22 @@ -610,6 +610,7 @@ static struct Qdisc_ops fq_codel_qdisc_o
23 .dump_stats = fq_codel_dump_stats,
26 +EXPORT_SYMBOL(fq_codel_qdisc_ops);
28 static int __init fq_codel_module_init(void)
30 --- a/include/net/sch_generic.h
31 +++ b/include/net/sch_generic.h
32 @@ -315,6 +315,7 @@ extern struct Qdisc noop_qdisc;
33 extern struct Qdisc_ops noop_qdisc_ops;
34 extern struct Qdisc_ops pfifo_fast_ops;
35 extern struct Qdisc_ops mq_qdisc_ops;
36 +extern struct Qdisc_ops fq_codel_qdisc_ops;
38 struct Qdisc_class_common {
40 --- a/net/sched/sch_generic.c
41 +++ b/net/sched/sch_generic.c
42 @@ -680,7 +680,7 @@ static void attach_one_default_qdisc(str
44 if (dev->tx_queue_len) {
45 qdisc = qdisc_create_dflt(dev_queue,
46 - &pfifo_fast_ops, TC_H_ROOT);
47 + &fq_codel_qdisc_ops, TC_H_ROOT);
49 netdev_info(dev, "activation failed\n");
51 --- a/net/sched/sch_mq.c
52 +++ b/net/sched/sch_mq.c
53 @@ -57,7 +57,7 @@ static int mq_init(struct Qdisc *sch, st
55 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) {
56 dev_queue = netdev_get_tx_queue(dev, ntx);
57 - qdisc = qdisc_create_dflt(dev_queue, &pfifo_fast_ops,
58 + qdisc = qdisc_create_dflt(dev_queue, &fq_codel_qdisc_ops,
59 TC_H_MAKE(TC_H_MAJ(sch->handle),
62 --- a/net/sched/sch_mqprio.c
63 +++ b/net/sched/sch_mqprio.c
64 @@ -124,7 +124,7 @@ static int mqprio_init(struct Qdisc *sch
66 for (i = 0; i < dev->num_tx_queues; i++) {
67 dev_queue = netdev_get_tx_queue(dev, i);
68 - qdisc = qdisc_create_dflt(dev_queue, &pfifo_fast_ops,
69 + qdisc = qdisc_create_dflt(dev_queue, &fq_codel_qdisc_ops,
70 TC_H_MAKE(TC_H_MAJ(sch->handle),