aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.4/660-fq_codel_defaults.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-05-16 17:45:08 +0200
committerFelix Fietkau <nbd@nbd.name>2016-05-16 19:54:50 +0200
commit17de501daabda6f5a1cb9c539bc3c3f885aeca10 (patch)
tree0c8f9cc2995733acd65a4ca3f675c257d2235f6f /target/linux/generic/patches-4.4/660-fq_codel_defaults.patch
parent7bd10f9a2af8f498b003879b61c46750968a6c2c (diff)
downloadupstream-17de501daabda6f5a1cb9c539bc3c3f885aeca10.tar.gz
upstream-17de501daabda6f5a1cb9c539bc3c3f885aeca10.tar.bz2
upstream-17de501daabda6f5a1cb9c539bc3c3f885aeca10.zip
kernel: backport patches for fq_codel queue memory limit support
Use it to replace the reduction in max packets/flows Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/patches-4.4/660-fq_codel_defaults.patch')
-rw-r--r--target/linux/generic/patches-4.4/660-fq_codel_defaults.patch12
1 files changed, 5 insertions, 7 deletions
diff --git a/target/linux/generic/patches-4.4/660-fq_codel_defaults.patch b/target/linux/generic/patches-4.4/660-fq_codel_defaults.patch
index bbf281009d..048476ba48 100644
--- a/target/linux/generic/patches-4.4/660-fq_codel_defaults.patch
+++ b/target/linux/generic/patches-4.4/660-fq_codel_defaults.patch
@@ -1,13 +1,11 @@
--- a/net/sched/sch_fq_codel.c
+++ b/net/sched/sch_fq_codel.c
-@@ -440,8 +440,8 @@ static int fq_codel_init(struct Qdisc *s
- struct fq_codel_sched_data *q = qdisc_priv(sch);
- int i;
+@@ -459,7 +459,7 @@ static int fq_codel_init(struct Qdisc *s
-- sch->limit = 10*1024;
-- q->flows_cnt = 1024;
-+ sch->limit = 1024;
-+ q->flows_cnt = 128;
+ sch->limit = 10*1024;
+ q->flows_cnt = 1024;
+- q->memory_limit = 32 << 20; /* 32 MBytes */
++ q->memory_limit = 4 << 20; /* 4 MBytes */
q->drop_batch_size = 64;
q->quantum = psched_mtu(qdisc_dev(sch));
q->perturbation = prandom_u32();