summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-01-15 20:46:53 +0000
committerFelix Fietkau2025-01-15 20:49:33 +0000
commit67a4aeef6c63e5836bd6b82faf6cc15934869efb (patch)
tree6a159bd6ff3e0de699e51767079f0653ecd63eff
parent9decfc82dcd0d9d90fbdbddebba053492c594ca4 (diff)
downloadopenwrt-67a4aeef6c63e5836bd6b82faf6cc15934869efb.tar.gz
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@nbd.name>
-rwxr-xr-xpackage/network/config/netifd/files/usr/libexec/network/packet-steering.uc2
1 files changed, 1 insertions, 1 deletions
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 &&