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 [ 706.754906] veth0: renamed from veth1 [ 706.937885] br0: port 1(swp1) entered blocking state [ 706.938175] br0: port 1(swp1) entered disabled state [ 706.938460] swp1: entered allmulticast mode [ 706.938778] swp1: entered promiscuous mode [ 706.939065] br0: port 1(swp1) entered blocking state [ 706.939327] br0: port 1(swp1) entered forwarding state [ 706.972535] br0: port 2(vx0) entered blocking state [ 706.972892] br0: port 2(vx0) entered disabled state [ 706.973212] vx0: entered allmulticast mode [ 706.973559] vx0: entered promiscuous mode [ 706.973808] br0: port 2(vx0) entered blocking state [ 706.974066] br0: port 2(vx0) entered forwarding state [ 707.198989] br0: port 1(swp1) entered blocking state [ 707.199416] br0: port 1(swp1) entered disabled state [ 707.199929] swp1: entered allmulticast mode [ 707.200395] swp1: entered promiscuous mode [ 707.200806] br0: port 1(swp1) entered blocking state [ 707.201193] br0: port 1(swp1) entered forwarding state [ 707.238715] br0: port 2(vx0) entered blocking state [ 707.239148] br0: port 2(vx0) entered disabled state [ 707.239533] vx0: entered allmulticast mode [ 707.240138] vx0: entered promiscuous mode [ 707.240471] br0: port 2(vx0) entered blocking state [ 707.240864] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 712.741311] 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 ] [ 713.097020] br0: port 1(swp1) entered blocking state [ 713.097317] 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 ] [ 713.748715] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 713.835950] br0: port 1(swp1) entered blocking state [ 713.836272] 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 ] [ 714.756664] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [FAIL] # TEST: No forwarding out of vx0 [ OK ] [ 714.936749] vx0: left allmulticast mode [ 714.937331] vx0: left promiscuous mode [ 714.937877] br0: port 2(vx0) entered disabled state [ 714.948739] swp1: left allmulticast mode [ 714.949069] swp1: left promiscuous mode [ 714.949475] br0: port 1(swp1) entered disabled state [ 715.060744] vx0: left allmulticast mode [ 715.061393] vx0: left promiscuous mode [ 715.061972] br0: port 2(vx0) entered disabled state [ 715.068754] swp1: left allmulticast mode [ 715.069242] swp1: left promiscuous mode [ 715.069467] br0: port 1(swp1) entered disabled state [ 715.370777] veth0: renamed from veth1 [ 715.517947] br0: port 1(swp1) entered blocking state [ 715.518380] br0: port 1(swp1) entered disabled state [ 715.518807] swp1: entered allmulticast mode [ 715.519273] swp1: entered promiscuous mode [ 715.519684] br0: port 1(swp1) entered blocking state [ 715.520067] br0: port 1(swp1) entered forwarding state [ 715.550194] br0: port 2(vx0) entered blocking state [ 715.550680] br0: port 2(vx0) entered disabled state [ 715.551056] vx0: entered allmulticast mode [ 715.551502] vx0: entered promiscuous mode [ 715.551900] br0: port 2(vx0) entered blocking state [ 715.552287] br0: port 2(vx0) entered forwarding state [ 715.758327] br0: port 1(swp1) entered blocking state [ 715.758664] br0: port 1(swp1) entered disabled state [ 715.758984] swp1: entered allmulticast mode [ 715.759297] swp1: entered promiscuous mode [ 715.759631] br0: port 1(swp1) entered blocking state [ 715.759924] br0: port 1(swp1) entered forwarding state [ 715.791408] br0: port 2(vx0) entered blocking state [ 715.791776] br0: port 2(vx0) entered disabled state [ 715.792042] vx0: entered allmulticast mode [ 715.792350] vx0: entered promiscuous mode [ 715.792653] br0: port 2(vx0) entered blocking state [ 715.792920] 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 ] [ 721.443933] 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.105895] br0: port 1(swp1) entered blocking state [ 722.106180] 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 ] [ 722.485432] 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 ] [ 723.138521] br0: port 1(swp1) entered blocking state [ 723.138841] 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 ] [ 724.438660] 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 ] [ 725.094752] vx0: left allmulticast mode [ 725.095092] vx0: left promiscuous mode [ 725.095408] br0: port 2(vx0) entered disabled state [ 725.110776] swp1: left allmulticast mode [ 725.111200] swp1: left promiscuous mode [ 725.111562] br0: port 1(swp1) entered disabled state [ 725.231731] vx0: left allmulticast mode [ 725.232024] vx0: left promiscuous mode [ 725.232241] br0: port 2(vx0) entered disabled state [ 725.250753] swp1: left allmulticast mode [ 725.251250] swp1: left promiscuous mode [ 725.251674] br0: port 1(swp1) entered disabled state [ 725.523882] veth0: renamed from veth1 [ 725.667747] br0: port 1(swp1) entered blocking state [ 725.668044] br0: port 1(swp1) entered disabled state [ 725.668335] swp1: entered allmulticast mode [ 725.668660] swp1: entered promiscuous mode [ 725.668961] br0: port 1(swp1) entered blocking state [ 725.669225] br0: port 1(swp1) entered forwarding state [ 725.698388] br0: port 2(vx0) entered blocking state [ 725.698707] br0: port 2(vx0) entered disabled state [ 725.699054] vx0: entered allmulticast mode [ 725.699351] vx0: entered promiscuous mode [ 725.699600] br0: port 2(vx0) entered blocking state [ 725.699856] br0: port 2(vx0) entered forwarding state [ 725.870952] br0: port 1(swp1) entered blocking state [ 725.871246] br0: port 1(swp1) entered disabled state [ 725.871518] swp1: entered allmulticast mode [ 725.871886] swp1: entered promiscuous mode [ 725.872154] br0: port 1(swp1) entered blocking state [ 725.872414] br0: port 1(swp1) entered forwarding state [ 725.901284] br0: port 2(vx0) entered blocking state [ 725.901636] br0: port 2(vx0) entered disabled state [ 725.901904] vx0: entered allmulticast mode [ 725.902186] vx0: entered promiscuous mode [ 725.902414] br0: port 2(vx0) entered blocking state [ 725.902679] 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 ] [ 731.235336] 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 ] [ 734.115729] vx0: left allmulticast mode [ 734.115979] vx0: left promiscuous mode [ 734.116318] br0: port 2(vx0) entered disabled state [ 734.129814] swp1: left allmulticast mode [ 734.130169] swp1: left promiscuous mode [ 734.130496] br0: port 1(swp1) entered disabled state [ 734.235676] vx0: left allmulticast mode [ 734.236119] vx0: left promiscuous mode [ 734.236366] br0: port 2(vx0) entered disabled state [ 734.245760] swp1: left allmulticast mode [ 734.246256] swp1: left promiscuous mode [ 734.246648] br0: port 1(swp1) entered disabled state [ 734.635850] veth0: renamed from veth1 [ 734.798372] br0: port 1(swp1) entered blocking state [ 734.798685] br0: port 1(swp1) entered disabled state [ 734.799001] swp1: entered allmulticast mode [ 734.799318] swp1: entered promiscuous mode [ 734.799608] br0: port 1(swp1) entered blocking state [ 734.799877] br0: port 1(swp1) entered forwarding state [ 734.830870] br0: port 2(vx0) entered blocking state [ 734.831184] br0: port 2(vx0) entered disabled state [ 734.831470] vx0: entered allmulticast mode [ 734.831807] vx0: entered promiscuous mode [ 734.832078] br0: port 2(vx0) entered blocking state [ 734.832346] br0: port 2(vx0) entered forwarding state [ 735.032588] br0: port 1(swp1) entered blocking state [ 735.032899] br0: port 1(swp1) entered disabled state [ 735.033180] swp1: entered allmulticast mode [ 735.033494] swp1: entered promiscuous mode [ 735.033864] br0: port 1(swp1) entered blocking state [ 735.034129] br0: port 1(swp1) entered forwarding state [ 735.066486] br0: port 2(vx0) entered blocking state [ 735.066822] br0: port 2(vx0) entered disabled state [ 735.067097] vx0: entered allmulticast mode [ 735.067392] vx0: entered promiscuous mode [ 735.067650] br0: port 2(vx0) entered blocking state [ 735.067906] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 740.382415] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 741.436714] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 746.431684] vx0: left allmulticast mode [ 746.431924] vx0: left promiscuous mode [ 746.432157] br0: port 2(vx0) entered disabled state [ 746.440040] swp1: left allmulticast mode [ 746.440589] swp1: left promiscuous mode [ 746.440906] br0: port 1(swp1) entered disabled state [ 746.563688] vx0: left allmulticast mode [ 746.564091] vx0: left promiscuous mode [ 746.564449] br0: port 2(vx0) entered disabled state [ 746.580757] swp1: left allmulticast mode [ 746.581031] swp1: left promiscuous mode [ 746.581319] br0: port 1(swp1) entered disabled state [ 746.895794] veth0: renamed from veth1 [ 747.047371] br0: port 1(swp1) entered blocking state [ 747.047724] br0: port 1(swp1) entered disabled state [ 747.048003] swp1: entered allmulticast mode [ 747.048296] swp1: entered promiscuous mode [ 747.048564] br0: port 1(swp1) entered blocking state [ 747.048844] br0: port 1(swp1) entered forwarding state [ 747.077442] br0: port 2(vx0) entered blocking state [ 747.077787] br0: port 2(vx0) entered disabled state [ 747.078065] vx0: entered allmulticast mode [ 747.078347] vx0: entered promiscuous mode [ 747.078623] br0: port 2(vx0) entered blocking state [ 747.079048] br0: port 2(vx0) entered forwarding state [ 747.260348] br0: port 1(swp1) entered blocking state [ 747.260709] br0: port 1(swp1) entered disabled state [ 747.260982] swp1: entered allmulticast mode [ 747.261316] swp1: entered promiscuous mode [ 747.261594] br0: port 1(swp1) entered blocking state [ 747.261856] br0: port 1(swp1) entered forwarding state [ 747.288703] br0: port 2(vx0) entered blocking state [ 747.289035] br0: port 2(vx0) entered disabled state [ 747.289310] vx0: entered allmulticast mode [ 747.289632] vx0: entered promiscuous mode [ 747.289882] br0: port 2(vx0) entered blocking state [ 747.290149] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 752.470233] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 782.512699] vx0: left allmulticast mode [ 782.513150] vx0: left promiscuous mode [ 782.513775] br0: port 2(vx0) entered disabled state [ 782.527751] swp1: left allmulticast mode [ 782.528169] swp1: left promiscuous mode [ 782.528523] br0: port 1(swp1) entered disabled state # # Tests passed: 82 # Tests failed: 1 [ 782.658825] vx0: left allmulticast mode [ 782.659163] vx0: left promiscuous mode [ 782.659483] br0: port 2(vx0) entered disabled state [ 782.671993] swp1: left allmulticast mode [ 782.672365] swp1: left promiscuous mode [ 782.672707] 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__->