make -C tools/testing/selftests TARGETS=net TEST_PROGS=test_bridge_backup__port.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 3600 # selftests: net: test_bridge_backup_port.sh [ 686.246656] veth0: renamed from veth1 [ 686.405848] br0: port 1(swp1) entered blocking state [ 686.406262] br0: port 1(swp1) entered disabled state [ 686.406679] swp1: entered allmulticast mode [ 686.407121] swp1: entered promiscuous mode [ 686.407597] br0: port 1(swp1) entered blocking state [ 686.407980] br0: port 1(swp1) entered forwarding state [ 686.442143] br0: port 2(vx0) entered blocking state [ 686.442628] br0: port 2(vx0) entered disabled state [ 686.443017] vx0: entered allmulticast mode [ 686.443478] vx0: entered promiscuous mode [ 686.443869] br0: port 2(vx0) entered blocking state [ 686.444246] br0: port 2(vx0) entered forwarding state [ 686.647112] br0: port 1(swp1) entered blocking state [ 686.647602] br0: port 1(swp1) entered disabled state [ 686.647999] swp1: entered allmulticast mode [ 686.648469] swp1: entered promiscuous mode [ 686.648883] br0: port 1(swp1) entered blocking state [ 686.649270] br0: port 1(swp1) entered forwarding state [ 686.680254] br0: port 2(vx0) entered blocking state [ 686.680551] br0: port 2(vx0) entered disabled state [ 686.680821] vx0: entered allmulticast mode [ 686.681120] vx0: entered promiscuous mode [ 686.681356] br0: port 2(vx0) entered blocking state [ 686.681630] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 692.205342] br0: port 1(swp1) entered disabled state # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 692.610136] br0: port 1(swp1) entered blocking state [ 692.610450] br0: port 1(swp1) entered forwarding state # TEST: swp1 carrier on [ OK ] # TEST: vx0 configured as backup port of swp1 [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 693.208497] br0: port 1(swp1) entered disabled state # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] [ 693.593347] br0: port 1(swp1) entered blocking state [ 693.593651] br0: port 1(swp1) entered forwarding state # TEST: swp1 carrier on [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] # TEST: vx0 not configured as backup port of swp1 [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 694.385426] br0: port 1(swp1) entered disabled state # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 694.785541] vx0: left allmulticast mode [ 694.785961] vx0: left promiscuous mode [ 694.786354] br0: port 2(vx0) entered disabled state [ 694.786818] swp1: left allmulticast mode [ 694.787071] swp1: left promiscuous mode [ 694.787285] br0: port 1(swp1) entered disabled state [ 694.851560] vx0: left allmulticast mode [ 694.851818] vx0: left promiscuous mode [ 694.852142] br0: port 2(vx0) entered disabled state [ 694.852710] swp1: left allmulticast mode [ 694.853194] swp1: left promiscuous mode [ 694.853440] br0: port 1(swp1) entered disabled state [ 695.306513] veth0: renamed from veth1 [ 695.466986] br0: port 1(swp1) entered blocking state [ 695.467291] br0: port 1(swp1) entered disabled state [ 695.467634] swp1: entered allmulticast mode [ 695.467940] swp1: entered promiscuous mode [ 695.468221] br0: port 1(swp1) entered blocking state [ 695.468500] br0: port 1(swp1) entered forwarding state [ 695.499385] br0: port 2(vx0) entered blocking state [ 695.499775] br0: port 2(vx0) entered disabled state [ 695.500129] vx0: entered allmulticast mode [ 695.500525] vx0: entered promiscuous mode [ 695.500851] br0: port 2(vx0) entered blocking state [ 695.501203] br0: port 2(vx0) entered forwarding state [ 695.709143] br0: port 1(swp1) entered blocking state [ 695.709485] br0: port 1(swp1) entered disabled state [ 695.709759] swp1: entered allmulticast mode [ 695.710064] swp1: entered promiscuous mode [ 695.710371] br0: port 1(swp1) entered blocking state [ 695.710634] br0: port 1(swp1) entered forwarding state [ 695.740827] br0: port 2(vx0) entered blocking state [ 695.741144] br0: port 2(vx0) entered disabled state [ 695.741490] vx0: entered allmulticast mode [ 695.741785] vx0: entered promiscuous mode [ 695.742218] br0: port 2(vx0) entered blocking state [ 695.742498] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID # ----------------- # TEST: vx0 configured as backup port of swp1 [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 701.420907] br0: port 1(swp1) entered disabled state # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: Forwarding using VXLAN FDB entry [ OK ] [ 702.109777] br0: port 1(swp1) entered blocking state [ 702.110074] br0: port 1(swp1) entered forwarding state # TEST: swp1 carrier on [ OK ] # TEST: nexthop ID 10 configured as backup nexthop ID of swp1 [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 702.540249] br0: port 1(swp1) entered disabled state # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: Forwarding using backup nexthop ID [ OK ] # TEST: No forwarding using VXLAN FDB entry [ OK ] [ 703.263838] br0: port 1(swp1) entered blocking state [ 703.264134] br0: port 1(swp1) entered forwarding state # TEST: swp1 carrier on [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: No forwarding using VXLAN FDB entry [ OK ] # TEST: No backup nexthop ID configured for swp1 [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: No forwarding using VXLAN FDB entry [ OK ] [ 704.649773] br0: port 1(swp1) entered disabled state # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: Forwarding using VXLAN FDB entry [ OK ] [ 705.357598] vx0: left allmulticast mode [ 705.357910] vx0: left promiscuous mode [ 705.358246] br0: port 2(vx0) entered disabled state [ 705.358693] swp1: left allmulticast mode [ 705.358906] swp1: left promiscuous mode [ 705.359126] br0: port 1(swp1) entered disabled state [ 705.440490] vx0: left allmulticast mode [ 705.440905] vx0: left promiscuous mode [ 705.441333] br0: port 2(vx0) entered disabled state [ 705.441896] swp1: left allmulticast mode [ 705.442294] swp1: left promiscuous mode [ 705.442619] br0: port 1(swp1) entered disabled state [ 705.850550] veth0: renamed from veth1 [ 706.002381] br0: port 1(swp1) entered blocking state [ 706.002684] br0: port 1(swp1) entered disabled state [ 706.002969] swp1: entered allmulticast mode [ 706.003262] swp1: entered promiscuous mode [ 706.003544] br0: port 1(swp1) entered blocking state [ 706.003828] br0: port 1(swp1) entered forwarding state [ 706.034685] br0: port 2(vx0) entered blocking state [ 706.035024] br0: port 2(vx0) entered disabled state [ 706.035301] vx0: entered allmulticast mode [ 706.035621] vx0: entered promiscuous mode [ 706.035873] br0: port 2(vx0) entered blocking state [ 706.036127] br0: port 2(vx0) entered forwarding state [ 706.243564] br0: port 1(swp1) entered blocking state [ 706.244016] br0: port 1(swp1) entered disabled state [ 706.244438] swp1: entered allmulticast mode [ 706.244892] swp1: entered promiscuous mode [ 706.245327] br0: port 1(swp1) entered blocking state [ 706.245700] br0: port 1(swp1) entered forwarding state [ 706.280051] br0: port 2(vx0) entered blocking state [ 706.280505] br0: port 2(vx0) entered disabled state [ 706.280957] vx0: entered allmulticast mode [ 706.281398] vx0: entered promiscuous mode [ 706.281761] br0: port 2(vx0) entered blocking state [ 706.282150] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - invalid IDs # ------------------------------- # TEST: vx0 configured as backup port of swp1 [ OK ] # TEST: Valid nexthop as backup nexthop [ OK ] [ 711.676333] br0: port 1(swp1) entered disabled state # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: Forwarding using backup nexthop ID [ OK ] # TEST: No Tx drop increase [ OK ] # TEST: Non-existent nexthop as backup nexthop [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: Tx drop increased [ OK ] # TEST: Blackhole nexthop as backup nexthop [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: Tx drop increased [ OK ] # TEST: Non-group FDB nexthop as backup nexthop [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: Tx drop increased [ OK ] # TEST: IPv6 address family nexthop as backup nexthop [ OK ] # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] # TEST: No forwarding using backup nexthop ID [ OK ] # TEST: Tx drop increased [ OK ] [ 714.645210] vx0: left allmulticast mode [ 714.645668] vx0: left promiscuous mode [ 714.645964] br0: port 2(vx0) entered disabled state [ 714.646582] swp1: left allmulticast mode [ 714.646909] swp1: left promiscuous mode [ 714.647287] br0: port 1(swp1) entered disabled state [ 714.738531] vx0: left allmulticast mode [ 714.738935] vx0: left promiscuous mode [ 714.739330] br0: port 2(vx0) entered disabled state [ 714.739961] swp1: left allmulticast mode [ 714.740319] swp1: left promiscuous mode [ 714.740662] br0: port 1(swp1) entered disabled state [ 715.136868] veth0: renamed from veth1 [ 715.297803] br0: port 1(swp1) entered blocking state [ 715.298135] br0: port 1(swp1) entered disabled state [ 715.298421] swp1: entered allmulticast mode [ 715.298734] swp1: entered promiscuous mode [ 715.299007] br0: port 1(swp1) entered blocking state [ 715.299288] br0: port 1(swp1) entered forwarding state [ 715.331442] br0: port 2(vx0) entered blocking state [ 715.331742] br0: port 2(vx0) entered disabled state [ 715.332007] vx0: entered allmulticast mode [ 715.332301] vx0: entered promiscuous mode [ 715.332605] br0: port 2(vx0) entered blocking state [ 715.332886] br0: port 2(vx0) entered forwarding state [ 715.534637] br0: port 1(swp1) entered blocking state [ 715.534949] br0: port 1(swp1) entered disabled state [ 715.535221] swp1: entered allmulticast mode [ 715.535531] swp1: entered promiscuous mode [ 715.535821] br0: port 1(swp1) entered blocking state [ 715.536096] br0: port 1(swp1) entered forwarding state [ 715.567227] br0: port 2(vx0) entered blocking state [ 715.567618] br0: port 2(vx0) entered disabled state [ 715.567933] vx0: entered allmulticast mode [ 715.568280] vx0: entered promiscuous mode [ 715.568537] br0: port 2(vx0) entered blocking state [ 715.568792] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 720.937250] br0: port 1(swp1) entered disabled state [ 721.985457] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 728.077938] vx0: left allmulticast mode [ 728.078366] vx0: left promiscuous mode [ 728.078787] br0: port 2(vx0) entered disabled state [ 728.080169] swp1: left allmulticast mode [ 728.080498] swp1: left promiscuous mode [ 728.081006] br0: port 1(swp1) entered disabled state [ 728.156507] vx0: left allmulticast mode [ 728.156892] vx0: left promiscuous mode [ 728.157245] br0: port 2(vx0) entered disabled state [ 728.157826] swp1: left allmulticast mode [ 728.158180] swp1: left promiscuous mode [ 728.158626] br0: port 1(swp1) entered disabled state [ 728.530593] veth0: renamed from veth1 [ 728.672470] br0: port 1(swp1) entered blocking state [ 728.672760] br0: port 1(swp1) entered disabled state [ 728.673031] swp1: entered allmulticast mode [ 728.673341] swp1: entered promiscuous mode [ 728.673628] br0: port 1(swp1) entered blocking state [ 728.673890] br0: port 1(swp1) entered forwarding state [ 728.701664] br0: port 2(vx0) entered blocking state [ 728.701972] br0: port 2(vx0) entered disabled state [ 728.702241] vx0: entered allmulticast mode [ 728.702657] vx0: entered promiscuous mode [ 728.702892] br0: port 2(vx0) entered blocking state [ 728.703181] br0: port 2(vx0) entered forwarding state [ 728.890181] br0: port 1(swp1) entered blocking state [ 728.890515] br0: port 1(swp1) entered disabled state [ 728.890843] swp1: entered allmulticast mode [ 728.891227] swp1: entered promiscuous mode [ 728.891589] br0: port 1(swp1) entered blocking state [ 728.891911] br0: port 1(swp1) entered forwarding state [ 728.926155] br0: port 2(vx0) entered blocking state [ 728.926495] br0: port 2(vx0) entered disabled state [ 728.926754] vx0: entered allmulticast mode [ 728.927054] vx0: entered promiscuous mode [ 728.927361] br0: port 2(vx0) entered blocking state [ 728.927698] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 734.113713] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 764.152331] vx0: left allmulticast mode [ 764.152679] vx0: left promiscuous mode [ 764.153076] br0: port 2(vx0) entered disabled state [ 764.153567] swp1: left allmulticast mode [ 764.153805] swp1: left promiscuous mode [ 764.154017] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 764.240504] vx0: left allmulticast mode [ 764.241021] vx0: left promiscuous mode [ 764.241255] br0: port 2(vx0) entered disabled state [ 764.241730] swp1: left allmulticast mode [ 764.242118] swp1: left promiscuous mode [ 764.242691] br0: port 1(swp1) entered disabled state ok 1 selftests: net: test_bridge_backup_port.sh make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__->