]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: net: bridge_vlan_mcast: wait for h1 before querier check
authorDaniel Golle <daniel@makrotopia.org>
Sun, 5 Apr 2026 21:29:19 +0000 (22:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Apr 2026 03:16:16 +0000 (20:16 -0700)
commitefaa71faf212324ecbf6d5339e9717fe53254f58
treef789e7017755cd1d39c23f987e1addd10e2bf8a1
parent944b3b734cfbbe9502274c092bc3b8220764cc92
selftests: net: bridge_vlan_mcast: wait for h1 before querier check

The querier-interval test adds h1 (currently a slave of the VRF created
by simple_if_init) to a temporary bridge br1 acting as an outside IGMP
querier. The kernel VRF driver (drivers/net/vrf.c) calls cycle_netdev()
on every slave add and remove, toggling the interface admin-down then up.
Phylink takes the PHY down during the admin-down half of that cycle.
Since h1 and swp1 are cable-connected, swp1 also loses its link may need
several seconds to re-negotiate.

Use setup_wait_dev $h1 0 which waits for h1 to return to UP state, so the
test can rely on the link being back up at this point.

Fixes: 4d8610ee8bd77 ("selftests: net: bridge: add vlan mcast_querier_interval tests")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://patch.msgid.link/c830f130860fd2efae08bfb9e5b25fd028e58ce5.1775424423.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh