I just flashed a snapshot built from a few hours ago and noticed several thousand entries in my dmesg output relating to lan5 going up and down. Any thoughts to troubleshoot?
I currently do not have physical access to the device but can remote in. What I see in LuCI's status page is the port status for lan5 going from "no link" to "1 GbE" which co-insides with the dmeg output.
The device connected to lan5 is current gen 4k Apple tv. Once the Apple tv is awake from sleep, the device stays connected consistently.
Could be some Apple TV network keep alive or something that happens when the device is sleeping?
Example:
[ 21.810857] mt7530-mdio mdio-bus:1f lan5: Link is Up - 1Gbps/Full - flow control rx/tx
[ 21.810887] br-lan: port 5(lan5) entered blocking state
[ 21.824029] br-lan: port 5(lan5) entered forwarding state
[ 33.947078] br-lan: port 5(lan5) entered disabled state
[ 33.947196] mt7530-mdio mdio-bus:1f lan5: Link is Down
[ 44.178748] mt7530-mdio mdio-bus:1f lan5: Link is Up - 1Gbps/Full - flow control rx/tx
[ 44.178773] br-lan: port 5(lan5) entered blocking state
[ 44.191881] br-lan: port 5(lan5) entered forwarding state
[ 48.131050] br-lan: port 5(lan5) entered disabled state
[ 48.131171] mt7530-mdio mdio-bus:1f lan5: Link is Down
[ 50.751919] mt7530-mdio mdio-bus:1f lan5: Link is Up - 1Gbps/Full - flow control off
[ 50.751943] br-lan: port 5(lan5) entered blocking state
[ 50.764882] br-lan: port 5(lan5) entered forwarding state
[ 51.503265] br-lan: port 5(lan5) entered disabled state
[ 51.503384] mt7530-mdio mdio-bus:1f lan5: Link is Down
[ 54.528009] mt7530-mdio mdio-bus:1f lan5: Link is Up - 1Gbps/Full - flow control rx/tx
[ 54.528034] br-lan: port 5(lan5) entered blocking state
[ 54.541137] br-lan: port 5(lan5) entered forwarding state
...
/etc/config/network
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 'fd99:97d2:a14e::/48'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
option peerdns '0'
list dns '1.1.1.1'
list dns '1.0.0.1'
config interface 'lan'
option device 'br-lan.10'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option delegate '0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
option ipv6 '0'
config bridge-vlan
option device 'br-lan'
option vlan '10'
list ports 'lan1:u*'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
list ports 'lan5:u*'
config bridge-vlan
option device 'br-lan'
option vlan '3'
config bridge-vlan
option device 'br-lan'
option vlan '4'
config device
option name 'br-lan.10'
option type '8021q'
option ifname 'br-lan'
option vid '10'
option ipv6 '0'
config device
option name 'br-lan.3'
option type '8021q'
option ifname 'br-lan'
option vid '3'
option ipv6 '0'
config device
option name 'br-lan.4'
option type '8021q'
option ifname 'br-lan'
option vid '4'
option ipv6 '0'
config device
option name 'eth0'
option ipv6 '0'
config device
option name 'eth1'
option ipv6 '0'
config device
option name 'lan1'
option ipv6 '0'
config device
option name 'lan2'
option ipv6 '0'
config device
option name 'lan3'
option ipv6 '0'
config device
option name 'lan4'
option ipv6 '0'
config device
option name 'lan5'
option ipv6 '0'
config device
option name 'wg0'
config device
option type 'bridge'
option name 'lxcbr0'
option bridge_empty '1'
option ipv6 '0'
config interface 'guest'
option proto 'static'
option device 'br-lan.3'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
config interface 'iot'
option proto 'static'
option device 'br-lan.4'
option ipaddr '192.168.4.1'
option netmask '255.255.255.0'
config interface 'lxc'
option device 'lxcbr0'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '10.0.4.1'
config interface 'wg0'
option proto 'wireguard'
...
<<< omitted wireguard specific stuff >>>
Hmm do you run these mac devices through multiple switches?
I got something like this with my tv which has 2 switches behind, when dhcp renews also netifd bugs out my tv then also reports really short that the cable was disconnected.
But lately i don't see this anymore on my tv, but i wonder if something like this trigger netifd?
I am not seeing a difference in behavior switching the modes from 0x020 to 0x08 to 0x2F. I am seeing the link establishing itself at either 1 GbE or 100 M accordingly. I do have EEE disabled. Running a simple ethtool -r lan5 also has no change in behavior.