Enabling WiFi slows down NAT (bcm53xx)

Rafał Miłecki zajec5 at gmail.com
Fri Jan 13 06:56:32 PST 2023

On 13.01.2023 10:27, Rafał Miłecki wrote:
> Then I decided to reproduce manually the slow down.
> That was simple. It's enough to call:
> iw phy phy0 interface add ap0 type __ap
> (without even bringing interface up!)

I noticed that calling
/etc/init.d/network restart
brings back full 940 Mb/s NAT speed and that allowed me to debug this

Here comes explanation:

root at OpenWrt:/# cat /sys/class/net/eth0/queues/rx-0/rps_cpus
root at OpenWrt:/# iw phy phy0 interface add ap0 type __ap
root at OpenWrt:/# cat /sys/class/net/eth0/queues/rx-0/rps_cpus

When new interface appers, netifd overwrites optimized rps_cpus setup
that comes from target/linux/bcm53xx/base-files/etc/init.d/fastnetwork

("bcm53xx: enable & setup packet steering")

So it's a matter of netifd setup & bcm53xx specific setup script.

More information about the openwrt-devel mailing list