[PATCH RFT] ramips: use -fno-reorder-blocks for kernel compilation

Rafał Miłecki zajec5 at gmail.com
Mon Jun 20 13:24:11 PDT 2022


From: Rafał Miłecki <rafal at milecki.pl>

It seems to affect (improve) NAT masquarade performance on ramips. This
is SoC family specific (that flag worsens Broadcom Northstar NAT speeds)
so it can't be applied to all devices.

Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 config/Config-devel.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/Config-devel.in b/config/Config-devel.in
index a068f694e5..2e4613f171 100644
--- a/config/Config-devel.in
+++ b/config/Config-devel.in
@@ -76,6 +76,7 @@ menuconfig DEVEL
 
 	config KERNEL_CFLAGS
 		string "Kernel extra CFLAGS" if DEVEL
+		default "-fno-reorder-blocks" if TARGET_ramips
 		default ""
 
 	config EXTERNAL_KERNEL_TREE
-- 
2.34.1




More information about the openwrt-devel mailing list