浏览代码

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 <[email protected]>
(cherry picked from commit 67a4aeef6c63e5836bd6b82faf6cc15934869efb)
Felix Fietkau 9 月之前
父节点
当前提交
e7cd87e72d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/network/config/netifd/files/usr/libexec/network/packet-steering.uc

+ 1 - 1
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)
 function task_device_match(name, device)
 {
 {
-	let napi_match = match(name, /napi\/([^-+])-\d+/);
+	let napi_match = match(name, /napi\/([^-]*)-\d+/);
 	if (!napi_match)
 	if (!napi_match)
 		napi_match = match(name, /mt76-tx (phy\d+)/);
 		napi_match = match(name, /mt76-tx (phy\d+)/);
 	if (napi_match &&
 	if (napi_match &&