From 0bd80d71774ab01df2c150c85cb6ea2b94f3928c Mon Sep 17 00:00:00 2001
From: John Crispin <john@phrozen.org>
Date: Tue, 14 Dec 2021 11:04:27 +0100
Subject: [PATCH] ipq40xx: enable napi threading

Signed-off-by: John Crispin <john@phrozen.org>
---
 .../ipq40xx/base-files/lib/preinit/05_set_threading.sh     | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 target/linux/ipq40xx/base-files/lib/preinit/05_set_threading.sh

diff --git a/target/linux/ipq40xx/base-files/lib/preinit/05_set_threading.sh b/target/linux/ipq40xx/base-files/lib/preinit/05_set_threading.sh
new file mode 100644
index 0000000000..66c865bc62
--- /dev/null
+++ b/target/linux/ipq40xx/base-files/lib/preinit/05_set_threading.sh
@@ -0,0 +1,7 @@
+. /lib/functions.sh
+
+preinit_set_threading() {
+	echo 1 > /sys/class/net/eth0/threaded
+}
+
+boot_hook_add preinit_main preinit_set_threading
-- 
2.25.1

