From 67a4aeef6c63e5836bd6b82faf6cc15934869efb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 15 Jan 2025 21:46:53 +0100 Subject: [PATCH] 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 --- .../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 && -- 2.30.2