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 [ 677.308135] veth0: renamed from veth1 [ 677.473955] br0: port 1(swp1) entered blocking state [ 677.474392] br0: port 1(swp1) entered disabled state [ 677.474827] swp1: entered allmulticast mode [ 677.475274] swp1: entered promiscuous mode [ 677.475798] br0: port 1(swp1) entered blocking state [ 677.476178] br0: port 1(swp1) entered forwarding state [ 677.506593] br0: port 2(vx0) entered blocking state [ 677.506886] br0: port 2(vx0) entered disabled state [ 677.507149] vx0: entered allmulticast mode [ 677.507434] vx0: entered promiscuous mode [ 677.507983] br0: port 2(vx0) entered blocking state [ 677.508245] br0: port 2(vx0) entered forwarding state [ 677.711080] br0: port 1(swp1) entered blocking state [ 677.711397] br0: port 1(swp1) entered disabled state [ 677.711793] swp1: entered allmulticast mode [ 677.712108] swp1: entered promiscuous mode [ 677.712399] br0: port 1(swp1) entered blocking state [ 677.712683] br0: port 1(swp1) entered forwarding state [ 677.743106] br0: port 2(vx0) entered blocking state [ 677.743400] br0: port 2(vx0) entered disabled state [ 677.743675] vx0: entered allmulticast mode [ 677.743958] vx0: entered promiscuous mode [ 677.744198] br0: port 2(vx0) entered blocking state [ 677.744454] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 683.258100] 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 ] [ 683.677943] br0: port 1(swp1) entered blocking state [ 683.678288] 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 ] [ 684.262538] 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 ] [ 684.671295] br0: port 1(swp1) entered blocking state [ 684.671618] 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 ] [ 685.470130] 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.882421] vx0: left allmulticast mode [ 685.882722] vx0: left promiscuous mode [ 685.883047] br0: port 2(vx0) entered disabled state [ 685.883654] swp1: left allmulticast mode [ 685.883989] swp1: left promiscuous mode [ 685.884290] br0: port 1(swp1) entered disabled state [ 685.961720] vx0: left allmulticast mode [ 685.961973] vx0: left promiscuous mode [ 685.962194] br0: port 2(vx0) entered disabled state [ 685.962655] swp1: left allmulticast mode [ 685.962880] swp1: left promiscuous mode [ 685.963095] br0: port 1(swp1) entered disabled state [ 686.378696] veth0: renamed from veth1 [ 686.558225] br0: port 1(swp1) entered blocking state [ 686.558652] br0: port 1(swp1) entered disabled state [ 686.559052] swp1: entered allmulticast mode [ 686.559500] swp1: entered promiscuous mode [ 686.559892] br0: port 1(swp1) entered blocking state [ 686.560284] br0: port 1(swp1) entered forwarding state [ 686.593921] br0: port 2(vx0) entered blocking state [ 686.594351] br0: port 2(vx0) entered disabled state [ 686.594845] vx0: entered allmulticast mode [ 686.595322] vx0: entered promiscuous mode [ 686.595759] br0: port 2(vx0) entered blocking state [ 686.596152] br0: port 2(vx0) entered forwarding state [ 686.808363] br0: port 1(swp1) entered blocking state [ 686.808710] br0: port 1(swp1) entered disabled state [ 686.808985] swp1: entered allmulticast mode [ 686.809286] swp1: entered promiscuous mode [ 686.809565] br0: port 1(swp1) entered blocking state [ 686.809832] br0: port 1(swp1) entered forwarding state [ 686.844449] br0: port 2(vx0) entered blocking state [ 686.844968] br0: port 2(vx0) entered disabled state [ 686.845247] vx0: entered allmulticast mode [ 686.845645] vx0: entered promiscuous mode [ 686.845904] br0: port 2(vx0) entered blocking state [ 686.846179] 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 ] [ 692.549429] 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 ] [ 693.262104] br0: port 1(swp1) entered blocking state [ 693.262430] 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 ] [ 693.707566] 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 ] [ 694.447161] br0: port 1(swp1) entered blocking state [ 694.447496] 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 ] [ 695.848148] 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 ] [ 696.563417] vx0: left allmulticast mode [ 696.563823] vx0: left promiscuous mode [ 696.564179] br0: port 2(vx0) entered disabled state [ 696.564848] swp1: left allmulticast mode [ 696.565204] swp1: left promiscuous mode [ 696.565535] br0: port 1(swp1) entered disabled state [ 696.646739] vx0: left allmulticast mode [ 696.647175] vx0: left promiscuous mode [ 696.647606] br0: port 2(vx0) entered disabled state [ 696.648336] swp1: left allmulticast mode [ 696.648805] swp1: left promiscuous mode [ 696.649274] br0: port 1(swp1) entered disabled state [ 697.061752] veth0: renamed from veth1 [ 697.225285] br0: port 1(swp1) entered blocking state [ 697.225667] br0: port 1(swp1) entered disabled state [ 697.225952] swp1: entered allmulticast mode [ 697.226280] swp1: entered promiscuous mode [ 697.226577] br0: port 1(swp1) entered blocking state [ 697.226849] br0: port 1(swp1) entered forwarding state [ 697.257238] br0: port 2(vx0) entered blocking state [ 697.257613] br0: port 2(vx0) entered disabled state [ 697.257940] vx0: entered allmulticast mode [ 697.258227] vx0: entered promiscuous mode [ 697.258469] br0: port 2(vx0) entered blocking state [ 697.258769] br0: port 2(vx0) entered forwarding state [ 697.462653] br0: port 1(swp1) entered blocking state [ 697.463084] br0: port 1(swp1) entered disabled state [ 697.463506] swp1: entered allmulticast mode [ 697.463962] swp1: entered promiscuous mode [ 697.464373] br0: port 1(swp1) entered blocking state [ 697.464704] br0: port 1(swp1) entered forwarding state [ 697.497623] br0: port 2(vx0) entered blocking state [ 697.497933] br0: port 2(vx0) entered disabled state [ 697.498214] vx0: entered allmulticast mode [ 697.498542] vx0: entered promiscuous mode [ 697.498788] br0: port 2(vx0) entered blocking state [ 697.499068] 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 ] [ 702.909991] 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 ] [ 705.909947] vx0: left allmulticast mode [ 705.910571] vx0: left promiscuous mode [ 705.910923] br0: port 2(vx0) entered disabled state [ 705.911540] swp1: left allmulticast mode [ 705.911835] swp1: left promiscuous mode [ 705.912138] br0: port 1(swp1) entered disabled state [ 705.973752] vx0: left allmulticast mode [ 705.974013] vx0: left promiscuous mode [ 705.974359] br0: port 2(vx0) entered disabled state [ 705.975005] swp1: left allmulticast mode [ 705.975329] swp1: left promiscuous mode [ 705.975551] br0: port 1(swp1) entered disabled state [ 706.409770] veth0: renamed from veth1 [ 706.568861] br0: port 1(swp1) entered blocking state [ 706.569162] br0: port 1(swp1) entered disabled state [ 706.569439] swp1: entered allmulticast mode [ 706.569754] swp1: entered promiscuous mode [ 706.570029] br0: port 1(swp1) entered blocking state [ 706.570293] br0: port 1(swp1) entered forwarding state [ 706.600342] br0: port 2(vx0) entered blocking state [ 706.600701] br0: port 2(vx0) entered disabled state [ 706.600968] vx0: entered allmulticast mode [ 706.601270] vx0: entered promiscuous mode [ 706.601531] br0: port 2(vx0) entered blocking state [ 706.601801] br0: port 2(vx0) entered forwarding state [ 706.800116] br0: port 1(swp1) entered blocking state [ 706.800418] br0: port 1(swp1) entered disabled state [ 706.800717] swp1: entered allmulticast mode [ 706.801042] swp1: entered promiscuous mode [ 706.801344] br0: port 1(swp1) entered blocking state [ 706.801625] br0: port 1(swp1) entered forwarding state [ 706.833134] br0: port 2(vx0) entered blocking state [ 706.833435] br0: port 2(vx0) entered disabled state [ 706.833826] vx0: entered allmulticast mode [ 706.834135] vx0: entered promiscuous mode [ 706.834405] br0: port 2(vx0) entered blocking state [ 706.834732] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 712.197741] br0: port 1(swp1) entered disabled state [ 713.227963] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 719.310780] vx0: left allmulticast mode [ 719.311029] vx0: left promiscuous mode [ 719.311251] br0: port 2(vx0) entered disabled state [ 719.311747] swp1: left allmulticast mode [ 719.311974] swp1: left promiscuous mode [ 719.312299] br0: port 1(swp1) entered disabled state [ 719.390834] vx0: left allmulticast mode [ 719.391445] vx0: left promiscuous mode [ 719.391935] br0: port 2(vx0) entered disabled state [ 719.392777] swp1: left allmulticast mode [ 719.393353] swp1: left promiscuous mode [ 719.393876] br0: port 1(swp1) entered disabled state [ 719.799733] veth0: renamed from veth1 [ 719.962552] br0: port 1(swp1) entered blocking state [ 719.962850] br0: port 1(swp1) entered disabled state [ 719.963129] swp1: entered allmulticast mode [ 719.963442] swp1: entered promiscuous mode [ 719.963737] br0: port 1(swp1) entered blocking state [ 719.964012] br0: port 1(swp1) entered forwarding state [ 719.993072] br0: port 2(vx0) entered blocking state [ 719.993374] br0: port 2(vx0) entered disabled state [ 719.993648] vx0: entered allmulticast mode [ 719.993934] vx0: entered promiscuous mode [ 719.994195] br0: port 2(vx0) entered blocking state [ 719.994469] br0: port 2(vx0) entered forwarding state [ 720.184823] br0: port 1(swp1) entered blocking state [ 720.185256] br0: port 1(swp1) entered disabled state [ 720.185685] swp1: entered allmulticast mode [ 720.186127] swp1: entered promiscuous mode [ 720.186539] br0: port 1(swp1) entered blocking state [ 720.186922] br0: port 1(swp1) entered forwarding state [ 720.216073] br0: port 2(vx0) entered blocking state [ 720.216367] br0: port 2(vx0) entered disabled state [ 720.216643] vx0: entered allmulticast mode [ 720.216943] vx0: entered promiscuous mode [ 720.217210] br0: port 2(vx0) entered blocking state [ 720.217468] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 725.382282] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 755.420365] vx0: left allmulticast mode [ 755.420629] vx0: left promiscuous mode [ 755.420863] br0: port 2(vx0) entered disabled state [ 755.421572] swp1: left allmulticast mode [ 755.421799] swp1: left promiscuous mode [ 755.422017] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 755.505757] vx0: left allmulticast mode [ 755.506286] vx0: left promiscuous mode [ 755.506766] br0: port 2(vx0) entered disabled state [ 755.507233] swp1: left allmulticast mode [ 755.507570] swp1: left promiscuous mode [ 755.507891] 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__->