imx6: update 3.10 patches
[openwrt.git] / target / linux / generic / patches-3.3 / 046-fq_codel-qdisc-backlog.patch
index 5fc75a0..f9bcbbd 100644 (file)
@@ -1,4 +1,9 @@
+From 7bd90773f89001ea4960ed47676b550137f3facb Mon Sep 17 00:00:00 2001
 From: Eric Dumazet <edumazet@google.com>
+Date: Wed, 16 May 2012 04:39:09 +0000
+Subject: [PATCH] fq_codel: should use qdisc backlog as threshold
+
+commit 865ec5523dadbedefbc5710a68969f686a28d928 upstream.
 
 codel_should_drop() logic allows a packet being not dropped if queue
 size is under max packet size.
@@ -14,17 +19,16 @@ Signed-off-by: Eric Dumazet <edumazet@google.com>
 Cc: Dave Taht <dave.taht@bufferbloat.net>
 Cc: Kathleen Nichols <nichols@pollere.com>
 Cc: Van Jacobson <van@pollere.net>
+Signed-off-by: David S. Miller <davem@davemloft.net>
 ---
  include/net/codel.h      |   15 +++++++--------
  net/sched/sch_codel.c    |    4 ++--
  net/sched/sch_fq_codel.c |    5 +++--
  3 files changed, 12 insertions(+), 12 deletions(-)
 
-diff --git a/include/net/codel.h b/include/net/codel.h
-index 7546517..550debf 100644
 --- a/include/net/codel.h
 +++ b/include/net/codel.h
-@@ -205,7 +205,7 @@ static codel_time_t codel_control_law(codel_time_t t,
+@@ -205,7 +205,7 @@ static codel_time_t codel_control_law(co
  
  
  static bool codel_should_drop(const struct sk_buff *skb,
@@ -33,7 +37,7 @@ index 7546517..550debf 100644
                              struct codel_vars *vars,
                              struct codel_params *params,
                              struct codel_stats *stats,
-@@ -219,13 +219,13 @@ static bool codel_should_drop(const struct sk_buff *skb,
+@@ -219,13 +219,13 @@ static bool codel_should_drop(const stru
        }
  
        vars->ldelay = now - codel_get_enqueue_time(skb);
@@ -49,7 +53,7 @@ index 7546517..550debf 100644
                /* went below - stay below for at least interval */
                vars->first_above_time = 0;
                return false;
-@@ -249,8 +249,7 @@ static struct sk_buff *codel_dequeue(struct Qdisc *sch,
+@@ -249,8 +249,7 @@ static struct sk_buff *codel_dequeue(str
                                     struct codel_params *params,
                                     struct codel_vars *vars,
                                     struct codel_stats *stats,
@@ -59,7 +63,7 @@ index 7546517..550debf 100644
  {
        struct sk_buff *skb = dequeue_func(vars, sch);
        codel_time_t now;
-@@ -261,7 +260,7 @@ static struct sk_buff *codel_dequeue(struct Qdisc *sch,
+@@ -261,7 +260,7 @@ static struct sk_buff *codel_dequeue(str
                return skb;
        }
        now = codel_get_time();
@@ -68,7 +72,7 @@ index 7546517..550debf 100644
        if (vars->dropping) {
                if (!drop) {
                        /* sojourn time below target - leave dropping state */
-@@ -292,7 +291,7 @@ static struct sk_buff *codel_dequeue(struct Qdisc *sch,
+@@ -292,7 +291,7 @@ static struct sk_buff *codel_dequeue(str
                                qdisc_drop(skb, sch);
                                stats->drop_count++;
                                skb = dequeue_func(vars, sch);
@@ -77,7 +81,7 @@ index 7546517..550debf 100644
                                                       vars, params, stats, now)) {
                                        /* leave dropping state */
                                        vars->dropping = false;
-@@ -313,7 +312,7 @@ static struct sk_buff *codel_dequeue(struct Qdisc *sch,
+@@ -313,7 +312,7 @@ static struct sk_buff *codel_dequeue(str
                        stats->drop_count++;
  
                        skb = dequeue_func(vars, sch);
@@ -86,11 +90,9 @@ index 7546517..550debf 100644
                                                 stats, now);
                }
                vars->dropping = true;
-diff --git a/net/sched/sch_codel.c b/net/sched/sch_codel.c
-index 213ef60..2f9ab17 100644
 --- a/net/sched/sch_codel.c
 +++ b/net/sched/sch_codel.c
-@@ -77,8 +77,8 @@ static struct sk_buff *codel_qdisc_dequeue(struct Qdisc *sch)
+@@ -77,8 +77,8 @@ static struct sk_buff *codel_qdisc_deque
        struct codel_sched_data *q = qdisc_priv(sch);
        struct sk_buff *skb;
  
@@ -101,11 +103,9 @@ index 213ef60..2f9ab17 100644
        /* We cant call qdisc_tree_decrease_qlen() if our qlen is 0,
         * or HTB crashes. Defer it for next round.
         */
-diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c
-index 337ff20..9fc1c62 100644
 --- a/net/sched/sch_fq_codel.c
 +++ b/net/sched/sch_fq_codel.c
-@@ -217,13 +217,14 @@ static int fq_codel_enqueue(struct sk_buff *skb, struct Qdisc *sch)
+@@ -217,13 +217,14 @@ static int fq_codel_enqueue(struct sk_bu
   */
  static struct sk_buff *dequeue(struct codel_vars *vars, struct Qdisc *sch)
  {
@@ -130,4 +130,3 @@ index 337ff20..9fc1c62 100644
  
        flow->dropped += q->cstats.drop_count - prev_drop_count;
        flow->dropped += q->cstats.ecn_mark - prev_ecn_mark;
-