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 [ 704.106730] veth0: renamed from veth1 [ 704.276594] br0: port 1(swp1) entered blocking state [ 704.276917] br0: port 1(swp1) entered disabled state [ 704.277191] swp1: entered allmulticast mode [ 704.277504] swp1: entered promiscuous mode [ 704.277791] br0: port 1(swp1) entered blocking state [ 704.278072] br0: port 1(swp1) entered forwarding state [ 704.308857] br0: port 2(vx0) entered blocking state [ 704.309147] br0: port 2(vx0) entered disabled state [ 704.309407] vx0: entered allmulticast mode [ 704.309697] vx0: entered promiscuous mode [ 704.309934] br0: port 2(vx0) entered blocking state [ 704.310191] br0: port 2(vx0) entered forwarding state [ 704.505884] br0: port 1(swp1) entered blocking state [ 704.506185] br0: port 1(swp1) entered disabled state [ 704.506465] swp1: entered allmulticast mode [ 704.506782] swp1: entered promiscuous mode [ 704.507053] br0: port 1(swp1) entered blocking state [ 704.507316] br0: port 1(swp1) entered forwarding state [ 704.539331] br0: port 2(vx0) entered blocking state [ 704.539761] br0: port 2(vx0) entered disabled state [ 704.540148] vx0: entered allmulticast mode [ 704.540590] vx0: entered promiscuous mode [ 704.540933] br0: port 2(vx0) entered blocking state [ 704.541317] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 710.044465] 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 ] [ 710.393507] br0: port 1(swp1) entered blocking state [ 710.393799] 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 ] [ 711.051634] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 711.134420] br0: port 1(swp1) entered blocking state [ 711.134768] 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 ] [ 712.059704] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [FAIL] # TEST: No forwarding out of vx0 [ OK ] [ 712.314788] vx0: left allmulticast mode [ 712.315147] vx0: left promiscuous mode [ 712.315528] br0: port 2(vx0) entered disabled state [ 712.327756] swp1: left allmulticast mode [ 712.328137] swp1: left promiscuous mode [ 712.328521] br0: port 1(swp1) entered disabled state [ 712.481798] vx0: left allmulticast mode [ 712.482055] vx0: left promiscuous mode [ 712.482322] br0: port 2(vx0) entered disabled state [ 712.491658] swp1: left allmulticast mode [ 712.491897] swp1: left promiscuous mode [ 712.492125] br0: port 1(swp1) entered disabled state [ 712.827777] veth0: renamed from veth1 [ 712.991419] br0: port 1(swp1) entered blocking state [ 712.991930] br0: port 1(swp1) entered disabled state [ 712.992337] swp1: entered allmulticast mode [ 712.992814] swp1: entered promiscuous mode [ 712.993225] br0: port 1(swp1) entered blocking state [ 712.993632] br0: port 1(swp1) entered forwarding state [ 713.024573] br0: port 2(vx0) entered blocking state [ 713.024999] br0: port 2(vx0) entered disabled state [ 713.025535] vx0: entered allmulticast mode [ 713.025960] vx0: entered promiscuous mode [ 713.026299] br0: port 2(vx0) entered blocking state [ 713.026698] br0: port 2(vx0) entered forwarding state [ 713.226007] br0: port 1(swp1) entered blocking state [ 713.226306] br0: port 1(swp1) entered disabled state [ 713.226595] swp1: entered allmulticast mode [ 713.226903] swp1: entered promiscuous mode [ 713.227174] br0: port 1(swp1) entered blocking state [ 713.227445] br0: port 1(swp1) entered forwarding state [ 713.259888] br0: port 2(vx0) entered blocking state [ 713.260309] br0: port 2(vx0) entered disabled state [ 713.260700] vx0: entered allmulticast mode [ 713.261090] vx0: entered promiscuous mode [ 713.261451] br0: port 2(vx0) entered blocking state [ 713.261853] 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 ] [ 718.942170] 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 ] [ 719.629668] br0: port 1(swp1) entered blocking state [ 719.629964] 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 ] [ 720.031489] 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 ] [ 720.704838] br0: port 1(swp1) entered blocking state [ 720.705155] 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 ] [ 722.044076] 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 ] [ 722.776817] vx0: left allmulticast mode [ 722.777186] vx0: left promiscuous mode [ 722.777567] br0: port 2(vx0) entered disabled state [ 722.783716] swp1: left allmulticast mode [ 722.784072] swp1: left promiscuous mode [ 722.784418] br0: port 1(swp1) entered disabled state [ 722.916664] vx0: left allmulticast mode [ 722.916932] vx0: left promiscuous mode [ 722.917222] br0: port 2(vx0) entered disabled state [ 722.925671] swp1: left allmulticast mode [ 722.925974] swp1: left promiscuous mode [ 722.926308] br0: port 1(swp1) entered disabled state [ 723.271763] veth0: renamed from veth1 [ 723.451379] br0: port 1(swp1) entered blocking state [ 723.451869] br0: port 1(swp1) entered disabled state [ 723.452275] swp1: entered allmulticast mode [ 723.452730] swp1: entered promiscuous mode [ 723.453151] br0: port 1(swp1) entered blocking state [ 723.453567] br0: port 1(swp1) entered forwarding state [ 723.487339] br0: port 2(vx0) entered blocking state [ 723.487770] br0: port 2(vx0) entered disabled state [ 723.488153] vx0: entered allmulticast mode [ 723.488592] vx0: entered promiscuous mode [ 723.488946] br0: port 2(vx0) entered blocking state [ 723.489326] br0: port 2(vx0) entered forwarding state [ 723.679767] br0: port 1(swp1) entered blocking state [ 723.680092] br0: port 1(swp1) entered disabled state [ 723.680373] swp1: entered allmulticast mode [ 723.680683] swp1: entered promiscuous mode [ 723.680965] br0: port 1(swp1) entered blocking state [ 723.681232] br0: port 1(swp1) entered forwarding state [ 723.710358] br0: port 2(vx0) entered blocking state [ 723.710755] br0: port 2(vx0) entered disabled state [ 723.711111] vx0: entered allmulticast mode [ 723.711506] vx0: entered promiscuous mode [ 723.711826] br0: port 2(vx0) entered blocking state [ 723.712184] 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 ] [ 729.053347] 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 ] [ 731.933674] vx0: left allmulticast mode [ 731.934167] vx0: left promiscuous mode [ 731.934649] br0: port 2(vx0) entered disabled state [ 731.941640] swp1: left allmulticast mode [ 731.942048] swp1: left promiscuous mode [ 731.942351] br0: port 1(swp1) entered disabled state [ 732.071709] vx0: left allmulticast mode [ 732.072205] vx0: left promiscuous mode [ 732.072645] br0: port 2(vx0) entered disabled state [ 732.083627] swp1: left allmulticast mode [ 732.084052] swp1: left promiscuous mode [ 732.084406] br0: port 1(swp1) entered disabled state [ 732.332817] veth0: renamed from veth1 [ 732.474669] br0: port 1(swp1) entered blocking state [ 732.474965] br0: port 1(swp1) entered disabled state [ 732.475289] swp1: entered allmulticast mode [ 732.475682] swp1: entered promiscuous mode [ 732.475957] br0: port 1(swp1) entered blocking state [ 732.476233] br0: port 1(swp1) entered forwarding state [ 732.505794] br0: port 2(vx0) entered blocking state [ 732.506096] br0: port 2(vx0) entered disabled state [ 732.506356] vx0: entered allmulticast mode [ 732.506708] vx0: entered promiscuous mode [ 732.506946] br0: port 2(vx0) entered blocking state [ 732.507244] br0: port 2(vx0) entered forwarding state [ 732.680240] br0: port 1(swp1) entered blocking state [ 732.680677] br0: port 1(swp1) entered disabled state [ 732.681074] swp1: entered allmulticast mode [ 732.681509] swp1: entered promiscuous mode [ 732.681891] br0: port 1(swp1) entered blocking state [ 732.682262] br0: port 1(swp1) entered forwarding state [ 732.711573] br0: port 2(vx0) entered blocking state [ 732.711862] br0: port 2(vx0) entered disabled state [ 732.712122] vx0: entered allmulticast mode [ 732.712399] vx0: entered promiscuous mode [ 732.712664] br0: port 2(vx0) entered blocking state [ 732.712923] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 738.065039] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 739.091584] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 744.169686] vx0: left allmulticast mode [ 744.169965] vx0: left promiscuous mode [ 744.170197] br0: port 2(vx0) entered disabled state [ 744.181634] swp1: left allmulticast mode [ 744.181904] swp1: left promiscuous mode [ 744.182172] br0: port 1(swp1) entered disabled state [ 744.342723] vx0: left allmulticast mode [ 744.343112] vx0: left promiscuous mode [ 744.343514] br0: port 2(vx0) entered disabled state [ 744.358668] swp1: left allmulticast mode [ 744.359082] swp1: left promiscuous mode [ 744.359355] br0: port 1(swp1) entered disabled state [ 744.631817] veth0: renamed from veth1 [ 744.795656] br0: port 1(swp1) entered blocking state [ 744.795963] br0: port 1(swp1) entered disabled state [ 744.796237] swp1: entered allmulticast mode [ 744.796563] swp1: entered promiscuous mode [ 744.796842] br0: port 1(swp1) entered blocking state [ 744.797116] br0: port 1(swp1) entered forwarding state [ 744.830834] br0: port 2(vx0) entered blocking state [ 744.831247] br0: port 2(vx0) entered disabled state [ 744.831644] vx0: entered allmulticast mode [ 744.832079] vx0: entered promiscuous mode [ 744.832428] br0: port 2(vx0) entered blocking state [ 744.832815] br0: port 2(vx0) entered forwarding state [ 745.039986] br0: port 1(swp1) entered blocking state [ 745.040287] br0: port 1(swp1) entered disabled state [ 745.040622] swp1: entered allmulticast mode [ 745.040943] swp1: entered promiscuous mode [ 745.041220] br0: port 1(swp1) entered blocking state [ 745.041481] br0: port 1(swp1) entered forwarding state [ 745.074041] br0: port 2(vx0) entered blocking state [ 745.074451] br0: port 2(vx0) entered disabled state [ 745.074857] vx0: entered allmulticast mode [ 745.075295] vx0: entered promiscuous mode [ 745.075909] br0: port 2(vx0) entered blocking state [ 745.076299] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 750.256451] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 780.358877] vx0: left allmulticast mode [ 780.359410] vx0: left promiscuous mode [ 780.359928] br0: port 2(vx0) entered disabled state # # Tests passed: 82 # Tests failed: 1 [ 780.368661] swp1: left allmulticast mode [ 780.369106] swp1: left promiscuous mode [ 780.369543] 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__-> [ 780.498636] vx0: left allmulticast mode [ 780.498871] vx0: left promiscuous mode [ 780.499084] br0: port 2(vx0) entered disabled state [ 780.504644] swp1: left allmulticast mode [ 780.504888] swp1: left promiscuous mode [ 780.505164] br0: port 1(swp1) entered disabled state xx__-> xx__->