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 [ 659.154557] veth0: renamed from veth1 [ 659.339347] br0: port 1(swp1) entered blocking state [ 659.339657] br0: port 1(swp1) entered disabled state [ 659.340001] swp1: entered allmulticast mode [ 659.340320] swp1: entered promiscuous mode [ 659.340596] br0: port 1(swp1) entered blocking state [ 659.340870] br0: port 1(swp1) entered forwarding state [ 659.374714] br0: port 2(vx0) entered blocking state [ 659.375054] br0: port 2(vx0) entered disabled state [ 659.375354] vx0: entered allmulticast mode [ 659.375728] vx0: entered promiscuous mode [ 659.376017] br0: port 2(vx0) entered blocking state [ 659.376360] br0: port 2(vx0) entered forwarding state [ 659.587363] br0: port 1(swp1) entered blocking state [ 659.587732] br0: port 1(swp1) entered disabled state [ 659.588030] swp1: entered allmulticast mode [ 659.588340] swp1: entered promiscuous mode [ 659.588632] br0: port 1(swp1) entered blocking state [ 659.588966] br0: port 1(swp1) entered forwarding state [ 659.623640] br0: port 2(vx0) entered blocking state [ 659.624017] br0: port 2(vx0) entered disabled state [ 659.624275] vx0: entered allmulticast mode [ 659.624553] vx0: entered promiscuous mode [ 659.624809] br0: port 2(vx0) entered blocking state [ 659.625063] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 665.174407] 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 ] [ 665.547654] br0: port 1(swp1) entered blocking state [ 665.547958] 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 ] [ 666.180796] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 666.344120] br0: port 1(swp1) entered blocking state [ 666.344556] 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 ] [ 667.189219] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [FAIL] # TEST: No forwarding out of vx0 [ OK ] [ 667.540869] vx0: left allmulticast mode [ 667.541369] vx0: left promiscuous mode [ 667.541803] br0: port 2(vx0) entered disabled state [ 667.554806] swp1: left allmulticast mode [ 667.555286] swp1: left promiscuous mode [ 667.555657] br0: port 1(swp1) entered disabled state [ 667.702929] vx0: left allmulticast mode [ 667.703419] vx0: left promiscuous mode [ 667.703807] br0: port 2(vx0) entered disabled state [ 667.719825] swp1: left allmulticast mode [ 667.720098] swp1: left promiscuous mode [ 667.720321] br0: port 1(swp1) entered disabled state [ 668.030884] veth0: renamed from veth1 [ 668.198208] br0: port 1(swp1) entered blocking state [ 668.198510] br0: port 1(swp1) entered disabled state [ 668.198819] swp1: entered allmulticast mode [ 668.199145] swp1: entered promiscuous mode [ 668.199433] br0: port 1(swp1) entered blocking state [ 668.199734] br0: port 1(swp1) entered forwarding state [ 668.230934] br0: port 2(vx0) entered blocking state [ 668.231228] br0: port 2(vx0) entered disabled state [ 668.231502] vx0: entered allmulticast mode [ 668.231814] vx0: entered promiscuous mode [ 668.232055] br0: port 2(vx0) entered blocking state [ 668.232319] br0: port 2(vx0) entered forwarding state [ 668.449617] br0: port 1(swp1) entered blocking state [ 668.449926] br0: port 1(swp1) entered disabled state [ 668.450197] swp1: entered allmulticast mode [ 668.450488] swp1: entered promiscuous mode [ 668.450767] br0: port 1(swp1) entered blocking state [ 668.451028] br0: port 1(swp1) entered forwarding state [ 668.490076] br0: port 2(vx0) entered blocking state [ 668.490485] br0: port 2(vx0) entered disabled state [ 668.490935] vx0: entered allmulticast mode [ 668.491367] vx0: entered promiscuous mode [ 668.491779] br0: port 2(vx0) entered blocking state [ 668.492153] 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 ] [ 674.144484] 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 ] [ 674.794605] br0: port 1(swp1) entered blocking state [ 674.794920] 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 ] [ 675.183086] 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 ] [ 675.845702] br0: port 1(swp1) entered blocking state [ 675.846016] 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 ] [ 677.181655] 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 ] [ 677.897903] vx0: left allmulticast mode [ 677.898319] vx0: left promiscuous mode [ 677.898784] br0: port 2(vx0) entered disabled state [ 677.916856] swp1: left allmulticast mode [ 677.917222] swp1: left promiscuous mode [ 677.917526] br0: port 1(swp1) entered disabled state [ 678.071826] vx0: left allmulticast mode [ 678.072071] vx0: left promiscuous mode [ 678.072304] br0: port 2(vx0) entered disabled state [ 678.078883] swp1: left allmulticast mode [ 678.079138] swp1: left promiscuous mode [ 678.079405] br0: port 1(swp1) entered disabled state [ 678.376925] veth0: renamed from veth1 [ 678.546396] br0: port 1(swp1) entered blocking state [ 678.546726] br0: port 1(swp1) entered disabled state [ 678.547012] swp1: entered allmulticast mode [ 678.547319] swp1: entered promiscuous mode [ 678.547600] br0: port 1(swp1) entered blocking state [ 678.547872] br0: port 1(swp1) entered forwarding state [ 678.579871] br0: port 2(vx0) entered blocking state [ 678.580160] br0: port 2(vx0) entered disabled state [ 678.580422] vx0: entered allmulticast mode [ 678.580725] vx0: entered promiscuous mode [ 678.580981] br0: port 2(vx0) entered blocking state [ 678.581238] br0: port 2(vx0) entered forwarding state [ 678.787921] br0: port 1(swp1) entered blocking state [ 678.788212] br0: port 1(swp1) entered disabled state [ 678.788485] swp1: entered allmulticast mode [ 678.788915] swp1: entered promiscuous mode [ 678.789211] br0: port 1(swp1) entered blocking state [ 678.789584] br0: port 1(swp1) entered forwarding state [ 678.821283] br0: port 2(vx0) entered blocking state [ 678.821571] br0: port 2(vx0) entered disabled state [ 678.821847] vx0: entered allmulticast mode [ 678.822127] vx0: entered promiscuous mode [ 678.822364] br0: port 2(vx0) entered blocking state [ 678.822619] 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 ] [ 684.187433] 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 ] [ 687.283852] vx0: left allmulticast mode [ 687.284438] vx0: left promiscuous mode [ 687.284968] br0: port 2(vx0) entered disabled state [ 687.292809] swp1: left allmulticast mode [ 687.293112] swp1: left promiscuous mode [ 687.293404] br0: port 1(swp1) entered disabled state [ 687.431859] vx0: left allmulticast mode [ 687.432299] vx0: left promiscuous mode [ 687.432758] br0: port 2(vx0) entered disabled state [ 687.443818] swp1: left allmulticast mode [ 687.444303] swp1: left promiscuous mode [ 687.444739] br0: port 1(swp1) entered disabled state [ 687.634212] ip (30489) used greatest stack depth: 11688 bytes left [ 687.685938] veth0: renamed from veth1 [ 687.857280] br0: port 1(swp1) entered blocking state [ 687.857587] br0: port 1(swp1) entered disabled state [ 687.857954] swp1: entered allmulticast mode [ 687.858254] swp1: entered promiscuous mode [ 687.858538] br0: port 1(swp1) entered blocking state [ 687.858933] br0: port 1(swp1) entered forwarding state [ 687.896444] br0: port 2(vx0) entered blocking state [ 687.896758] br0: port 2(vx0) entered disabled state [ 687.897017] vx0: entered allmulticast mode [ 687.897333] vx0: entered promiscuous mode [ 687.897578] br0: port 2(vx0) entered blocking state [ 687.897845] br0: port 2(vx0) entered forwarding state [ 688.088640] br0: port 1(swp1) entered blocking state [ 688.088958] br0: port 1(swp1) entered disabled state [ 688.089235] swp1: entered allmulticast mode [ 688.089538] swp1: entered promiscuous mode [ 688.089817] br0: port 1(swp1) entered blocking state [ 688.090078] br0: port 1(swp1) entered forwarding state [ 688.122246] br0: port 2(vx0) entered blocking state [ 688.122538] br0: port 2(vx0) entered disabled state [ 688.122871] vx0: entered allmulticast mode [ 688.123193] vx0: entered promiscuous mode [ 688.123424] br0: port 2(vx0) entered blocking state [ 688.123691] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 693.467258] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 694.524788] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 699.567906] vx0: left allmulticast mode [ 699.568219] vx0: left promiscuous mode [ 699.568534] br0: port 2(vx0) entered disabled state [ 699.580839] swp1: left allmulticast mode [ 699.581155] swp1: left promiscuous mode [ 699.581459] br0: port 1(swp1) entered disabled state [ 699.737938] vx0: left allmulticast mode [ 699.738318] vx0: left promiscuous mode [ 699.738649] br0: port 2(vx0) entered disabled state [ 699.749865] swp1: left allmulticast mode [ 699.750204] swp1: left promiscuous mode [ 699.750532] br0: port 1(swp1) entered disabled state [ 700.073985] veth0: renamed from veth1 [ 700.242256] br0: port 1(swp1) entered blocking state [ 700.242549] br0: port 1(swp1) entered disabled state [ 700.242835] swp1: entered allmulticast mode [ 700.243132] swp1: entered promiscuous mode [ 700.243403] br0: port 1(swp1) entered blocking state [ 700.243660] br0: port 1(swp1) entered forwarding state [ 700.274847] br0: port 2(vx0) entered blocking state [ 700.275161] br0: port 2(vx0) entered disabled state [ 700.275421] vx0: entered allmulticast mode [ 700.275832] vx0: entered promiscuous mode [ 700.276084] br0: port 2(vx0) entered blocking state [ 700.276348] br0: port 2(vx0) entered forwarding state [ 700.454421] br0: port 1(swp1) entered blocking state [ 700.454867] br0: port 1(swp1) entered disabled state [ 700.455268] swp1: entered allmulticast mode [ 700.455729] swp1: entered promiscuous mode [ 700.456133] br0: port 1(swp1) entered blocking state [ 700.456521] br0: port 1(swp1) entered forwarding state [ 700.488296] br0: port 2(vx0) entered blocking state [ 700.488601] br0: port 2(vx0) entered disabled state [ 700.488912] vx0: entered allmulticast mode [ 700.489201] vx0: entered promiscuous mode [ 700.489430] br0: port 2(vx0) entered blocking state [ 700.489705] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 705.656442] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 735.754879] vx0: left allmulticast mode [ 735.755544] vx0: left promiscuous mode [ 735.756101] br0: port 2(vx0) entered disabled state [ 735.767845] swp1: left allmulticast mode [ 735.768238] swp1: left promiscuous mode [ 735.768748] br0: port 1(swp1) entered disabled state # # Tests passed: 82 # Tests failed: 1 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__-> [ 735.893842] vx0: left allmulticast mode [ 735.894095] vx0: left promiscuous mode [ 735.894312] br0: port 2(vx0) entered disabled state [ 735.899806] swp1: left allmulticast mode [ 735.900034] swp1: left promiscuous mode [ 735.900246] br0: port 1(swp1) entered disabled state xx__-> xx__->