Other Parts Discussed in Thread: TMDS64EVM
Tool/software:
The commands I run are below:
1、enable switch mode
ip link set dev eth0 down
ip link set dev eth1 down
sleep 1
ip link set dev eth0 up
ip link set dev eth1 up
sleep 2
devlink dev param set platform/8000000.ethernet name switch_mode value true cmode runtime
sleep 1
ip link add name br0 type bridge
sleep 1
ip link set dev eth0 master br0
ip link set dev eth1 master br0
ip link set dev br0 type bridge stp_state 1
ip link set dev br0 up
bridge vlan add dev br0 vid 1 self
bridge vlan add dev br0 vid 1 pvid untagged self
ip addr add 192.168.1.101/24 dev br0
the kernel logs are below:
2、I try link br0 down and up, found that the time it recover need 30+ seconds
As you can see, the log displays that br0 becomes ready need 30s, however, I use my PC to ping 192.168.1.101(br0 ip) may need more time, the time seems random, sometimes, it will need more than 60s.
3、I try link eth0 down and up(by unplugging and plugging the cable), found that the time it recover need 60+ seconds
Also, the kernel logs displays 30s, but actually it need 60s.
Both eth0 and eth1 have the same situation.
Are these recovery time we expected?
Thanks for your all reply.