From 9c6bb38a6aff5b3624a28482fc9ef4627e54caf1 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Tue, 26 Apr 2022 14:19:59 +0300 Subject: [PATCH] kernel: use default fq_codel memory limit on PPC64 The qoriq target is the only PPC64 target, and the only supported device comes with 4GB RAM. Use the default memory limit on PPC64 for fq_codel, as 4MB is suboptimal for even gigabit. Signed-off-by: Stijn Tintel --- target/linux/generic/hack-5.10/660-fq_codel_defaults.patch | 2 +- target/linux/generic/hack-5.15/660-fq_codel_defaults.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/generic/hack-5.10/660-fq_codel_defaults.patch b/target/linux/generic/hack-5.10/660-fq_codel_defaults.patch index a57a045f4a..5eae38ffc8 100644 --- a/target/linux/generic/hack-5.10/660-fq_codel_defaults.patch +++ b/target/linux/generic/hack-5.10/660-fq_codel_defaults.patch @@ -17,7 +17,7 @@ Signed-off-by: Felix Fietkau sch->limit = 10*1024; q->flows_cnt = 1024; -+#ifdef CONFIG_X86_64 ++#if defined(CONFIG_X86_64) || defined (CONFIG_PPC64) q->memory_limit = 32 << 20; /* 32 MBytes */ +#else + q->memory_limit = 4 << 20; /* 4 MBytes */ diff --git a/target/linux/generic/hack-5.15/660-fq_codel_defaults.patch b/target/linux/generic/hack-5.15/660-fq_codel_defaults.patch index a57a045f4a..5eae38ffc8 100644 --- a/target/linux/generic/hack-5.15/660-fq_codel_defaults.patch +++ b/target/linux/generic/hack-5.15/660-fq_codel_defaults.patch @@ -17,7 +17,7 @@ Signed-off-by: Felix Fietkau sch->limit = 10*1024; q->flows_cnt = 1024; -+#ifdef CONFIG_X86_64 ++#if defined(CONFIG_X86_64) || defined (CONFIG_PPC64) q->memory_limit = 32 << 20; /* 32 MBytes */ +#else + q->memory_limit = 4 << 20; /* 4 MBytes */ -- 2.30.2