summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-01-15 20:46:53 +0000
committerFelix Fietkau2025-01-15 20:50:49 +0000
commite7cd87e72dae24d473b16b0748e83ebbd4ae76e6 (patch)
treebc0d8b2da69ae8eb80fd3e3ad84f872296d82282
parent93cdb10411bb6aca61f78506bd90e93c16b85064 (diff)
downloadopenwrt-e7cd87e72dae24d473b16b0748e83ebbd4ae76e6.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> (cherry picked from commit 67a4aeef6c63e5836bd6b82faf6cc15934869efb)
-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 &&