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 [ 1172.818032] veth0: renamed from veth1 [ 1172.937312] br0: port 1(swp1) entered blocking state [ 1172.937616] br0: port 1(swp1) entered disabled state [ 1172.937917] swp1: entered allmulticast mode [ 1172.938225] swp1: entered promiscuous mode [ 1172.938513] br0: port 1(swp1) entered blocking state [ 1172.938800] br0: port 1(swp1) entered forwarding state [ 1172.962394] br0: port 2(vx0) entered blocking state [ 1172.962694] br0: port 2(vx0) entered disabled state [ 1172.962968] vx0: entered allmulticast mode [ 1172.963264] vx0: entered promiscuous mode [ 1172.963500] br0: port 2(vx0) entered blocking state [ 1172.963764] br0: port 2(vx0) entered forwarding state [ 1173.112734] br0: port 1(swp1) entered blocking state [ 1173.113192] br0: port 1(swp1) entered disabled state [ 1173.113601] swp1: entered allmulticast mode [ 1173.114064] swp1: entered promiscuous mode [ 1173.114485] br0: port 1(swp1) entered blocking state [ 1173.114915] br0: port 1(swp1) entered forwarding state [ 1173.140163] br0: port 2(vx0) entered blocking state [ 1173.140458] br0: port 2(vx0) entered disabled state [ 1173.140732] vx0: entered allmulticast mode [ 1173.141029] vx0: entered promiscuous mode [ 1173.141266] br0: port 2(vx0) entered blocking state [ 1173.141530] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 1178.589665] 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 ] [ 1178.926039] br0: port 1(swp1) entered blocking state [ 1178.926342] 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 ] [ 1179.595867] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 1179.611255] br0: port 1(swp1) entered blocking state [ 1179.611667] 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] [ 1180.603960] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of vx0 [ OK ] [ 1180.670989] vx0: left allmulticast mode [ 1180.671521] vx0: left promiscuous mode [ 1180.672050] br0: port 2(vx0) entered disabled state [ 1180.678944] swp1: left allmulticast mode [ 1180.679512] swp1: left promiscuous mode [ 1180.680083] br0: port 1(swp1) entered disabled state [ 1180.827941] vx0: left allmulticast mode [ 1180.828261] vx0: left promiscuous mode [ 1180.828513] br0: port 2(vx0) entered disabled state [ 1180.839885] swp1: left allmulticast mode [ 1180.840139] swp1: left promiscuous mode [ 1180.840377] br0: port 1(swp1) entered disabled state [ 1180.964243] veth0: renamed from veth1 [ 1181.073521] br0: port 1(swp1) entered blocking state [ 1181.073842] br0: port 1(swp1) entered disabled state [ 1181.074117] swp1: entered allmulticast mode [ 1181.074413] swp1: entered promiscuous mode [ 1181.074693] br0: port 1(swp1) entered blocking state [ 1181.074974] br0: port 1(swp1) entered forwarding state [ 1181.095424] br0: port 2(vx0) entered blocking state [ 1181.095851] br0: port 2(vx0) entered disabled state [ 1181.096212] vx0: entered allmulticast mode [ 1181.096605] vx0: entered promiscuous mode [ 1181.096988] br0: port 2(vx0) entered blocking state [ 1181.097332] br0: port 2(vx0) entered forwarding state [ 1181.216397] br0: port 1(swp1) entered blocking state [ 1181.216690] br0: port 1(swp1) entered disabled state [ 1181.216999] swp1: entered allmulticast mode [ 1181.217294] swp1: entered promiscuous mode [ 1181.217562] br0: port 1(swp1) entered blocking state [ 1181.217842] br0: port 1(swp1) entered forwarding state [ 1181.237191] br0: port 2(vx0) entered blocking state [ 1181.237492] br0: port 2(vx0) entered disabled state [ 1181.237792] vx0: entered allmulticast mode [ 1181.238099] vx0: entered promiscuous mode [ 1181.238349] br0: port 2(vx0) entered blocking state [ 1181.238628] 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 ] [ 1186.786632] 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 ] [ 1187.389215] br0: port 1(swp1) entered blocking state [ 1187.389509] 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 ] [ 1187.786928] 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 ] [ 1188.368099] br0: port 1(swp1) entered blocking state [ 1188.368402] 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 ] [ 1189.591869] 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 ] [ 1190.245943] vx0: left allmulticast mode [ 1190.246212] vx0: left promiscuous mode [ 1190.246439] br0: port 2(vx0) entered disabled state [ 1190.253871] swp1: left allmulticast mode [ 1190.254135] swp1: left promiscuous mode [ 1190.254392] br0: port 1(swp1) entered disabled state [ 1190.404964] vx0: left allmulticast mode [ 1190.405313] vx0: left promiscuous mode [ 1190.405639] br0: port 2(vx0) entered disabled state [ 1190.422934] swp1: left allmulticast mode [ 1190.423281] swp1: left promiscuous mode [ 1190.423612] br0: port 1(swp1) entered disabled state [ 1190.643968] veth0: renamed from veth1 [ 1190.752779] br0: port 1(swp1) entered blocking state [ 1190.753079] br0: port 1(swp1) entered disabled state [ 1190.753355] swp1: entered allmulticast mode [ 1190.753660] swp1: entered promiscuous mode [ 1190.753944] br0: port 1(swp1) entered blocking state [ 1190.754212] br0: port 1(swp1) entered forwarding state [ 1190.773459] br0: port 2(vx0) entered blocking state [ 1190.773748] br0: port 2(vx0) entered disabled state [ 1190.774029] vx0: entered allmulticast mode [ 1190.774314] vx0: entered promiscuous mode [ 1190.774564] br0: port 2(vx0) entered blocking state [ 1190.774840] br0: port 2(vx0) entered forwarding state [ 1190.903192] br0: port 1(swp1) entered blocking state [ 1190.903618] br0: port 1(swp1) entered disabled state [ 1190.904068] swp1: entered allmulticast mode [ 1190.904509] swp1: entered promiscuous mode [ 1190.904933] br0: port 1(swp1) entered blocking state [ 1190.905337] br0: port 1(swp1) entered forwarding state [ 1190.924740] br0: port 2(vx0) entered blocking state [ 1190.925040] br0: port 2(vx0) entered disabled state [ 1190.925310] vx0: entered allmulticast mode [ 1190.925596] vx0: entered promiscuous mode [ 1190.925845] br0: port 2(vx0) entered blocking state [ 1190.926113] 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 ] [ 1196.201246] 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 ] [ 1198.883982] vx0: left allmulticast mode [ 1198.884249] vx0: left promiscuous mode [ 1198.884524] br0: port 2(vx0) entered disabled state [ 1198.897873] swp1: left allmulticast mode [ 1198.898126] swp1: left promiscuous mode [ 1198.898347] br0: port 1(swp1) entered disabled state [ 1199.025927] vx0: left allmulticast mode [ 1199.026178] vx0: left promiscuous mode [ 1199.026425] br0: port 2(vx0) entered disabled state [ 1199.037883] swp1: left allmulticast mode [ 1199.038164] swp1: left promiscuous mode [ 1199.038421] br0: port 1(swp1) entered disabled state [ 1199.212941] veth0: renamed from veth1 [ 1199.315458] br0: port 1(swp1) entered blocking state [ 1199.315896] br0: port 1(swp1) entered disabled state [ 1199.316299] swp1: entered allmulticast mode [ 1199.316739] swp1: entered promiscuous mode [ 1199.317155] br0: port 1(swp1) entered blocking state [ 1199.317550] br0: port 1(swp1) entered forwarding state [ 1199.339469] br0: port 2(vx0) entered blocking state [ 1199.339905] br0: port 2(vx0) entered disabled state [ 1199.340303] vx0: entered allmulticast mode [ 1199.340745] vx0: entered promiscuous mode [ 1199.341172] br0: port 2(vx0) entered blocking state [ 1199.341572] br0: port 2(vx0) entered forwarding state [ 1199.465983] br0: port 1(swp1) entered blocking state [ 1199.466283] br0: port 1(swp1) entered disabled state [ 1199.466560] swp1: entered allmulticast mode [ 1199.466878] swp1: entered promiscuous mode [ 1199.467151] br0: port 1(swp1) entered blocking state [ 1199.467419] br0: port 1(swp1) entered forwarding state [ 1199.487254] br0: port 2(vx0) entered blocking state [ 1199.487546] br0: port 2(vx0) entered disabled state [ 1199.487842] vx0: entered allmulticast mode [ 1199.488123] vx0: entered promiscuous mode [ 1199.488373] br0: port 2(vx0) entered blocking state [ 1199.488637] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 1204.742184] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 1205.755834] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 1210.828920] vx0: left allmulticast mode [ 1210.829281] vx0: left promiscuous mode [ 1210.829667] br0: port 2(vx0) entered disabled state [ 1210.837880] swp1: left allmulticast mode [ 1210.838131] swp1: left promiscuous mode [ 1210.838538] br0: port 1(swp1) entered disabled state [ 1210.970967] vx0: left allmulticast mode [ 1210.971230] vx0: left promiscuous mode [ 1210.971450] br0: port 2(vx0) entered disabled state [ 1210.980876] swp1: left allmulticast mode [ 1210.981109] swp1: left promiscuous mode [ 1210.981328] br0: port 1(swp1) entered disabled state [ 1211.164115] veth0: renamed from veth1 [ 1211.274159] br0: port 1(swp1) entered blocking state [ 1211.274465] br0: port 1(swp1) entered disabled state [ 1211.274739] swp1: entered allmulticast mode [ 1211.275041] swp1: entered promiscuous mode [ 1211.275310] br0: port 1(swp1) entered blocking state [ 1211.275582] br0: port 1(swp1) entered forwarding state [ 1211.296513] br0: port 2(vx0) entered blocking state [ 1211.296844] br0: port 2(vx0) entered disabled state [ 1211.297121] vx0: entered allmulticast mode [ 1211.297415] vx0: entered promiscuous mode [ 1211.297651] br0: port 2(vx0) entered blocking state [ 1211.297929] br0: port 2(vx0) entered forwarding state [ 1211.430336] br0: port 1(swp1) entered blocking state [ 1211.430668] br0: port 1(swp1) entered disabled state [ 1211.430951] swp1: entered allmulticast mode [ 1211.431245] swp1: entered promiscuous mode [ 1211.431532] br0: port 1(swp1) entered blocking state [ 1211.431824] br0: port 1(swp1) entered forwarding state [ 1211.452252] br0: port 2(vx0) entered blocking state [ 1211.452560] br0: port 2(vx0) entered disabled state [ 1211.452911] vx0: entered allmulticast mode [ 1211.453213] vx0: entered promiscuous mode [ 1211.453458] br0: port 2(vx0) entered blocking state [ 1211.453723] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 1216.568545] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] # # Tests passed: 82 # Tests failed: 1 [ 1246.650942] vx0: left allmulticast mode [ 1246.651186] vx0: left promiscuous mode [ 1246.651404] br0: port 2(vx0) entered disabled state [ 1246.662881] swp1: left allmulticast mode [ 1246.663272] swp1: left promiscuous mode [ 1246.663654] 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__->