[BPI-R2] Adding second gmac to 4.14

(Niumar André Klein) #61


I am also having problems with Banana Pi r2 v1.[12] when it comes to have high loads on multiple interfaces. Example: If there is only forward traffic from wan to lan0 interface (or vice-versa) no problems are note, but if during this traffic I start another traffic, by example, going out from lan1 interface, the output traffic simply does not work.

All these tests were made by using iperf and scp on OpenWrt 18.06.1, r7258-5eb055306f initramfs kernel.

I also compiled the entire openwrt trunk version and the result was the same even making some changes on gmac code on the dts file referenced in this thread but again, no solution.

Well, have we some news on this thread?


(Frank W.) #62

i do not know openwrt much, can you try with my 4.14-kernel(s) in debian/ubuntu?

remember, all kernels except 4.14.53+ (from me), 4.9 (from me or banana-pi-openwrt-repo) use single gmac. that means you have 1GbE (imho 2G Burst) lane between SOC and Switch. if you have 1 GB Traffic from 1 Port to another no more Traffic is possible from another Port. 2nd Gmac brings a second cpu-port (eth1) to minimize this effect.

imho all Traffic have to go from switch to CPU and Back (to the other port)

(Niumar André Klein) #63

I will try to apply your changes to my openwrt 4.14.68 and 4.14.79 sources.

Thanks Frank

(Frank W.) #64

4.14-code is here: https://github.com/frank-w/BPI-R2-4.14/pull/32 or https://github.com/frank-w/BPI-R2-4.14/commit/a293bdb3d53aac4216fb379f84aa25aa65aaa3ef

Currently it does not work on higher kernel-versions