[openwrt/openwrt] netifd: fix napi process name matching in packet steering script
LEDE Commits
lede-commits at lists.infradead.org
Wed Jan 15 12:56:12 PST 2025
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/e7cd87e72dae24d473b16b0748e83ebbd4ae76e6
commit e7cd87e72dae24d473b16b0748e83ebbd4ae76e6
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>
(cherry picked from commit 67a4aeef6c63e5836bd6b82faf6cc15934869efb)
---
.../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