21.02 rc4: mt7530 mdio-bus:1f lan1: Link is Down, Link is Up

Is there a way to disable this entirely? Or is it something extremely needed?

Turn it off through ethtool doesn't work for you?

I did it, I also removed the patch target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch, but I still see the port going down and up. However, it is not causing internet connection issues anymore. I am not really sure what is goind on honestly.

you need that patch to turn it off through ethtool

How do I know that this problem may affect me if I have the X edgerouter?

check your log and see if there's any unusual Link is up/ Link is Down

[   21.055373] IPv6: ADDRCONF(NETDEV_CHANGE): lanveth: link becomes ready
[   21.069074] IPv6: ADDRCONF(NETDEV_CHANGE): lanbrport: link becomes ready
[   21.121121] br-lan: port 5(lanbrport) entered blocking state
[   21.132487] br-lan: port 5(lanbrport) entered disabled state
[   21.144540] device lanbrport entered promiscuous mode
[   21.155305] br-lan: port 5(lanbrport) entered blocking state
[   21.166736] br-lan: port 5(lanbrport) entered forwarding state
[   21.178843] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   22.840366] mt7530 mdio-bus:1f eth1: Link is Up - 100Mbps/Full - flow control off
[   22.855670] br-lan: port 1(eth1) entered blocking state
[   22.866223] br-lan: port 1(eth1) entered forwarding state
[   24.216238] mt7530 mdio-bus:1f eth0: Link is Up - 1Gbps/Full - flow control off
[   24.230868] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   58.808144] mt7530 mdio-bus:1f eth2: Link is Up - 1Gbps/Full - flow control rx/tx
[   58.823120] br-lan: port 2(eth2) entered blocking state
[   58.833587] br-lan: port 2(eth2) entered forwarding state
[ 5887.300776] mt7530 mdio-bus:1f eth1: Link is Down
[ 5887.310673] br-lan: port 1(eth1) entered disabled state
[ 5890.373009] mt7530 mdio-bus:1f eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 5890.388065] br-lan: port 1(eth1) entered blocking state
[ 5890.398576] br-lan: port 1(eth1) entered forwarding state

This looks consistent with what I am having too.
Are you having internet connection issues because of this? I mean temporary hickups.

@castiel652 regarding the indicated patch, how can this be applied to OpenWrt?
BTW do you know the subject of the thread on the mailing list so I can take a look at it please?

when gaming latency goes up to 999ms then back to normal

1 Like

I noticed this too but I am not sure whether is for networking issue or because of this.
I will pay more attention to this.

For now I can play quiet but in the latest stable version of openwrt the connection is lost for a few seconds and it comes back and it's annoying, that's why I went back to rc3

I am interested too

I was talking about the EEE patch.
it is required to turn off EEE

I thought removing this patch from the OpenWRT source: target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch, would have been enough to disable EEE, since there would be no support at all without that. I am running an image with this modification and is not giving me connection issues, but the log line with appears from time to time, although not as much as before.

could you share your modification?

I have simply deleted this file in the openwrt source tree:

target/linux/generic/pending-5.4/761-net-dsa-mt7530-Support-EEE-features.patch.

I am a newbie for those things

On D-Link DIR-1960 A1 I have seme issue.
Only workaround is restart network after boot.

You suggest me the good guide for try to compile openwrt source?

Thanks

I think it is related to internet connection / modem issue. I had a similar problem if the router was connected directly to the modem.

HW: edgerouter-x / ERX
OS: 21.02.0 and 21.02.1
PWR: Passive PoE (24v)

cable modem DOCSIS 3.0 (dhcp) == Mikrotik (hAP lite) == ERX+AP (no logs / stable for 3+ days)

dmesg log:

[   31.342925] switch0: port 1(eth0) entered blocking state
[   31.342943] switch0: port 1(eth0) entered forwarding state
[   31.343551] switch0: port 4(eth3) entered blocking state
[   31.343577] switch0: port 4(eth3) entered forwarding state
[   42.616970] mt7530 mdio-bus:1f eth4: Link is Up - 1Gbps/Full - flow control rx/tx
[   42.617064] switch0: port 5(eth4) entered blocking state
[   42.617091] switch0: port 5(eth4) entered forwarding state
[   76.408653] mt7530 mdio-bus:1f eth4: Link is Down
[   76.408842] switch0: port 5(eth4) entered disabled state
[   81.528818] mt7530 mdio-bus:1f eth4: Link is Up - 1Gbps/Full - flow control off
[   81.528883] switch0: port 5(eth4) entered blocking state
[   81.528895] switch0: port 5(eth4) entered forwarding state

router uptime:

root@erx:~# uptime
 04:14:52 up 3 days, 14:22,  load average: 0.01, 0.02, 0.00
root@erx:~# 

Not exactly in my case, I have a primary router connected directly to modem which has no such an issue, but one of the AP has this issue.

[281394.578371] br-lan: port 3(lan3) entered blocking state
[281394.583742] br-lan: port 3(lan3) entered forwarding state
[281395.594528] mt7530 mdio-bus:1f lan3: Link is Down
[281395.599466] br-lan: port 3(lan3) entered disabled state
[281397.642672] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[281397.650313] br-lan: port 3(lan3) entered blocking state
[281397.655636] br-lan: port 3(lan3) entered forwarding state
[281404.810521] mt7530 mdio-bus:1f lan3: Link is Down
[281404.815458] br-lan: port 3(lan3) entered disabled state
[281407.882637] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[281407.890635] br-lan: port 3(lan3) entered blocking state
[281407.895976] br-lan: port 3(lan3) entered forwarding state
[281679.241507] mt7530 mdio-bus:1f lan3: Link is Down
[281679.246710] br-lan: port 3(lan3) entered disabled state
[281682.313656] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx
Model Linksys EA7500 v2
Architecture MediaTek MT7621 ver:1 eco:3
Firmware Version OpenWrt 21.02.1 r16325-88151b8303 / LuCI openwrt-21.02 branch git-21.295.67054-13df80d