From: Felix Fietkau Date: Wed, 15 Jan 2025 20:46:53 +0000 (+0100) Subject: netifd: fix napi process name matching in packet steering script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=67a4aeef6c63e5836bd6b82faf6cc15934869efb;p=openwrt%2Fstaging%2Fsvanheule.git 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 --- 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 &&