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 [ 639.267374] veth0: renamed from veth1 [ 639.403414] br0: port 1(swp1) entered blocking state [ 639.403717] br0: port 1(swp1) entered disabled state [ 639.404000] swp1: entered allmulticast mode [ 639.404360] swp1: entered promiscuous mode [ 639.404654] br0: port 1(swp1) entered blocking state [ 639.404922] br0: port 1(swp1) entered forwarding state [ 639.431300] br0: port 2(vx0) entered blocking state [ 639.431723] br0: port 2(vx0) entered disabled state [ 639.432123] vx0: entered allmulticast mode [ 639.432653] vx0: entered promiscuous mode [ 639.433015] br0: port 2(vx0) entered blocking state [ 639.433412] br0: port 2(vx0) entered forwarding state [ 639.589293] br0: port 1(swp1) entered blocking state [ 639.589686] br0: port 1(swp1) entered disabled state [ 639.590043] swp1: entered allmulticast mode [ 639.590464] swp1: entered promiscuous mode [ 639.590804] br0: port 1(swp1) entered blocking state [ 639.591181] br0: port 1(swp1) entered forwarding state [ 639.612992] br0: port 2(vx0) entered blocking state [ 639.613303] br0: port 2(vx0) entered disabled state [ 639.613569] vx0: entered allmulticast mode [ 639.613854] vx0: entered promiscuous mode [ 639.614257] br0: port 2(vx0) entered blocking state [ 639.614541] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 645.078376] 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 ] [ 645.433377] br0: port 1(swp1) entered blocking state [ 645.433710] 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 ] [ 646.085381] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 646.128656] br0: port 1(swp1) entered blocking state [ 646.128969] 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] [ 647.093298] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of vx0 [ OK ] [ 647.201343] vx0: left allmulticast mode [ 647.201805] vx0: left promiscuous mode [ 647.202177] br0: port 2(vx0) entered disabled state [ 647.208296] swp1: left allmulticast mode [ 647.208609] swp1: left promiscuous mode [ 647.208909] br0: port 1(swp1) entered disabled state [ 647.340495] vx0: left allmulticast mode [ 647.340747] vx0: left promiscuous mode [ 647.340972] br0: port 2(vx0) entered disabled state [ 647.352279] swp1: left allmulticast mode [ 647.352767] swp1: left promiscuous mode [ 647.353320] br0: port 1(swp1) entered disabled state [ 647.556360] veth0: renamed from veth1 [ 647.676097] br0: port 1(swp1) entered blocking state [ 647.676460] br0: port 1(swp1) entered disabled state [ 647.676757] swp1: entered allmulticast mode [ 647.677056] swp1: entered promiscuous mode [ 647.677341] br0: port 1(swp1) entered blocking state [ 647.677612] br0: port 1(swp1) entered forwarding state [ 647.700125] br0: port 2(vx0) entered blocking state [ 647.700437] br0: port 2(vx0) entered disabled state [ 647.700706] vx0: entered allmulticast mode [ 647.701005] vx0: entered promiscuous mode [ 647.701249] br0: port 2(vx0) entered blocking state [ 647.701520] br0: port 2(vx0) entered forwarding state [ 647.850971] br0: port 1(swp1) entered blocking state [ 647.851302] br0: port 1(swp1) entered disabled state [ 647.851580] swp1: entered allmulticast mode [ 647.851877] swp1: entered promiscuous mode [ 647.852203] br0: port 1(swp1) entered blocking state [ 647.852480] br0: port 1(swp1) entered forwarding state [ 647.876337] br0: port 2(vx0) entered blocking state [ 647.876765] br0: port 2(vx0) entered disabled state [ 647.877140] vx0: entered allmulticast mode [ 647.877574] vx0: entered promiscuous mode [ 647.877912] br0: port 2(vx0) entered blocking state [ 647.878198] 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 ] [ 653.436217] 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 ] [ 654.047589] br0: port 1(swp1) entered blocking state [ 654.047885] 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 ] [ 654.436250] 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 [ 655.014527] br0: port 1(swp1) entered blocking state [ 655.014833] br0: port 1(swp1) entered forwarding state entry [ OK ] # 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 ] [ 656.265591] 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 ] [ 656.945372] vx0: left allmulticast mode [ 656.945673] vx0: left promiscuous mode [ 656.945996] br0: port 2(vx0) entered disabled state [ 656.957310] swp1: left allmulticast mode [ 656.957612] swp1: left promiscuous mode [ 656.957917] br0: port 1(swp1) entered disabled state [ 657.094470] vx0: left allmulticast mode [ 657.094825] vx0: left promiscuous mode [ 657.095183] br0: port 2(vx0) entered disabled state [ 657.108345] swp1: left allmulticast mode [ 657.108715] swp1: left promiscuous mode [ 657.109067] br0: port 1(swp1) entered disabled state [ 657.325403] veth0: renamed from veth1 [ 657.444573] br0: port 1(swp1) entered blocking state [ 657.444881] br0: port 1(swp1) entered disabled state [ 657.445173] swp1: entered allmulticast mode [ 657.445471] swp1: entered promiscuous mode [ 657.445746] br0: port 1(swp1) entered blocking state [ 657.446018] br0: port 1(swp1) entered forwarding state [ 657.468274] br0: port 2(vx0) entered blocking state [ 657.468655] br0: port 2(vx0) entered disabled state [ 657.469026] vx0: entered allmulticast mode [ 657.469499] vx0: entered promiscuous mode [ 657.469745] br0: port 2(vx0) entered blocking state [ 657.470009] br0: port 2(vx0) entered forwarding state [ 657.609507] br0: port 1(swp1) entered blocking state [ 657.609850] br0: port 1(swp1) entered disabled state [ 657.610171] swp1: entered allmulticast mode [ 657.610490] swp1: entered promiscuous mode [ 657.610785] br0: port 1(swp1) entered blocking state [ 657.611102] br0: port 1(swp1) entered forwarding state [ 657.633979] br0: port 2(vx0) entered blocking state [ 657.634351] br0: port 2(vx0) entered disabled state [ 657.634637] vx0: entered allmulticast mode [ 657.634928] vx0: entered promiscuous mode [ 657.635182] br0: port 2(vx0) entered blocking state [ 657.635450] 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 ] [ 662.936008] 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 ] [ 665.740319] vx0: left allmulticast mode [ 665.740583] vx0: left promiscuous mode [ 665.740842] br0: port 2(vx0) entered disabled state [ 665.756279] swp1: left allmulticast mode [ 665.756555] swp1: left promiscuous mode [ 665.756811] br0: port 1(swp1) entered disabled state [ 665.888320] vx0: left allmulticast mode [ 665.888587] vx0: left promiscuous mode [ 665.888854] br0: port 2(vx0) entered disabled state [ 665.896286] swp1: left allmulticast mode [ 665.896628] swp1: left promiscuous mode [ 665.896913] br0: port 1(swp1) entered disabled state [ 666.102365] veth0: renamed from veth1 [ 666.224621] br0: port 1(swp1) entered blocking state [ 666.225058] br0: port 1(swp1) entered disabled state [ 666.225554] swp1: entered allmulticast mode [ 666.225976] swp1: entered promiscuous mode [ 666.226397] br0: port 1(swp1) entered blocking state [ 666.226760] br0: port 1(swp1) entered forwarding state [ 666.250718] br0: port 2(vx0) entered blocking state [ 666.251142] br0: port 2(vx0) entered disabled state [ 666.251740] vx0: entered allmulticast mode [ 666.252188] vx0: entered promiscuous mode [ 666.252532] br0: port 2(vx0) entered blocking state [ 666.252912] br0: port 2(vx0) entered forwarding state [ 666.397194] br0: port 1(swp1) entered blocking state [ 666.397500] br0: port 1(swp1) entered disabled state [ 666.397775] swp1: entered allmulticast mode [ 666.398074] swp1: entered promiscuous mode [ 666.398355] br0: port 1(swp1) entered blocking state [ 666.398623] br0: port 1(swp1) entered forwarding state [ 666.419744] br0: port 2(vx0) entered blocking state [ 666.420043] br0: port 2(vx0) entered disabled state [ 666.420383] vx0: entered allmulticast mode [ 666.420675] vx0: entered promiscuous mode [ 666.420915] br0: port 2(vx0) entered blocking state [ 666.421186] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 671.692265] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 672.741269] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 677.772401] vx0: left allmulticast mode [ 677.772667] vx0: left promiscuous mode [ 677.772901] br0: port 2(vx0) entered disabled state [ 677.784381] swp1: left allmulticast mode [ 677.784751] swp1: left promiscuous mode [ 677.785109] br0: port 1(swp1) entered disabled state [ 677.911424] vx0: left allmulticast mode [ 677.911728] vx0: left promiscuous mode [ 677.911997] br0: port 2(vx0) entered disabled state [ 677.923287] swp1: left allmulticast mode [ 677.923535] swp1: left promiscuous mode [ 677.923756] br0: port 1(swp1) entered disabled state [ 678.127387] veth0: renamed from veth1 [ 678.248252] br0: port 1(swp1) entered blocking state [ 678.248682] br0: port 1(swp1) entered disabled state [ 678.249087] swp1: entered allmulticast mode [ 678.249544] swp1: entered promiscuous mode [ 678.249947] br0: port 1(swp1) entered blocking state [ 678.250344] br0: port 1(swp1) entered forwarding state [ 678.275395] br0: port 2(vx0) entered blocking state [ 678.275829] br0: port 2(vx0) entered disabled state [ 678.276258] vx0: entered allmulticast mode [ 678.276698] vx0: entered promiscuous mode [ 678.277050] br0: port 2(vx0) entered blocking state [ 678.277459] br0: port 2(vx0) entered forwarding state [ 678.430215] br0: port 1(swp1) entered blocking state [ 678.430525] br0: port 1(swp1) entered disabled state [ 678.430808] swp1: entered allmulticast mode [ 678.431105] swp1: entered promiscuous mode [ 678.431457] br0: port 1(swp1) entered blocking state [ 678.431730] br0: port 1(swp1) entered forwarding state [ 678.454876] br0: port 2(vx0) entered blocking state [ 678.455297] br0: port 2(vx0) entered disabled state [ 678.455681] vx0: entered allmulticast mode [ 678.456074] vx0: entered promiscuous mode [ 678.456378] br0: port 2(vx0) entered blocking state [ 678.456723] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 683.582765] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] # # Tests passed: 82 # Tests failed: 1 [ 713.683349] vx0: left allmulticast mode [ 713.683627] vx0: left promiscuous mode [ 713.683881] br0: port 2(vx0) entered disabled state [ 713.698305] swp1: left allmulticast mode [ 713.698569] swp1: left promiscuous mode [ 713.698823] 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__->