From d0ec348ded6f715b43b396b06ccb10599b37969d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 10 Oct 2012 11:54:31 +0000 Subject: [PATCH] kernel: fq_codel: dont reinit flow state Keep fq_codel flow state around after queue empty. SVN-Revision: 33687 --- .../061-fq_codel-dont-reinit-flow-state.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 target/linux/generic/patches-3.3/061-fq_codel-dont-reinit-flow-state.patch diff --git a/target/linux/generic/patches-3.3/061-fq_codel-dont-reinit-flow-state.patch b/target/linux/generic/patches-3.3/061-fq_codel-dont-reinit-flow-state.patch new file mode 100644 index 0000000000..2e6b219446 --- /dev/null +++ b/target/linux/generic/patches-3.3/061-fq_codel-dont-reinit-flow-state.patch @@ -0,0 +1,41 @@ +From b379135c40163ae79ba7a54e6928b53983e74ee8 Mon Sep 17 00:00:00 2001 +From: Eric Dumazet +Date: Sat, 1 Sep 2012 03:19:57 +0000 +Subject: [PATCH 307/558] fq_codel: dont reinit flow state + +When fq_codel builds a new flow, it should not reset codel state. + +Codel algo needs to get previous values (lastcount, drop_next) to get +proper behavior. + +Signed-off-by: Dave Taht +Signed-off-by: Eric Dumazet +Acked-by: Dave Taht +Signed-off-by: David S. Miller +--- + net/sched/sch_fq_codel.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c +index 9fc1c62..4e606fc 100644 +--- a/net/sched/sch_fq_codel.c ++++ b/net/sched/sch_fq_codel.c +@@ -191,7 +191,6 @@ static int fq_codel_enqueue(struct sk_buff *skb, struct Qdisc *sch) + + if (list_empty(&flow->flowchain)) { + list_add_tail(&flow->flowchain, &q->new_flows); +- codel_vars_init(&flow->cvars); + q->new_flow_count++; + flow->deficit = q->quantum; + flow->dropped = 0; +@@ -418,6 +417,7 @@ static int fq_codel_init(struct Qdisc *sch, struct nlattr *opt) + struct fq_codel_flow *flow = q->flows + i; + + INIT_LIST_HEAD(&flow->flowchain); ++ codel_vars_init(&flow->cvars); + } + } + if (sch->limit >= 1) +-- +1.7.9.5 + -- 2.25.1