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 [ 679.894658] veth0: renamed from veth1 [ 680.054261] br0: port 1(swp1) entered blocking state [ 680.054563] br0: port 1(swp1) entered disabled state [ 680.054837] swp1: entered allmulticast mode [ 680.055139] swp1: entered promiscuous mode [ 680.055430] br0: port 1(swp1) entered blocking state [ 680.055690] br0: port 1(swp1) entered forwarding state [ 680.086402] br0: port 2(vx0) entered blocking state [ 680.086811] br0: port 2(vx0) entered disabled state [ 680.087202] vx0: entered allmulticast mode [ 680.087633] vx0: entered promiscuous mode [ 680.087966] br0: port 2(vx0) entered blocking state [ 680.088348] br0: port 2(vx0) entered forwarding state [ 680.300399] br0: port 1(swp1) entered blocking state [ 680.300710] br0: port 1(swp1) entered disabled state [ 680.300999] swp1: entered allmulticast mode [ 680.301306] swp1: entered promiscuous mode [ 680.301614] br0: port 1(swp1) entered blocking state [ 680.301898] br0: port 1(swp1) entered forwarding state [ 680.336205] br0: port 2(vx0) entered blocking state [ 680.336621] br0: port 2(vx0) entered disabled state [ 680.337009] vx0: entered allmulticast mode [ 680.337441] vx0: entered promiscuous mode [ 680.337777] br0: port 2(vx0) entered blocking state [ 680.338167] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 685.861374] 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 ] [ 686.290867] br0: port 1(swp1) entered blocking state [ 686.291174] 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 ] [ 686.861140] 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 ] [ 687.288360] br0: port 1(swp1) entered blocking state [ 687.288662] 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 ] [ 688.079508] 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 ] [ 688.509713] vx0: left allmulticast mode [ 688.510099] vx0: left promiscuous mode [ 688.510541] br0: port 2(vx0) entered disabled state [ 688.511098] swp1: left allmulticast mode [ 688.511374] swp1: left promiscuous mode [ 688.511619] br0: port 1(swp1) entered disabled state [ 688.594270] vx0: left allmulticast mode [ 688.594550] vx0: left promiscuous mode [ 688.594835] br0: port 2(vx0) entered disabled state [ 688.595340] swp1: left allmulticast mode [ 688.595596] swp1: left promiscuous mode [ 688.595852] br0: port 1(swp1) entered disabled state [ 689.024318] veth0: renamed from veth1 [ 689.194207] br0: port 1(swp1) entered blocking state [ 689.194532] br0: port 1(swp1) entered disabled state [ 689.194833] swp1: entered allmulticast mode [ 689.195176] swp1: entered promiscuous mode [ 689.195479] br0: port 1(swp1) entered blocking state [ 689.195763] br0: port 1(swp1) entered forwarding state [ 689.230439] br0: port 2(vx0) entered blocking state [ 689.230749] br0: port 2(vx0) entered disabled state [ 689.231009] vx0: entered allmulticast mode [ 689.231312] vx0: entered promiscuous mode [ 689.231762] br0: port 2(vx0) entered blocking state [ 689.232041] br0: port 2(vx0) entered forwarding state [ 689.456889] br0: port 1(swp1) entered blocking state [ 689.457195] br0: port 1(swp1) entered disabled state [ 689.457501] swp1: entered allmulticast mode [ 689.457899] swp1: entered promiscuous mode [ 689.458249] br0: port 1(swp1) entered blocking state [ 689.458522] br0: port 1(swp1) entered forwarding state [ 689.491752] br0: port 2(vx0) entered blocking state [ 689.492058] br0: port 2(vx0) entered disabled state [ 689.492338] vx0: entered allmulticast mode [ 689.492643] vx0: entered promiscuous mode [ 689.492880] br0: port 2(vx0) entered blocking state [ 689.493156] 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 ] [ 695.188052] 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 ] [ 695.892076] br0: port 1(swp1) entered blocking state [ 695.892384] 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 ] [ 696.318886] 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 ] [ 697.040372] br0: port 1(swp1) entered blocking state [ 697.040671] 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 ] [ 698.432211] 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 ] [ 699.146605] vx0: left allmulticast mode [ 699.146877] vx0: left promiscuous mode [ 699.147136] br0: port 2(vx0) entered disabled state [ 699.147549] swp1: left allmulticast mode [ 699.147789] swp1: left promiscuous mode [ 699.148060] br0: port 1(swp1) entered disabled state [ 699.219275] vx0: left allmulticast mode [ 699.219530] vx0: left promiscuous mode [ 699.219821] br0: port 2(vx0) entered disabled state [ 699.220252] swp1: left allmulticast mode [ 699.220469] swp1: left promiscuous mode [ 699.220718] br0: port 1(swp1) entered disabled state [ 699.608303] veth0: renamed from veth1 [ 699.752573] br0: port 1(swp1) entered blocking state [ 699.752941] br0: port 1(swp1) entered disabled state [ 699.753359] swp1: entered allmulticast mode [ 699.753796] swp1: entered promiscuous mode [ 699.754168] br0: port 1(swp1) entered blocking state [ 699.754518] br0: port 1(swp1) entered forwarding state [ 699.781867] br0: port 2(vx0) entered blocking state [ 699.782165] br0: port 2(vx0) entered disabled state [ 699.782426] vx0: entered allmulticast mode [ 699.782700] vx0: entered promiscuous mode [ 699.782939] br0: port 2(vx0) entered blocking state [ 699.783206] br0: port 2(vx0) entered forwarding state [ 699.985657] br0: port 1(swp1) entered blocking state [ 699.986104] br0: port 1(swp1) entered disabled state [ 699.986501] swp1: entered allmulticast mode [ 699.986947] swp1: entered promiscuous mode [ 699.987377] br0: port 1(swp1) entered blocking state [ 699.987771] br0: port 1(swp1) entered forwarding state [ 700.022695] br0: port 2(vx0) entered blocking state [ 700.023093] br0: port 2(vx0) entered disabled state [ 700.023444] vx0: entered allmulticast mode [ 700.023822] vx0: entered promiscuous mode [ 700.024354] br0: port 2(vx0) entered blocking state [ 700.024695] 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 ] [ 705.456691] 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 ] [ 708.359145] vx0: left allmulticast mode [ 708.359522] vx0: left promiscuous mode [ 708.359843] br0: port 2(vx0) entered disabled state [ 708.360391] swp1: left allmulticast mode [ 708.360750] swp1: left promiscuous mode [ 708.361123] br0: port 1(swp1) entered disabled state [ 708.435338] vx0: left allmulticast mode [ 708.435654] vx0: left promiscuous mode [ 708.435951] br0: port 2(vx0) entered disabled state [ 708.436524] swp1: left allmulticast mode [ 708.437115] swp1: left promiscuous mode [ 708.437669] br0: port 1(swp1) entered disabled state [ 708.808618] veth0: renamed from veth1 [ 708.962015] br0: port 1(swp1) entered blocking state [ 708.962499] br0: port 1(swp1) entered disabled state [ 708.962923] swp1: entered allmulticast mode [ 708.963373] swp1: entered promiscuous mode [ 708.963768] br0: port 1(swp1) entered blocking state [ 708.964169] br0: port 1(swp1) entered forwarding state [ 708.996547] br0: port 2(vx0) entered blocking state [ 708.996943] br0: port 2(vx0) entered disabled state [ 708.997333] vx0: entered allmulticast mode [ 708.997752] vx0: entered promiscuous mode [ 708.998215] br0: port 2(vx0) entered blocking state [ 708.998567] br0: port 2(vx0) entered forwarding state [ 709.202608] br0: port 1(swp1) entered blocking state [ 709.203020] br0: port 1(swp1) entered disabled state [ 709.203429] swp1: entered allmulticast mode [ 709.203864] swp1: entered promiscuous mode [ 709.204272] br0: port 1(swp1) entered blocking state [ 709.204654] br0: port 1(swp1) entered forwarding state [ 709.240710] br0: port 2(vx0) entered blocking state [ 709.241169] br0: port 2(vx0) entered disabled state [ 709.241556] vx0: entered allmulticast mode [ 709.241986] vx0: entered promiscuous mode [ 709.242360] br0: port 2(vx0) entered blocking state [ 709.242738] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 714.614157] br0: port 1(swp1) entered disabled state [ 715.646197] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 721.731213] vx0: left allmulticast mode [ 721.731450] vx0: left promiscuous mode [ 721.731846] br0: port 2(vx0) entered disabled state [ 721.732383] swp1: left allmulticast mode [ 721.732614] swp1: left promiscuous mode [ 721.732828] br0: port 1(swp1) entered disabled state [ 721.802261] vx0: left allmulticast mode [ 721.802685] vx0: left promiscuous mode [ 721.803051] br0: port 2(vx0) entered disabled state [ 721.803654] swp1: left allmulticast mode [ 721.804003] swp1: left promiscuous mode [ 721.804403] br0: port 1(swp1) entered disabled state [ 722.195246] veth0: renamed from veth1 [ 722.365475] br0: port 1(swp1) entered blocking state [ 722.365780] br0: port 1(swp1) entered disabled state [ 722.366069] swp1: entered allmulticast mode [ 722.366366] swp1: entered promiscuous mode [ 722.366636] br0: port 1(swp1) entered blocking state [ 722.366895] br0: port 1(swp1) entered forwarding state [ 722.397683] br0: port 2(vx0) entered blocking state [ 722.398095] br0: port 2(vx0) entered disabled state [ 722.398460] vx0: entered allmulticast mode [ 722.398865] vx0: entered promiscuous mode [ 722.399259] br0: port 2(vx0) entered blocking state [ 722.399629] br0: port 2(vx0) entered forwarding state [ 722.605594] br0: port 1(swp1) entered blocking state [ 722.605906] br0: port 1(swp1) entered disabled state [ 722.606249] swp1: entered allmulticast mode [ 722.606554] swp1: entered promiscuous mode [ 722.606857] br0: port 1(swp1) entered blocking state [ 722.607127] br0: port 1(swp1) entered forwarding state [ 722.642243] br0: port 2(vx0) entered blocking state [ 722.642542] br0: port 2(vx0) entered disabled state [ 722.642841] vx0: entered allmulticast mode [ 722.643159] vx0: entered promiscuous mode [ 722.643403] br0: port 2(vx0) entered blocking state [ 722.643671] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 727.804655] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 757.837985] vx0: left allmulticast mode [ 757.838312] vx0: left promiscuous mode [ 757.838672] br0: port 2(vx0) entered disabled state [ 757.839161] swp1: left allmulticast mode [ 757.839374] swp1: left promiscuous mode [ 757.839596] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 757.921343] vx0: left allmulticast mode [ 757.921843] vx0: left promiscuous mode [ 757.922323] br0: port 2(vx0) entered disabled state [ 757.922833] swp1: left allmulticast mode [ 757.923303] swp1: left promiscuous mode [ 757.923827] 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__->