kernel: update kernel 4.4 to version 4.4.79
[openwrt/staging/lynxis.git] / target / linux / generic / patches-4.4 / 662-use_fq_codel_by_default.patch
index 8952ab4e206b477f6392d17cf249f90de60232f4..9d1962caa93f5543188809dff589750dce9d81f0 100644 (file)
 +              qdisc = qdisc_create_dflt(dev_queue, &fq_codel_qdisc_ops,
                                          TC_H_MAKE(TC_H_MAJ(sch->handle),
                                                    TC_H_MIN(ntx + 1)));
-               if (qdisc == NULL)
+               if (!qdisc)
 --- a/net/sched/sch_mqprio.c
 +++ b/net/sched/sch_mqprio.c
-@@ -124,7 +124,7 @@ static int mqprio_init(struct Qdisc *sch
+@@ -122,7 +122,7 @@ static int mqprio_init(struct Qdisc *sch
  
        for (i = 0; i < dev->num_tx_queues; i++) {
                dev_queue = netdev_get_tx_queue(dev, i);
 +              qdisc = qdisc_create_dflt(dev_queue, &fq_codel_qdisc_ops,
                                          TC_H_MAKE(TC_H_MAJ(sch->handle),
                                                    TC_H_MIN(i + 1)));
-               if (qdisc == NULL) {
+               if (!qdisc)
 --- a/net/sched/sch_api.c
 +++ b/net/sched/sch_api.c
-@@ -1948,7 +1948,7 @@ static int __init pktsched_init(void)
+@@ -1951,7 +1951,7 @@ static int __init pktsched_init(void)
                return err;
        }