so, after experimenting with my BPI-R4, I took it into production. as an ap with switch. The uplink is connected to sfp2, but all ports are bridged via openwrt br-lan.
After some GB of load, it seems like it’s struggling with one of the LAN ports (LAN1).
Incoming connections via the SFP port and the PCIe AP adapter sometimes seem to struggle. Package loss gets very high.
Rebooting the BPI works, but only for some time.
How do I diagnose this issue? I don’ t have anything useful here, aside from “rebooting helps, so it’s probably a software issue on the bpi-r4”
EDIT: dmesg says nothing at that point, also the system load is < 1.0, so it is completely unclear what happens and why
Tell people what software (which version of OpenWrt and created by whom) that your R4 is running. So that ppl will have a better idea and chime in if they know something about the issue (or no issue for them).
autoneg is known to be broken for some SFP as 2g5 is not part of autoneg spec. but i wonder why you have this on a DSA switch port…how does ethtool look like when the issue shows up? normally autoneg is only used when a new link came up…once the link is established, autoneg is not done. so you need to have at least a link down/up.
Mhm,but autoneg handling for sfp is afaik in mac/pcs driver and for rj45-ports in dsa driver (mt7530). Strange that then 2 drivers may have the same issue.
Not sure both have EEE settings…saw a patchset from arinc adding it to dsa driver but imho not yet merged.
To be honest, I never truely believed it could be involved until I’m looking at it right now … It sounds like some tx ring buffer not functioning properly
@jpsollie
Any chance that you can share your configuration that you used in order to get the 4 RJ45 ports bridged to the same interface as the wireless? I am trying to use mine as an AP, but I seem to fail horribly when I attempt to bridge it, and then it won’t bring up any interfaces.
Hmm. I get what you mean, and yes, I do have the wireless config able to join via hostapd. I didn’t explain what my issue was very well, I actually am having trouble with the /etc/config/network config. When I try to add all of the ethernet ports together (I don’t actually care about the SFP) and have them act as a “dumb switch” with an AP, whose clients are not behind a NAT layer. When I try to post the config and reboot or uci commit, I was able to actually use it as a wifi AP, but lost the ability to access the device via IP, wouldn’t ping, and my laptop had a poor speed. I have tried about 30 different times to set it up.
I have a config like this:
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdbe:ae96:b069::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'wan'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.228.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'wan'
option macaddr '8e:3a:e3:14:a8:0b'
config device
option name 'eth2'
option macaddr '8e:3a:e3:14:a8:0b'
I’m not really sure what I need to change about it to make it work how I want. I remember doing something like this way way back on the early days of openWRT, but a lot of things have changed since then