netifd: fix napi process name matching in packet steering script main master
authorFelix Fietkau <nbd@nbd.name>
Wed, 15 Jan 2025 20:46:53 +0000 (21:46 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 15 Jan 2025 20:49:33 +0000 (21:49 +0100)
Fixes CPU usage imbalance on some devices using threaded NAPI

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/netifd/files/usr/libexec/network/packet-steering.uc

index a578e288791d7d4a3d5bb44a222614af227b419f..b2229e5d793b412f14a93072df33884dce8a9818 100755 (executable)
@@ -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 &&