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.360097] veth0: renamed from veth1 [ 664.559695] br0: port 1(swp1) entered blocking state [ 664.560010] br0: port 1(swp1) entered disabled state [ 664.560356] swp1: entered allmulticast mode [ 664.560662] swp1: entered promiscuous mode [ 664.560950] br0: port 1(swp1) entered blocking state [ 664.561245] br0: port 1(swp1) entered forwarding state [ 664.599424] br0: port 2(vx0) entered blocking state [ 664.599766] br0: port 2(vx0) entered disabled state [ 664.600070] vx0: entered allmulticast mode [ 664.600409] vx0: entered promiscuous mode [ 664.600677] br0: port 2(vx0) entered blocking state [ 664.600958] br0: port 2(vx0) entered forwarding state [ 664.843003] br0: port 1(swp1) entered blocking state [ 664.843302] br0: port 1(swp1) entered disabled state [ 664.843591] swp1: entered allmulticast mode [ 664.843941] swp1: entered promiscuous mode [ 664.844219] br0: port 1(swp1) entered blocking state [ 664.844518] br0: port 1(swp1) entered forwarding state [ 664.881788] br0: port 2(vx0) entered blocking state [ 664.882140] br0: port 2(vx0) entered disabled state [ 664.882402] vx0: entered allmulticast mode [ 664.882740] vx0: entered promiscuous mode [ 664.882991] br0: port 2(vx0) entered blocking state [ 664.883269] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 670.419295] 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.790674] br0: port 1(swp1) entered blocking state [ 670.791109] 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.426954] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 671.574196] br0: port 1(swp1) entered blocking state [ 671.574593] 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.435002] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [FAIL] # TEST: No forwarding out of vx0 [ OK ] [ 672.719036] vx0: left allmulticast mode [ 672.719494] vx0: left promiscuous mode [ 672.719946] br0: port 2(vx0) entered disabled state [ 672.733074] swp1: left allmulticast mode [ 672.733649] swp1: left promiscuous mode [ 672.734253] br0: port 1(swp1) entered disabled state [ 672.852990] vx0: left allmulticast mode [ 672.853237] vx0: left promiscuous mode [ 672.853497] br0: port 2(vx0) entered disabled state [ 672.861027] swp1: left allmulticast mode [ 672.861296] swp1: left promiscuous mode [ 672.861512] br0: port 1(swp1) entered disabled state [ 673.256183] veth0: renamed from veth1 [ 673.430491] br0: port 1(swp1) entered blocking state [ 673.430821] br0: port 1(swp1) entered disabled state [ 673.431106] swp1: entered allmulticast mode [ 673.431412] swp1: entered promiscuous mode [ 673.431720] br0: port 1(swp1) entered blocking state [ 673.432012] br0: port 1(swp1) entered forwarding state [ 673.466773] br0: port 2(vx0) entered blocking state [ 673.467102] br0: port 2(vx0) entered disabled state [ 673.467406] vx0: entered allmulticast mode [ 673.467716] vx0: entered promiscuous mode [ 673.467984] br0: port 2(vx0) entered blocking state [ 673.468240] br0: port 2(vx0) entered forwarding state [ 673.694326] br0: port 1(swp1) entered blocking state [ 673.694682] br0: port 1(swp1) entered disabled state [ 673.695077] swp1: entered allmulticast mode [ 673.695500] swp1: entered promiscuous mode [ 673.695788] br0: port 1(swp1) entered blocking state [ 673.696123] br0: port 1(swp1) entered forwarding state [ 673.732516] br0: port 2(vx0) entered blocking state [ 673.732996] br0: port 2(vx0) entered disabled state [ 673.733387] vx0: entered allmulticast mode [ 673.733774] vx0: entered promiscuous mode [ 673.734072] br0: port 2(vx0) entered blocking state [ 673.734347] 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 ] [ 679.440739] 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 ] [ 680.115645] br0: port 1(swp1) entered blocking state [ 680.116076] 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.522269] 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 ] [ 681.182402] br0: port 1(swp1) entered blocking state [ 681.182698] 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.544244] 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 ] [ 683.233998] vx0: left allmulticast mode [ 683.234244] vx0: left promiscuous mode [ 683.234475] br0: port 2(vx0) entered disabled state [ 683.242508] swp1: left allmulticast mode [ 683.242788] swp1: left promiscuous mode [ 683.243130] br0: port 1(swp1) entered disabled state [ 683.345956] vx0: left allmulticast mode [ 683.346230] vx0: left promiscuous mode [ 683.346555] br0: port 2(vx0) entered disabled state [ 683.354064] swp1: left allmulticast mode [ 683.354437] swp1: left promiscuous mode [ 683.354803] br0: port 1(swp1) entered disabled state [ 683.782080] veth0: renamed from veth1 [ 683.964974] br0: port 1(swp1) entered blocking state [ 683.965393] br0: port 1(swp1) entered disabled state [ 683.965794] swp1: entered allmulticast mode [ 683.966255] swp1: entered promiscuous mode [ 683.966673] br0: port 1(swp1) entered blocking state [ 683.967075] br0: port 1(swp1) entered forwarding state [ 684.002451] br0: port 2(vx0) entered blocking state [ 684.002741] br0: port 2(vx0) entered disabled state [ 684.003015] vx0: entered allmulticast mode [ 684.003301] vx0: entered promiscuous mode [ 684.003545] br0: port 2(vx0) entered blocking state [ 684.003802] br0: port 2(vx0) entered forwarding state [ 684.233305] br0: port 1(swp1) entered blocking state [ 684.233598] br0: port 1(swp1) entered disabled state [ 684.233936] swp1: entered allmulticast mode [ 684.234289] swp1: entered promiscuous mode [ 684.234654] br0: port 1(swp1) entered blocking state [ 684.235047] br0: port 1(swp1) entered forwarding state [ 684.271088] br0: port 2(vx0) entered blocking state [ 684.271498] br0: port 2(vx0) entered disabled state [ 684.271900] vx0: entered allmulticast mode [ 684.272350] vx0: entered promiscuous mode [ 684.272682] br0: port 2(vx0) entered blocking state [ 684.273072] 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 ] [ 689.608232] 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 ] [ 692.498997] vx0: left allmulticast mode [ 692.499270] vx0: left promiscuous mode [ 692.499551] br0: port 2(vx0) entered disabled state [ 692.511046] swp1: left allmulticast mode [ 692.511317] swp1: left promiscuous mode [ 692.511581] br0: port 1(swp1) entered disabled state [ 692.615025] vx0: left allmulticast mode [ 692.615414] vx0: left promiscuous mode [ 692.615772] br0: port 2(vx0) entered disabled state [ 692.634026] swp1: left allmulticast mode [ 692.634281] swp1: left promiscuous mode [ 692.634509] br0: port 1(swp1) entered disabled state [ 692.998067] veth0: renamed from veth1 [ 693.140735] br0: port 1(swp1) entered blocking state [ 693.141060] br0: port 1(swp1) entered disabled state [ 693.141426] swp1: entered allmulticast mode [ 693.141722] swp1: entered promiscuous mode [ 693.142002] br0: port 1(swp1) entered blocking state [ 693.142262] br0: port 1(swp1) entered forwarding state [ 693.170046] br0: port 2(vx0) entered blocking state [ 693.170337] br0: port 2(vx0) entered disabled state [ 693.170621] vx0: entered allmulticast mode [ 693.170947] vx0: entered promiscuous mode [ 693.171211] br0: port 2(vx0) entered blocking state [ 693.171483] br0: port 2(vx0) entered forwarding state [ 693.371669] br0: port 1(swp1) entered blocking state [ 693.372114] br0: port 1(swp1) entered disabled state [ 693.372520] swp1: entered allmulticast mode [ 693.372956] swp1: entered promiscuous mode [ 693.373340] br0: port 1(swp1) entered blocking state [ 693.373700] br0: port 1(swp1) entered forwarding state [ 693.404173] br0: port 2(vx0) entered blocking state [ 693.404463] br0: port 2(vx0) entered disabled state [ 693.404720] vx0: entered allmulticast mode [ 693.405076] vx0: entered promiscuous mode [ 693.405315] br0: port 2(vx0) entered blocking state [ 693.405571] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 698.764695] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 699.778955] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 704.840112] vx0: left allmulticast mode [ 704.840440] vx0: left promiscuous mode [ 704.840883] br0: port 2(vx0) entered disabled state [ 704.854088] swp1: left allmulticast mode [ 704.854498] swp1: left promiscuous mode [ 704.855154] br0: port 1(swp1) entered disabled state [ 704.955418] vx0: left allmulticast mode [ 704.955807] vx0: left promiscuous mode [ 704.956193] br0: port 2(vx0) entered disabled state [ 704.967109] swp1: left allmulticast mode [ 704.967450] swp1: left promiscuous mode [ 704.967811] br0: port 1(swp1) entered disabled state [ 705.365144] veth0: renamed from veth1 [ 705.534581] br0: port 1(swp1) entered blocking state [ 705.535052] br0: port 1(swp1) entered disabled state [ 705.535449] swp1: entered allmulticast mode [ 705.535899] swp1: entered promiscuous mode [ 705.536304] br0: port 1(swp1) entered blocking state [ 705.536698] br0: port 1(swp1) entered forwarding state [ 705.570744] br0: port 2(vx0) entered blocking state [ 705.571168] br0: port 2(vx0) entered disabled state [ 705.571552] vx0: entered allmulticast mode [ 705.571984] vx0: entered promiscuous mode [ 705.572322] br0: port 2(vx0) entered blocking state [ 705.572704] br0: port 2(vx0) entered forwarding state [ 705.782307] br0: port 1(swp1) entered blocking state [ 705.782622] br0: port 1(swp1) entered disabled state [ 705.782978] swp1: entered allmulticast mode [ 705.783294] swp1: entered promiscuous mode [ 705.783589] br0: port 1(swp1) entered blocking state [ 705.783888] br0: port 1(swp1) entered forwarding state [ 705.816461] br0: port 2(vx0) entered blocking state [ 705.816750] br0: port 2(vx0) entered disabled state [ 705.817163] vx0: entered allmulticast mode [ 705.817447] vx0: entered promiscuous mode [ 705.817685] br0: port 2(vx0) entered blocking state [ 705.817974] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 710.979784] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 741.026107] vx0: left allmulticast mode [ 741.026465] vx0: left promiscuous mode [ 741.026801] br0: port 2(vx0) entered disabled state [ 741.035121] swp1: left allmulticast mode [ 741.035721] swp1: left promiscuous mode [ 741.036428] br0: port 1(swp1) entered disabled state # # Tests passed: 82 # Tests failed: 1 [ 741.146022] vx0: left allmulticast mode [ 741.146523] vx0: left promiscuous mode [ 741.147090] br0: port 2(vx0) entered disabled state [ 741.156324] swp1: left allmulticast mode [ 741.156664] swp1: left promiscuous mode [ 741.157088] 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__->