BPI-R2 Pro MT7531BE MDIO for ACL Control

Hello @frank-w

I am getting back to tinker with the R2-Pro. I am seeing the MDIO of MT7531BE is recognized as the MDIO-Bus of the /sys/class. Could this MDIO-bus be used to manually push parameters to configure the switch port ACL?

I also don’t know how hard would it be to integrate the ACL control over MDIO into the nftables to offload the basic IP header and even some L4 header filtering.

Thanks.

Have not done much with direct access of mdio,but imho it should be possible to program the mt7531. You should be able to access the switch by its adress (devicetree) via kmem (kernel option) and devmem2 (userspace tool) to set the registers.

Offload could be tricky as r2pro uses a rockchip mac and mtk switch…traffic has to be offloaded over both