kernel: use default fq_codel memory limit on PPC64
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 26 Apr 2022 11:19:59 +0000 (14:19 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 8 Feb 2023 15:18:04 +0000 (17:18 +0200)
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 <stijn@linux-ipv6.be>
target/linux/generic/hack-5.10/660-fq_codel_defaults.patch
target/linux/generic/hack-5.15/660-fq_codel_defaults.patch

index a57a045f4a838285b8826dad55913d628f0f13a4..5eae38ffc870271954855b9d256408e89dea1004 100644 (file)
@@ -17,7 +17,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  
        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 */
index a57a045f4a838285b8826dad55913d628f0f13a4..5eae38ffc870271954855b9d256408e89dea1004 100644 (file)
@@ -17,7 +17,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  
        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 */