diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c index 8a0539066b806721c606049a93f12e56db824a07..64ce0ce3a283ab97c0e762141d0c38f735a8c810 100644 --- a/net/sched/sch_fq_codel.c +++ b/net/sched/sch_fq_codel.c @@ -474,7 +474,11 @@ static int fq_codel_init(struct Qdisc *sch, struct nlattr *opt, sch->limit = 10*1024; q->flows_cnt = 1024; +#ifdef CONFIG_X86_64 q->memory_limit = 32 << 20; /* 32 MBytes */ +#else + q->memory_limit = 4 << 20; /* 4 MBytes */ +#endif q->drop_batch_size = 64; q->quantum = psched_mtu(qdisc_dev(sch)); INIT_LIST_HEAD(&q->new_flows);