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 4800 # selftests: net: test_bridge_backup_port.sh [ 634.218023] veth0: renamed from veth1 [ 634.336258] br0: port 1(swp1) entered blocking state [ 634.336569] br0: port 1(swp1) entered disabled state [ 634.336867] swp1: entered allmulticast mode [ 634.337172] swp1: entered promiscuous mode [ 634.337449] br0: port 1(swp1) entered blocking state [ 634.337726] br0: port 1(swp1) entered forwarding state [ 634.359611] br0: port 2(vx0) entered blocking state [ 634.359924] br0: port 2(vx0) entered disabled state [ 634.360197] vx0: entered allmulticast mode [ 634.360484] vx0: entered promiscuous mode [ 634.360907] br0: port 2(vx0) entered blocking state [ 634.361186] br0: port 2(vx0) entered forwarding state [ 634.512833] br0: port 1(swp1) entered blocking state [ 634.513146] br0: port 1(swp1) entered disabled state [ 634.513438] swp1: entered allmulticast mode [ 634.513745] swp1: entered promiscuous mode [ 634.514041] br0: port 1(swp1) entered blocking state [ 634.514319] br0: port 1(swp1) entered forwarding state [ 634.539131] br0: port 2(vx0) entered blocking state [ 634.539440] br0: port 2(vx0) entered disabled state [ 634.539714] vx0: entered allmulticast mode [ 634.540068] vx0: entered promiscuous mode [ 634.540304] br0: port 2(vx0) entered blocking state [ 634.540573] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 639.984792] 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 ] [ 640.317200] br0: port 1(swp1) entered blocking state [ 640.317517] 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 ] [ 640.987916] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 641.015429] br0: port 1(swp1) entered blocking state [ 641.015758] 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 ] # TEST: No forwarding out of swp1 [FAIL] [ 641.995910] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of vx0 [ OK ] [ 642.078991] vx0: left allmulticast mode [ 642.079378] vx0: left promiscuous mode [ 642.079770] br0: port 2(vx0) entered disabled state [ 642.084944] swp1: left allmulticast mode [ 642.085354] swp1: left promiscuous mode [ 642.085619] br0: port 1(swp1) entered disabled state [ 642.204990] vx0: left allmulticast mode [ 642.205242] vx0: left promiscuous mode [ 642.205469] br0: port 2(vx0) entered disabled state [ 642.213042] swp1: left allmulticast mode [ 642.213315] swp1: left promiscuous mode [ 642.213541] br0: port 1(swp1) entered disabled state [ 642.406071] veth0: renamed from veth1 [ 642.519047] br0: port 1(swp1) entered blocking state [ 642.519414] br0: port 1(swp1) entered disabled state [ 642.519741] swp1: entered allmulticast mode [ 642.520065] swp1: entered promiscuous mode [ 642.520362] br0: port 1(swp1) entered blocking state [ 642.520667] br0: port 1(swp1) entered forwarding state [ 642.543312] br0: port 2(vx0) entered blocking state [ 642.543618] br0: port 2(vx0) entered disabled state [ 642.543904] vx0: entered allmulticast mode [ 642.544249] vx0: entered promiscuous mode [ 642.544535] br0: port 2(vx0) entered blocking state [ 642.544807] br0: port 2(vx0) entered forwarding state [ 642.684372] br0: port 1(swp1) entered blocking state [ 642.684743] br0: port 1(swp1) entered disabled state [ 642.685113] swp1: entered allmulticast mode [ 642.685435] swp1: entered promiscuous mode [ 642.685730] br0: port 1(swp1) entered blocking state [ 642.686020] br0: port 1(swp1) entered forwarding state [ 642.708243] br0: port 2(vx0) entered blocking state [ 642.708606] br0: port 2(vx0) entered disabled state [ 642.708966] vx0: entered allmulticast mode [ 642.709281] vx0: entered promiscuous mode [ 642.709559] br0: port 2(vx0) entered blocking state [ 642.709864] 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 ] [ 648.271198] 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 ] [ 648.892438] br0: port 1(swp1) entered blocking state [ 648.892743] 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 ] # TEST: swp1 carrier off [ OK ] [ 649.270943] br0: port 1(swp1) entered disabled state # 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 ] [ 649.872352] br0: port 1(swp1) entered blocking state [ 649.872671] 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 ] [ 651.112769] 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 ] [ 651.770983] vx0: left allmulticast mode [ 651.771277] vx0: left promiscuous mode [ 651.771589] br0: port 2(vx0) entered disabled state [ 651.778928] swp1: left allmulticast mode [ 651.779413] swp1: left promiscuous mode [ 651.779814] br0: port 1(swp1) entered disabled state [ 651.930971] vx0: left allmulticast mode [ 651.931356] vx0: left promiscuous mode [ 651.931582] br0: port 2(vx0) entered disabled state [ 651.940929] swp1: left allmulticast mode [ 651.941173] swp1: left promiscuous mode [ 651.941405] br0: port 1(swp1) entered disabled state [ 652.127987] veth0: renamed from veth1 [ 652.241118] br0: port 1(swp1) entered blocking state [ 652.241427] br0: port 1(swp1) entered disabled state [ 652.241708] swp1: entered allmulticast mode [ 652.242028] swp1: entered promiscuous mode [ 652.242303] br0: port 1(swp1) entered blocking state [ 652.242586] br0: port 1(swp1) entered forwarding state [ 652.263403] br0: port 2(vx0) entered blocking state [ 652.263697] br0: port 2(vx0) entered disabled state [ 652.263989] vx0: entered allmulticast mode [ 652.264283] vx0: entered promiscuous mode [ 652.264538] br0: port 2(vx0) entered blocking state [ 652.264809] br0: port 2(vx0) entered forwarding state [ 652.410454] br0: port 1(swp1) entered blocking state [ 652.410791] br0: port 1(swp1) entered disabled state [ 652.411082] swp1: entered allmulticast mode [ 652.411381] swp1: entered promiscuous mode [ 652.411657] br0: port 1(swp1) entered blocking state [ 652.411934] br0: port 1(swp1) entered forwarding state [ 652.435805] br0: port 2(vx0) entered blocking state [ 652.436153] br0: port 2(vx0) entered disabled state [ 652.436438] vx0: entered allmulticast mode [ 652.436729] vx0: entered promiscuous mode [ 652.436982] br0: port 2(vx0) entered blocking state [ 652.437251] 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 ] [ 657.731436] 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 ] [ 660.456952] vx0: left allmulticast mode [ 660.457203] vx0: left promiscuous mode [ 660.457423] br0: port 2(vx0) entered disabled state [ 660.465991] swp1: left allmulticast mode [ 660.466254] swp1: left promiscuous mode [ 660.466490] br0: port 1(swp1) entered disabled state [ 660.583043] vx0: left allmulticast mode [ 660.583332] vx0: left promiscuous mode [ 660.583606] br0: port 2(vx0) entered disabled state [ 660.598949] swp1: left allmulticast mode [ 660.599236] swp1: left promiscuous mode [ 660.599483] br0: port 1(swp1) entered disabled state [ 660.781038] veth0: renamed from veth1 [ 660.884709] br0: port 1(swp1) entered blocking state [ 660.885031] br0: port 1(swp1) entered disabled state [ 660.885327] swp1: entered allmulticast mode [ 660.885639] swp1: entered promiscuous mode [ 660.885925] br0: port 1(swp1) entered blocking state [ 660.886197] br0: port 1(swp1) entered forwarding state [ 660.906072] br0: port 2(vx0) entered blocking state [ 660.906375] br0: port 2(vx0) entered disabled state [ 660.906649] vx0: entered allmulticast mode [ 660.906993] vx0: entered promiscuous mode [ 660.907233] br0: port 2(vx0) entered blocking state [ 660.907509] br0: port 2(vx0) entered forwarding state [ 661.032770] br0: port 1(swp1) entered blocking state [ 661.033100] br0: port 1(swp1) entered disabled state [ 661.033392] swp1: entered allmulticast mode [ 661.033700] swp1: entered promiscuous mode [ 661.034046] br0: port 1(swp1) entered blocking state [ 661.034319] br0: port 1(swp1) entered forwarding state [ 661.054665] br0: port 2(vx0) entered blocking state [ 661.055006] br0: port 2(vx0) entered disabled state [ 661.055284] vx0: entered allmulticast mode [ 661.055578] vx0: entered promiscuous mode [ 661.055838] br0: port 2(vx0) entered blocking state [ 661.056125] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 666.321353] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 667.322996] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 672.391991] vx0: left allmulticast mode [ 672.392302] vx0: left promiscuous mode [ 672.392651] br0: port 2(vx0) entered disabled state [ 672.399947] swp1: left allmulticast mode [ 672.400233] swp1: left promiscuous mode [ 672.400484] br0: port 1(swp1) entered disabled state [ 672.560019] vx0: left allmulticast mode [ 672.560414] vx0: left promiscuous mode [ 672.560772] br0: port 2(vx0) entered disabled state [ 672.578042] swp1: left allmulticast mode [ 672.578434] swp1: left promiscuous mode [ 672.578733] br0: port 1(swp1) entered disabled state [ 672.709003] veth0: renamed from veth1 [ 672.814530] br0: port 1(swp1) entered blocking state [ 672.814846] br0: port 1(swp1) entered disabled state [ 672.815143] swp1: entered allmulticast mode [ 672.815438] swp1: entered promiscuous mode [ 672.815718] br0: port 1(swp1) entered blocking state [ 672.816018] br0: port 1(swp1) entered forwarding state [ 672.835848] br0: port 2(vx0) entered blocking state [ 672.836149] br0: port 2(vx0) entered disabled state [ 672.836435] vx0: entered allmulticast mode [ 672.836734] vx0: entered promiscuous mode [ 672.837005] br0: port 2(vx0) entered blocking state [ 672.837288] br0: port 2(vx0) entered forwarding state [ 672.963902] br0: port 1(swp1) entered blocking state [ 672.964213] br0: port 1(swp1) entered disabled state [ 672.964498] swp1: entered allmulticast mode [ 672.964802] swp1: entered promiscuous mode [ 672.965162] br0: port 1(swp1) entered blocking state [ 672.965443] br0: port 1(swp1) entered forwarding state [ 672.985168] br0: port 2(vx0) entered blocking state [ 672.985473] br0: port 2(vx0) entered disabled state [ 672.985748] vx0: entered allmulticast mode [ 672.986050] vx0: entered promiscuous mode [ 672.986302] br0: port 2(vx0) entered blocking state [ 672.986581] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 678.108314] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] # # Tests passed: 82 # Tests failed: 1 [ 708.205965] vx0: left allmulticast mode [ 708.206212] vx0: left promiscuous mode [ 708.206437] br0: port 2(vx0) entered disabled state [ 708.213978] swp1: left allmulticast mode [ 708.214227] swp1: left promiscuous mode [ 708.214467] 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__->