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 6000 # selftests: net: test_bridge_backup_port.sh [ 664.148978] veth0: renamed from veth1 [ 664.296210] br0: port 1(swp1) entered blocking state [ 664.296525] br0: port 1(swp1) entered disabled state [ 664.296821] swp1: entered allmulticast mode [ 664.297135] swp1: entered promiscuous mode [ 664.297416] br0: port 1(swp1) entered blocking state [ 664.297712] br0: port 1(swp1) entered forwarding state [ 664.326521] br0: port 2(vx0) entered blocking state [ 664.326892] br0: port 2(vx0) entered disabled state [ 664.327149] vx0: entered allmulticast mode [ 664.327431] vx0: entered promiscuous mode [ 664.327706] br0: port 2(vx0) entered blocking state [ 664.327964] br0: port 2(vx0) entered forwarding state [ 664.510642] br0: port 1(swp1) entered blocking state [ 664.511004] br0: port 1(swp1) entered disabled state [ 664.511294] swp1: entered allmulticast mode [ 664.511586] swp1: entered promiscuous mode [ 664.511859] br0: port 1(swp1) entered blocking state [ 664.512115] br0: port 1(swp1) entered forwarding state [ 664.545088] br0: port 2(vx0) entered blocking state [ 664.545517] br0: port 2(vx0) entered disabled state [ 664.545911] vx0: entered allmulticast mode [ 664.546340] vx0: entered promiscuous mode [ 664.546689] br0: port 2(vx0) entered blocking state [ 664.547071] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 670.047333] 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 ] [ 670.398125] br0: port 1(swp1) entered blocking state [ 670.398415] 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 ] # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [ OK ] [ 671.053837] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 671.144820] br0: port 1(swp1) entered blocking state [ 671.145129] 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 ] # TEST: swp1 carrier off [ OK ] [ 672.061797] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [FAIL] # TEST: No forwarding out of vx0 [ OK ] [ 672.315828] vx0: left allmulticast mode [ 672.316115] vx0: left promiscuous mode [ 672.316373] br0: port 2(vx0) entered disabled state [ 672.327827] swp1: left allmulticast mode [ 672.328095] swp1: left promiscuous mode [ 672.328378] br0: port 1(swp1) entered disabled state [ 672.449885] vx0: left allmulticast mode [ 672.450136] vx0: left promiscuous mode [ 672.450383] br0: port 2(vx0) entered disabled state [ 672.461808] swp1: left allmulticast mode [ 672.462084] swp1: left promiscuous mode [ 672.462359] br0: port 1(swp1) entered disabled state [ 672.800878] veth0: renamed from veth1 [ 672.978715] br0: port 1(swp1) entered blocking state [ 672.979131] br0: port 1(swp1) entered disabled state [ 672.979541] swp1: entered allmulticast mode [ 672.980074] swp1: entered promiscuous mode [ 672.980489] br0: port 1(swp1) entered blocking state [ 672.980900] br0: port 1(swp1) entered forwarding state [ 673.014074] br0: port 2(vx0) entered blocking state [ 673.014377] br0: port 2(vx0) entered disabled state [ 673.014635] vx0: entered allmulticast mode [ 673.014938] vx0: entered promiscuous mode [ 673.015364] br0: port 2(vx0) entered blocking state [ 673.015663] br0: port 2(vx0) entered forwarding state [ 673.212441] br0: port 1(swp1) entered blocking state [ 673.212791] br0: port 1(swp1) entered disabled state [ 673.213083] swp1: entered allmulticast mode [ 673.213388] swp1: entered promiscuous mode [ 673.213693] br0: port 1(swp1) entered blocking state [ 673.213963] br0: port 1(swp1) entered forwarding state [ 673.245116] br0: port 2(vx0) entered blocking state [ 673.245403] br0: port 2(vx0) entered disabled state [ 673.245664] vx0: entered allmulticast mode [ 673.246204] vx0: entered promiscuous mode [ 673.246497] br0: port 2(vx0) entered blocking state [ 673.246773] 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 ] [ 678.928182] 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 ] [ 679.597664] br0: port 1(swp1) entered blocking state [ 679.597966] 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 ] [ 680.006122] 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 ] [ 680.667501] br0: port 1(swp1) entered blocking state [ 680.667820] 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 ] [ 682.002531] 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 ] [ 682.719827] vx0: left allmulticast mode [ 682.720301] vx0: left promiscuous mode [ 682.720839] br0: port 2(vx0) entered disabled state [ 682.730833] swp1: left allmulticast mode [ 682.731230] swp1: left promiscuous mode [ 682.731654] br0: port 1(swp1) entered disabled state [ 682.867862] vx0: left allmulticast mode [ 682.868351] vx0: left promiscuous mode [ 682.868843] br0: port 2(vx0) entered disabled state [ 682.880839] swp1: left allmulticast mode [ 682.881076] swp1: left promiscuous mode [ 682.881289] br0: port 1(swp1) entered disabled state [ 683.159289] veth0: renamed from veth1 [ 683.312135] br0: port 1(swp1) entered blocking state [ 683.312441] br0: port 1(swp1) entered disabled state [ 683.312755] swp1: entered allmulticast mode [ 683.313077] swp1: entered promiscuous mode [ 683.313366] br0: port 1(swp1) entered blocking state [ 683.313641] br0: port 1(swp1) entered forwarding state [ 683.342938] br0: port 2(vx0) entered blocking state [ 683.343245] br0: port 2(vx0) entered disabled state [ 683.343516] vx0: entered allmulticast mode [ 683.343824] vx0: entered promiscuous mode [ 683.344072] br0: port 2(vx0) entered blocking state [ 683.344343] br0: port 2(vx0) entered forwarding state [ 683.519775] br0: port 1(swp1) entered blocking state [ 683.520069] br0: port 1(swp1) entered disabled state [ 683.520337] swp1: entered allmulticast mode [ 683.520642] swp1: entered promiscuous mode [ 683.520931] br0: port 1(swp1) entered blocking state [ 683.521189] br0: port 1(swp1) entered forwarding state [ 683.553163] br0: port 2(vx0) entered blocking state [ 683.553579] br0: port 2(vx0) entered disabled state [ 683.553979] vx0: entered allmulticast mode [ 683.554410] vx0: entered promiscuous mode [ 683.554829] br0: port 2(vx0) entered blocking state [ 683.555213] 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 ] [ 688.942464] 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 ] [ 691.895862] vx0: left allmulticast mode [ 691.896133] vx0: left promiscuous mode [ 691.896390] br0: port 2(vx0) entered disabled state [ 691.911839] swp1: left allmulticast mode [ 691.912364] swp1: left promiscuous mode [ 691.912813] br0: port 1(swp1) entered disabled state [ 692.072879] vx0: left allmulticast mode [ 692.073520] vx0: left promiscuous mode [ 692.074052] br0: port 2(vx0) entered disabled state [ 692.083816] swp1: left allmulticast mode [ 692.084394] swp1: left promiscuous mode [ 692.084853] br0: port 1(swp1) entered disabled state [ 692.343859] veth0: renamed from veth1 [ 692.506425] br0: port 1(swp1) entered blocking state [ 692.506879] br0: port 1(swp1) entered disabled state [ 692.507286] swp1: entered allmulticast mode [ 692.507746] swp1: entered promiscuous mode [ 692.508138] br0: port 1(swp1) entered blocking state [ 692.508518] br0: port 1(swp1) entered forwarding state [ 692.540846] br0: port 2(vx0) entered blocking state [ 692.541274] br0: port 2(vx0) entered disabled state [ 692.541643] vx0: entered allmulticast mode [ 692.542233] vx0: entered promiscuous mode [ 692.542598] br0: port 2(vx0) entered blocking state [ 692.542985] br0: port 2(vx0) entered forwarding state [ 692.736477] br0: port 1(swp1) entered blocking state [ 692.736779] br0: port 1(swp1) entered disabled state [ 692.737045] swp1: entered allmulticast mode [ 692.737354] swp1: entered promiscuous mode [ 692.737634] br0: port 1(swp1) entered blocking state [ 692.737899] br0: port 1(swp1) entered forwarding state [ 692.767123] br0: port 2(vx0) entered blocking state [ 692.767412] br0: port 2(vx0) entered disabled state [ 692.767667] vx0: entered allmulticast mode [ 692.767994] vx0: entered promiscuous mode [ 692.768243] br0: port 2(vx0) entered blocking state [ 692.768496] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 698.109995] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 699.133890] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 704.209827] vx0: left allmulticast mode [ 704.210077] vx0: left promiscuous mode [ 704.210393] br0: port 2(vx0) entered disabled state [ 704.224882] swp1: left allmulticast mode [ 704.225209] swp1: left promiscuous mode [ 704.225453] br0: port 1(swp1) entered disabled state [ 704.383909] vx0: left allmulticast mode [ 704.384453] vx0: left promiscuous mode [ 704.384943] br0: port 2(vx0) entered disabled state [ 704.391850] swp1: left allmulticast mode [ 704.392392] swp1: left promiscuous mode [ 704.392893] br0: port 1(swp1) entered disabled state [ 704.640945] veth0: renamed from veth1 [ 704.801780] br0: port 1(swp1) entered blocking state [ 704.802093] br0: port 1(swp1) entered disabled state [ 704.802364] swp1: entered allmulticast mode [ 704.802685] swp1: entered promiscuous mode [ 704.802956] br0: port 1(swp1) entered blocking state [ 704.803214] br0: port 1(swp1) entered forwarding state [ 704.837589] br0: port 2(vx0) entered blocking state [ 704.837930] br0: port 2(vx0) entered disabled state [ 704.838209] vx0: entered allmulticast mode [ 704.838534] vx0: entered promiscuous mode [ 704.838810] br0: port 2(vx0) entered blocking state [ 704.839064] br0: port 2(vx0) entered forwarding state [ 705.047169] br0: port 1(swp1) entered blocking state [ 705.047586] br0: port 1(swp1) entered disabled state [ 705.048005] swp1: entered allmulticast mode [ 705.048439] swp1: entered promiscuous mode [ 705.048839] br0: port 1(swp1) entered blocking state [ 705.049220] br0: port 1(swp1) entered forwarding state [ 705.083392] br0: port 2(vx0) entered blocking state [ 705.083795] br0: port 2(vx0) entered disabled state [ 705.084079] vx0: entered allmulticast mode [ 705.084362] vx0: entered promiscuous mode [ 705.084607] br0: port 2(vx0) entered blocking state [ 705.084875] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 710.261035] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 740.371852] vx0: left allmulticast mode [ 740.372172] vx0: left promiscuous mode [ 740.372381] br0: port 2(vx0) entered disabled state # # Tests passed: 82 # Tests failed: 1 [ 740.378818] swp1: left allmulticast mode [ 740.379234] swp1: left promiscuous mode [ 740.379577] br0: port 1(swp1) entered disabled state not ok 1 selftests: net: test_bridge_backup_port.sh # exit=1 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__->