[openwrt/openwrt] netifd: fix napi process name matching in packet steering script

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 15 12:49:46 PST 2025


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/67a4aeef6c63e5836bd6b82faf6cc15934869efb

commit 67a4aeef6c63e5836bd6b82faf6cc15934869efb
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Jan 15 21:46:53 2025 +0100

    netifd: fix napi process name matching in packet steering script
    
    Fixes CPU usage imbalance on some devices using threaded NAPI
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../network/config/netifd/files/usr/libexec/network/packet-steering.uc  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/config/netifd/files/usr/libexec/network/packet-steering.uc b/package/network/config/netifd/files/usr/libexec/network/packet-steering.uc
index a578e28879..b2229e5d79 100755
--- a/package/network/config/netifd/files/usr/libexec/network/packet-steering.uc
+++ b/package/network/config/netifd/files/usr/libexec/network/packet-steering.uc
@@ -87,7 +87,7 @@ function set_netdev_cpu(dev, cpu) {
 
 function task_device_match(name, device)
 {
-	let napi_match = match(name, /napi\/([^-+])-\d+/);
+	let napi_match = match(name, /napi\/([^-]*)-\d+/);
 	if (!napi_match)
 		napi_match = match(name, /mt76-tx (phy\d+)/);
 	if (napi_match &&




More information about the lede-commits mailing list