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.409534] veth0: renamed from veth1 [ 679.599532] br0: port 1(swp1) entered blocking state [ 679.599845] br0: port 1(swp1) entered disabled state [ 679.600183] swp1: entered allmulticast mode [ 679.600682] swp1: entered promiscuous mode [ 679.600999] br0: port 1(swp1) entered blocking state [ 679.601260] br0: port 1(swp1) entered forwarding state [ 679.639781] br0: port 2(vx0) entered blocking state [ 679.640084] br0: port 2(vx0) entered disabled state [ 679.640356] vx0: entered allmulticast mode [ 679.640641] vx0: entered promiscuous mode [ 679.640883] br0: port 2(vx0) entered blocking state [ 679.641139] br0: port 2(vx0) entered forwarding state [ 679.874513] br0: port 1(swp1) entered blocking state [ 679.874904] br0: port 1(swp1) entered disabled state [ 679.875193] swp1: entered allmulticast mode [ 679.875567] swp1: entered promiscuous mode [ 679.875858] br0: port 1(swp1) entered blocking state [ 679.876131] br0: port 1(swp1) entered forwarding state [ 679.911063] br0: port 2(vx0) entered blocking state [ 679.911396] br0: port 2(vx0) entered disabled state [ 679.911671] vx0: entered allmulticast mode [ 679.911965] vx0: entered promiscuous mode [ 679.912198] br0: port 2(vx0) entered blocking state [ 679.912472] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 685.451383] 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 ] [ 685.868847] br0: port 1(swp1) entered blocking state [ 685.869286] 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.453384] 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 ] [ 686.859960] br0: port 1(swp1) entered blocking state [ 686.860394] 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 ] [ 687.660170] 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.076028] vx0: left allmulticast mode [ 688.076322] vx0: left promiscuous mode [ 688.076684] br0: port 2(vx0) entered disabled state [ 688.077109] swp1: left allmulticast mode [ 688.077352] swp1: left promiscuous mode [ 688.077565] br0: port 1(swp1) entered disabled state [ 688.162628] vx0: left allmulticast mode [ 688.163188] vx0: left promiscuous mode [ 688.163738] br0: port 2(vx0) entered disabled state [ 688.164633] swp1: left allmulticast mode [ 688.165258] swp1: left promiscuous mode [ 688.165580] br0: port 1(swp1) entered disabled state [ 688.523544] veth0: renamed from veth1 [ 688.669520] br0: port 1(swp1) entered blocking state [ 688.669884] br0: port 1(swp1) entered disabled state [ 688.670180] swp1: entered allmulticast mode [ 688.670502] swp1: entered promiscuous mode [ 688.670793] br0: port 1(swp1) entered blocking state [ 688.671075] br0: port 1(swp1) entered forwarding state [ 688.702409] br0: port 2(vx0) entered blocking state [ 688.702823] br0: port 2(vx0) entered disabled state [ 688.703211] vx0: entered allmulticast mode [ 688.703732] vx0: entered promiscuous mode [ 688.704088] br0: port 2(vx0) entered blocking state [ 688.704488] br0: port 2(vx0) entered forwarding state [ 688.900302] br0: port 1(swp1) entered blocking state [ 688.900719] br0: port 1(swp1) entered disabled state [ 688.901122] swp1: entered allmulticast mode [ 688.901578] swp1: entered promiscuous mode [ 688.901988] br0: port 1(swp1) entered blocking state [ 688.902383] br0: port 1(swp1) entered forwarding state [ 688.934350] br0: port 2(vx0) entered blocking state [ 688.934790] br0: port 2(vx0) entered disabled state [ 688.935183] vx0: entered allmulticast mode [ 688.935680] vx0: entered promiscuous mode [ 688.936039] br0: port 2(vx0) entered blocking state [ 688.936439] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID # ----------------- [ 694.189382] tc (31617) used greatest stack depth: 11680 bytes left # TEST: vx0 configured as backup port of swp1 [ OK ] # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 694.595616] 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.316621] br0: port 1(swp1) entered blocking state [ 695.317037] 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 ] [ 695.754489] 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 ] [ 696.451337] br0: port 1(swp1) entered blocking state [ 696.451634] 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 ] [ 697.880839] 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 ] [ 698.582865] vx0: left allmulticast mode [ 698.583245] vx0: left promiscuous mode [ 698.583652] br0: port 2(vx0) entered disabled state [ 698.584632] swp1: left allmulticast mode [ 698.584919] swp1: left promiscuous mode [ 698.585524] br0: port 1(swp1) entered disabled state [ 698.670704] vx0: left allmulticast mode [ 698.670946] vx0: left promiscuous mode [ 698.671266] br0: port 2(vx0) entered disabled state [ 698.671829] swp1: left allmulticast mode [ 698.672081] swp1: left promiscuous mode [ 698.672366] br0: port 1(swp1) entered disabled state [ 699.037713] veth0: renamed from veth1 [ 699.178591] br0: port 1(swp1) entered blocking state [ 699.178977] br0: port 1(swp1) entered disabled state [ 699.179328] swp1: entered allmulticast mode [ 699.179713] swp1: entered promiscuous mode [ 699.180066] br0: port 1(swp1) entered blocking state [ 699.180416] br0: port 1(swp1) entered forwarding state [ 699.208196] br0: port 2(vx0) entered blocking state [ 699.208560] br0: port 2(vx0) entered disabled state [ 699.208847] vx0: entered allmulticast mode [ 699.209130] vx0: entered promiscuous mode [ 699.209367] br0: port 2(vx0) entered blocking state [ 699.209631] br0: port 2(vx0) entered forwarding state [ 699.386103] br0: port 1(swp1) entered blocking state [ 699.386551] br0: port 1(swp1) entered disabled state [ 699.386897] swp1: entered allmulticast mode [ 699.387193] swp1: entered promiscuous mode [ 699.387563] br0: port 1(swp1) entered blocking state [ 699.387828] br0: port 1(swp1) entered forwarding state [ 699.416160] br0: port 2(vx0) entered blocking state [ 699.416470] br0: port 2(vx0) entered disabled state [ 699.416767] vx0: entered allmulticast mode [ 699.417071] vx0: entered promiscuous mode [ 699.417311] br0: port 2(vx0) entered blocking state [ 699.417568] 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 ] [ 704.757833] 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 ] [ 707.723108] vx0: left allmulticast mode [ 707.723378] vx0: left promiscuous mode [ 707.723617] br0: port 2(vx0) entered disabled state [ 707.724212] swp1: left allmulticast mode [ 707.724457] swp1: left promiscuous mode [ 707.724688] br0: port 1(swp1) entered disabled state [ 707.812453] vx0: left allmulticast mode [ 707.812691] vx0: left promiscuous mode [ 707.812944] br0: port 2(vx0) entered disabled state [ 707.813385] swp1: left allmulticast mode [ 707.813618] swp1: left promiscuous mode [ 707.813872] br0: port 1(swp1) entered disabled state [ 708.184534] veth0: renamed from veth1 [ 708.327334] br0: port 1(swp1) entered blocking state [ 708.327646] br0: port 1(swp1) entered disabled state [ 708.327936] swp1: entered allmulticast mode [ 708.328249] swp1: entered promiscuous mode [ 708.328563] br0: port 1(swp1) entered blocking state [ 708.328839] br0: port 1(swp1) entered forwarding state [ 708.358418] br0: port 2(vx0) entered blocking state [ 708.358724] br0: port 2(vx0) entered disabled state [ 708.358985] vx0: entered allmulticast mode [ 708.359268] vx0: entered promiscuous mode [ 708.359519] br0: port 2(vx0) entered blocking state [ 708.359782] br0: port 2(vx0) entered forwarding state [ 708.555181] br0: port 1(swp1) entered blocking state [ 708.555532] br0: port 1(swp1) entered disabled state [ 708.555809] swp1: entered allmulticast mode [ 708.556137] swp1: entered promiscuous mode [ 708.556435] br0: port 1(swp1) entered blocking state [ 708.556708] br0: port 1(swp1) entered forwarding state [ 708.584321] br0: port 2(vx0) entered blocking state [ 708.584626] br0: port 2(vx0) entered disabled state [ 708.584888] vx0: entered allmulticast mode [ 708.585163] vx0: entered promiscuous mode [ 708.585412] br0: port 2(vx0) entered blocking state [ 708.585677] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 713.899859] br0: port 1(swp1) entered disabled state [ 714.901377] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 720.984249] vx0: left allmulticast mode [ 720.984664] vx0: left promiscuous mode [ 720.985003] br0: port 2(vx0) entered disabled state [ 720.985491] swp1: left allmulticast mode [ 720.985713] swp1: left promiscuous mode [ 720.985940] br0: port 1(swp1) entered disabled state [ 721.077538] vx0: left allmulticast mode [ 721.077826] vx0: left promiscuous mode [ 721.078096] br0: port 2(vx0) entered disabled state [ 721.078548] swp1: left allmulticast mode [ 721.078786] swp1: left promiscuous mode [ 721.079077] br0: port 1(swp1) entered disabled state [ 721.487529] veth0: renamed from veth1 [ 721.634600] br0: port 1(swp1) entered blocking state [ 721.635008] br0: port 1(swp1) entered disabled state [ 721.635409] swp1: entered allmulticast mode [ 721.635827] swp1: entered promiscuous mode [ 721.636207] br0: port 1(swp1) entered blocking state [ 721.636586] br0: port 1(swp1) entered forwarding state [ 721.667503] br0: port 2(vx0) entered blocking state [ 721.667855] br0: port 2(vx0) entered disabled state [ 721.668191] vx0: entered allmulticast mode [ 721.668553] vx0: entered promiscuous mode [ 721.668790] br0: port 2(vx0) entered blocking state [ 721.669119] br0: port 2(vx0) entered forwarding state [ 721.877089] br0: port 1(swp1) entered blocking state [ 721.877408] br0: port 1(swp1) entered disabled state [ 721.877730] swp1: entered allmulticast mode [ 721.878050] swp1: entered promiscuous mode [ 721.878337] br0: port 1(swp1) entered blocking state [ 721.878627] br0: port 1(swp1) entered forwarding state [ 721.915712] br0: port 2(vx0) entered blocking state [ 721.916018] br0: port 2(vx0) entered disabled state [ 721.916296] vx0: entered allmulticast mode [ 721.916587] vx0: entered promiscuous mode [ 721.916837] br0: port 2(vx0) entered blocking state [ 721.917100] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 727.088097] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 757.125959] vx0: left allmulticast mode [ 757.126282] vx0: left promiscuous mode [ 757.126852] br0: port 2(vx0) entered disabled state [ 757.127436] swp1: left allmulticast mode [ 757.127664] swp1: left promiscuous mode [ 757.127892] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 757.221555] vx0: left allmulticast mode [ 757.221848] vx0: left promiscuous mode [ 757.222194] br0: port 2(vx0) entered disabled state [ 757.222803] swp1: left allmulticast mode [ 757.223026] swp1: left promiscuous mode [ 757.223252] 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__->