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 6000 # selftests: net: test_bridge_backup_port.sh [ 713.553848] veth0: renamed from veth1 [ 713.716103] br0: port 1(swp1) entered blocking state [ 713.716397] br0: port 1(swp1) entered disabled state [ 713.716681] swp1: entered allmulticast mode [ 713.716997] swp1: entered promiscuous mode [ 713.717372] br0: port 1(swp1) entered blocking state [ 713.717636] br0: port 1(swp1) entered forwarding state [ 713.749420] br0: port 2(vx0) entered blocking state [ 713.749714] br0: port 2(vx0) entered disabled state [ 713.750029] vx0: entered allmulticast mode [ 713.750369] vx0: entered promiscuous mode [ 713.750655] br0: port 2(vx0) entered blocking state [ 713.750963] br0: port 2(vx0) entered forwarding state [ 713.955929] br0: port 1(swp1) entered blocking state [ 713.956223] br0: port 1(swp1) entered disabled state [ 713.956497] swp1: entered allmulticast mode [ 713.956871] swp1: entered promiscuous mode [ 713.957309] br0: port 1(swp1) entered blocking state [ 713.957708] br0: port 1(swp1) entered forwarding state [ 713.991358] br0: port 2(vx0) entered blocking state [ 713.991758] br0: port 2(vx0) entered disabled state [ 713.992145] vx0: entered allmulticast mode [ 713.992584] vx0: entered promiscuous mode [ 713.992934] br0: port 2(vx0) entered blocking state [ 713.993313] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 719.512315] 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 ] [ 719.926184] br0: port 1(swp1) entered blocking state [ 719.926484] 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 ] [ 720.516835] 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 ] [ 720.938710] br0: port 1(swp1) entered blocking state [ 720.939018] 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 ] [ 721.728100] 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 ] [ 722.140054] vx0: left allmulticast mode [ 722.140431] vx0: left promiscuous mode [ 722.140754] br0: port 2(vx0) entered disabled state [ 722.141192] swp1: left allmulticast mode [ 722.141416] swp1: left promiscuous mode [ 722.141650] br0: port 1(swp1) entered disabled state [ 722.211900] vx0: left allmulticast mode [ 722.212243] vx0: left promiscuous mode [ 722.212649] br0: port 2(vx0) entered disabled state [ 722.213225] swp1: left allmulticast mode [ 722.213505] swp1: left promiscuous mode [ 722.213785] br0: port 1(swp1) entered disabled state [ 722.599887] veth0: renamed from veth1 [ 722.770261] br0: port 1(swp1) entered blocking state [ 722.770574] br0: port 1(swp1) entered disabled state [ 722.770896] swp1: entered allmulticast mode [ 722.771214] swp1: entered promiscuous mode [ 722.771501] br0: port 1(swp1) entered blocking state [ 722.771789] br0: port 1(swp1) entered forwarding state [ 722.808792] br0: port 2(vx0) entered blocking state [ 722.809219] br0: port 2(vx0) entered disabled state [ 722.809583] vx0: entered allmulticast mode [ 722.810108] vx0: entered promiscuous mode [ 722.810443] br0: port 2(vx0) entered blocking state [ 722.810809] br0: port 2(vx0) entered forwarding state [ 723.033867] br0: port 1(swp1) entered blocking state [ 723.034285] br0: port 1(swp1) entered disabled state [ 723.034751] swp1: entered allmulticast mode [ 723.035200] swp1: entered promiscuous mode [ 723.035625] br0: port 1(swp1) entered blocking state [ 723.036004] br0: port 1(swp1) entered forwarding state [ 723.069972] br0: port 2(vx0) entered blocking state [ 723.070383] br0: port 2(vx0) entered disabled state [ 723.070775] vx0: entered allmulticast mode [ 723.071196] vx0: entered promiscuous mode [ 723.071555] br0: port 2(vx0) entered blocking state [ 723.071947] 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 ] [ 728.742530] 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 ] [ 729.435294] br0: port 1(swp1) entered blocking state [ 729.435707] 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 ] [ 729.874862] 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 ] [ 730.590032] br0: port 1(swp1) entered blocking state [ 730.590349] 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 ] [ 732.010181] 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 ] [ 732.747350] vx0: left allmulticast mode [ 732.747775] vx0: left promiscuous mode [ 732.748041] br0: port 2(vx0) entered disabled state [ 732.748482] swp1: left allmulticast mode [ 732.748727] swp1: left promiscuous mode [ 732.748958] br0: port 1(swp1) entered disabled state [ 732.824776] vx0: left allmulticast mode [ 732.825253] vx0: left promiscuous mode [ 732.825726] br0: port 2(vx0) entered disabled state [ 732.826394] swp1: left allmulticast mode [ 732.826839] swp1: left promiscuous mode [ 732.827336] br0: port 1(swp1) entered disabled state [ 733.275894] veth0: renamed from veth1 [ 733.442248] br0: port 1(swp1) entered blocking state [ 733.442644] br0: port 1(swp1) entered disabled state [ 733.442972] swp1: entered allmulticast mode [ 733.443359] swp1: entered promiscuous mode [ 733.443717] br0: port 1(swp1) entered blocking state [ 733.444065] br0: port 1(swp1) entered forwarding state [ 733.477668] br0: port 2(vx0) entered blocking state [ 733.478079] br0: port 2(vx0) entered disabled state [ 733.478461] vx0: entered allmulticast mode [ 733.478988] vx0: entered promiscuous mode [ 733.479322] br0: port 2(vx0) entered blocking state [ 733.479707] br0: port 2(vx0) entered forwarding state [ 733.706807] br0: port 1(swp1) entered blocking state [ 733.707135] br0: port 1(swp1) entered disabled state [ 733.707450] swp1: entered allmulticast mode [ 733.707810] swp1: entered promiscuous mode [ 733.708097] br0: port 1(swp1) entered blocking state [ 733.708418] br0: port 1(swp1) entered forwarding state [ 733.744678] br0: port 2(vx0) entered blocking state [ 733.745091] br0: port 2(vx0) entered disabled state [ 733.745469] vx0: entered allmulticast mode [ 733.745957] vx0: entered promiscuous mode [ 733.746315] br0: port 2(vx0) entered blocking state [ 733.746703] 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 ] [ 739.137157] 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 ] [ 742.119251] vx0: left allmulticast mode [ 742.119591] vx0: left promiscuous mode [ 742.119974] br0: port 2(vx0) entered disabled state [ 742.120748] swp1: left allmulticast mode [ 742.121081] swp1: left promiscuous mode [ 742.121427] br0: port 1(swp1) entered disabled state [ 742.195887] vx0: left allmulticast mode [ 742.196230] vx0: left promiscuous mode [ 742.196601] br0: port 2(vx0) entered disabled state [ 742.197267] swp1: left allmulticast mode [ 742.197606] swp1: left promiscuous mode [ 742.197957] br0: port 1(swp1) entered disabled state [ 742.630865] veth0: renamed from veth1 [ 742.814738] br0: port 1(swp1) entered blocking state [ 742.815164] br0: port 1(swp1) entered disabled state [ 742.815569] swp1: entered allmulticast mode [ 742.816128] swp1: entered promiscuous mode [ 742.816551] br0: port 1(swp1) entered blocking state [ 742.816947] br0: port 1(swp1) entered forwarding state [ 742.857805] br0: port 2(vx0) entered blocking state [ 742.858134] br0: port 2(vx0) entered disabled state [ 742.858403] vx0: entered allmulticast mode [ 742.858746] vx0: entered promiscuous mode [ 742.859020] br0: port 2(vx0) entered blocking state [ 742.859286] br0: port 2(vx0) entered forwarding state [ 743.077447] br0: port 1(swp1) entered blocking state [ 743.077773] br0: port 1(swp1) entered disabled state [ 743.078068] swp1: entered allmulticast mode [ 743.078379] swp1: entered promiscuous mode [ 743.078686] br0: port 1(swp1) entered blocking state [ 743.078961] br0: port 1(swp1) entered forwarding state [ 743.114670] br0: port 2(vx0) entered blocking state [ 743.114988] br0: port 2(vx0) entered disabled state [ 743.115246] vx0: entered allmulticast mode [ 743.115562] vx0: entered promiscuous mode [ 743.115837] br0: port 2(vx0) entered blocking state [ 743.116111] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 748.438026] br0: port 1(swp1) entered disabled state [ 749.500700] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 755.595677] vx0: left allmulticast mode [ 755.595940] vx0: left promiscuous mode [ 755.596198] br0: port 2(vx0) entered disabled state [ 755.596853] swp1: left allmulticast mode [ 755.597093] swp1: left promiscuous mode [ 755.597326] br0: port 1(swp1) entered disabled state [ 755.664965] vx0: left allmulticast mode [ 755.665207] vx0: left promiscuous mode [ 755.665420] br0: port 2(vx0) entered disabled state [ 755.665884] swp1: left allmulticast mode [ 755.666174] swp1: left promiscuous mode [ 755.666450] br0: port 1(swp1) entered disabled state [ 756.047857] veth0: renamed from veth1 [ 756.197218] br0: port 1(swp1) entered blocking state [ 756.197514] br0: port 1(swp1) entered disabled state [ 756.197796] swp1: entered allmulticast mode [ 756.198087] swp1: entered promiscuous mode [ 756.198354] br0: port 1(swp1) entered blocking state [ 756.198618] br0: port 1(swp1) entered forwarding state [ 756.227585] br0: port 2(vx0) entered blocking state [ 756.227889] br0: port 2(vx0) entered disabled state [ 756.228149] vx0: entered allmulticast mode [ 756.228432] vx0: entered promiscuous mode [ 756.228688] br0: port 2(vx0) entered blocking state [ 756.228949] br0: port 2(vx0) entered forwarding state [ 756.427907] br0: port 1(swp1) entered blocking state [ 756.428201] br0: port 1(swp1) entered disabled state [ 756.428471] swp1: entered allmulticast mode [ 756.428837] swp1: entered promiscuous mode [ 756.429140] br0: port 1(swp1) entered blocking state [ 756.429426] br0: port 1(swp1) entered forwarding state [ 756.462484] br0: port 2(vx0) entered blocking state [ 756.462813] br0: port 2(vx0) entered disabled state [ 756.463096] vx0: entered allmulticast mode [ 756.463401] vx0: entered promiscuous mode [ 756.463659] br0: port 2(vx0) entered blocking state [ 756.463925] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 761.626141] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 791.666966] vx0: left allmulticast mode [ 791.667522] vx0: left promiscuous mode [ 791.668115] br0: port 2(vx0) entered disabled state [ 791.669097] swp1: left allmulticast mode [ 791.669580] swp1: left promiscuous mode [ 791.670064] br0: port 1(swp1) entered disabled state [ 791.737904] vx0: left allmulticast mode [ 791.738547] vx0: left promiscuous mode [ 791.739034] br0: port 2(vx0) entered disabled state [ 791.739782] swp1: left allmulticast mode [ 791.740258] swp1: left promiscuous mode [ 791.740703] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 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__->