mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 21:58:06 +04:00
The packet steering script treats both threaded NAPI and the mt76 TX worker as tasks belonging to the same wireless device. assign_dev_cpu() then assigns all of these tasks to the same CPU. This unnecessarily restricts the mt76 TX worker to the NAPI CPU even though its affinity does not otherwise need to be constrained. On MT7988A with MT7996 this caused the TX worker to share CPU3 with the NAPI thread. Moving it to another CPU increased measured TX throughput from 1.45 Gbit/s to 2.09 Gbit/s. Stop matching the mt76 TX worker in the packet steering script. This leaves its CPU affinity unrestricted and lets the scheduler place it more appropriately. Fixes: https://github.com/openwrt/openwrt/issues/24697 Signed-off-by: Gary Dotzler <geldot@protonmail.com> Link: https://github.com/openwrt/openwrt/pull/25016 Signed-off-by: Robert Marko <robimarko@gmail.com>