On Thu, 2024-02-01 at 10:05 +0200, Ido Schimmel wrote:
The test toggles the carrier of a bridge port in order to test the bridge backup port feature.
Due to the linkwatch delayed work the carrier change is not always reflected fast enough to the bridge driver and packets are not forwarded as the test expects, resulting in failures [1].
Fix by adding a one second delay after a carrier change in places where a packet is sent immediately after the carrier change.
What about adding an helper alike wait_local_port_listen(), checking for bridge link status in short intervals, to likely reduce the overall wait time?
Thanks,
Paolo