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 [ 655.550389] veth0: renamed from veth1 [ 655.728393] br0: port 1(swp1) entered blocking state [ 655.728834] br0: port 1(swp1) entered disabled state [ 655.729241] swp1: entered allmulticast mode [ 655.729705] swp1: entered promiscuous mode [ 655.730153] br0: port 1(swp1) entered blocking state [ 655.730542] br0: port 1(swp1) entered forwarding state [ 655.765150] br0: port 2(vx0) entered blocking state [ 655.765443] br0: port 2(vx0) entered disabled state [ 655.765712] vx0: entered allmulticast mode [ 655.766007] vx0: entered promiscuous mode [ 655.766246] br0: port 2(vx0) entered blocking state [ 655.766501] br0: port 2(vx0) entered forwarding state [ 655.984296] br0: port 1(swp1) entered blocking state [ 655.984613] br0: port 1(swp1) entered disabled state [ 655.984899] swp1: entered allmulticast mode [ 655.985193] swp1: entered promiscuous mode [ 655.985464] br0: port 1(swp1) entered blocking state [ 655.985739] br0: port 1(swp1) entered forwarding state [ 656.021348] br0: port 2(vx0) entered blocking state [ 656.021650] br0: port 2(vx0) entered disabled state [ 656.021923] vx0: entered allmulticast mode [ 656.022208] vx0: entered promiscuous mode [ 656.022440] br0: port 2(vx0) entered blocking state [ 656.022731] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 661.139167] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 661.568459] 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 ] [ 661.931340] br0: port 1(swp1) entered blocking state [ 661.931657] 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 ] [ 662.572820] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 662.685278] br0: port 1(swp1) entered blocking state [ 662.685586] 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 ] [ 663.580844] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [FAIL] # TEST: No forwarding out of vx0 [ OK ] [ 663.839939] vx0: left allmulticast mode [ 663.840345] vx0: left promiscuous mode [ 663.840772] br0: port 2(vx0) entered disabled state [ 663.847837] swp1: left allmulticast mode [ 663.848291] swp1: left promiscuous mode [ 663.848713] br0: port 1(swp1) entered disabled state [ 664.001853] vx0: left allmulticast mode [ 664.002254] vx0: left promiscuous mode [ 664.002678] br0: port 2(vx0) entered disabled state [ 664.009834] swp1: left allmulticast mode [ 664.010211] swp1: left promiscuous mode [ 664.010603] br0: port 1(swp1) entered disabled state [ 664.248028] veth0: renamed from veth1 [ 664.386074] br0: port 1(swp1) entered blocking state [ 664.386366] br0: port 1(swp1) entered disabled state [ 664.386632] swp1: entered allmulticast mode [ 664.386929] swp1: entered promiscuous mode [ 664.387197] br0: port 1(swp1) entered blocking state [ 664.387455] br0: port 1(swp1) entered forwarding state [ 664.412834] br0: port 2(vx0) entered blocking state [ 664.413132] br0: port 2(vx0) entered disabled state [ 664.413440] vx0: entered allmulticast mode [ 664.413756] vx0: entered promiscuous mode [ 664.414019] br0: port 2(vx0) entered blocking state [ 664.414304] br0: port 2(vx0) entered forwarding state [ 664.583145] br0: port 1(swp1) entered blocking state [ 664.583433] br0: port 1(swp1) entered disabled state [ 664.583719] swp1: entered allmulticast mode [ 664.584014] swp1: entered promiscuous mode [ 664.584283] br0: port 1(swp1) entered blocking state [ 664.584541] br0: port 1(swp1) entered forwarding state [ 664.609662] br0: port 2(vx0) entered blocking state [ 664.609957] br0: port 2(vx0) entered disabled state [ 664.610214] vx0: entered allmulticast mode [ 664.610502] vx0: entered promiscuous mode [ 664.610745] br0: port 2(vx0) entered blocking state [ 664.611000] 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 ] [ 670.275883] 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 ] [ 670.973716] br0: port 1(swp1) entered blocking state [ 670.974140] 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 ] [ 671.369486] 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 ] [ 672.017548] br0: port 1(swp1) entered blocking state [ 672.017852] 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 ] [ 673.352420] 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.056881] vx0: left allmulticast mode [ 674.057537] vx0: left promiscuous mode [ 674.058114] br0: port 2(vx0) entered disabled state [ 674.069833] swp1: left allmulticast mode [ 674.070138] swp1: left promiscuous mode [ 674.070659] br0: port 1(swp1) entered disabled state [ 674.226949] vx0: left allmulticast mode [ 674.227355] vx0: left promiscuous mode [ 674.227738] br0: port 2(vx0) entered disabled state [ 674.242846] swp1: left allmulticast mode [ 674.243409] swp1: left promiscuous mode [ 674.243844] br0: port 1(swp1) entered disabled state [ 674.484865] veth0: renamed from veth1 [ 674.625965] br0: port 1(swp1) entered blocking state [ 674.626264] br0: port 1(swp1) entered disabled state [ 674.626579] swp1: entered allmulticast mode [ 674.626886] swp1: entered promiscuous mode [ 674.627161] br0: port 1(swp1) entered blocking state [ 674.627421] br0: port 1(swp1) entered forwarding state [ 674.656543] br0: port 2(vx0) entered blocking state [ 674.656898] br0: port 2(vx0) entered disabled state [ 674.657195] vx0: entered allmulticast mode [ 674.657486] vx0: entered promiscuous mode [ 674.657732] br0: port 2(vx0) entered blocking state [ 674.657995] br0: port 2(vx0) entered forwarding state [ 674.839669] br0: port 1(swp1) entered blocking state [ 674.840020] br0: port 1(swp1) entered disabled state [ 674.840310] swp1: entered allmulticast mode [ 674.840599] swp1: entered promiscuous mode [ 674.840880] br0: port 1(swp1) entered blocking state [ 674.841200] br0: port 1(swp1) entered forwarding state [ 674.867484] br0: port 2(vx0) entered blocking state [ 674.867788] br0: port 2(vx0) entered disabled state [ 674.868046] vx0: entered allmulticast mode [ 674.868331] vx0: entered promiscuous mode [ 674.868582] br0: port 2(vx0) entered blocking state [ 674.868848] 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 ] [ 680.232509] 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 ] [ 683.089909] vx0: left allmulticast mode [ 683.090340] vx0: left promiscuous mode [ 683.090716] br0: port 2(vx0) entered disabled state [ 683.103842] swp1: left allmulticast mode [ 683.104279] swp1: left promiscuous mode [ 683.104700] br0: port 1(swp1) entered disabled state [ 683.268880] vx0: left allmulticast mode [ 683.269374] vx0: left promiscuous mode [ 683.269906] br0: port 2(vx0) entered disabled state [ 683.277874] swp1: left allmulticast mode [ 683.278294] swp1: left promiscuous mode [ 683.278832] br0: port 1(swp1) entered disabled state [ 683.543982] veth0: renamed from veth1 [ 683.687251] br0: port 1(swp1) entered blocking state [ 683.687643] br0: port 1(swp1) entered disabled state [ 683.687932] swp1: entered allmulticast mode [ 683.688237] swp1: entered promiscuous mode [ 683.688526] br0: port 1(swp1) entered blocking state [ 683.688880] br0: port 1(swp1) entered forwarding state [ 683.718207] br0: port 2(vx0) entered blocking state [ 683.718584] br0: port 2(vx0) entered disabled state [ 683.718857] vx0: entered allmulticast mode [ 683.719151] vx0: entered promiscuous mode [ 683.719379] br0: port 2(vx0) entered blocking state [ 683.719731] br0: port 2(vx0) entered forwarding state [ 683.905050] br0: port 1(swp1) entered blocking state [ 683.905485] br0: port 1(swp1) entered disabled state [ 683.905952] swp1: entered allmulticast mode [ 683.906420] swp1: entered promiscuous mode [ 683.906844] br0: port 1(swp1) entered blocking state [ 683.907230] br0: port 1(swp1) entered forwarding state [ 683.936791] br0: port 2(vx0) entered blocking state [ 683.937080] br0: port 2(vx0) entered disabled state [ 683.937338] vx0: entered allmulticast mode [ 683.937622] vx0: entered promiscuous mode [ 683.937864] br0: port 2(vx0) entered blocking state [ 683.938121] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 689.261650] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 690.301783] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 695.373877] vx0: left allmulticast mode [ 695.374374] vx0: left promiscuous mode [ 695.374848] br0: port 2(vx0) entered disabled state [ 695.381852] swp1: left allmulticast mode [ 695.382506] swp1: left promiscuous mode [ 695.383143] br0: port 1(swp1) entered disabled state [ 695.529835] vx0: left allmulticast mode [ 695.530281] vx0: left promiscuous mode [ 695.530679] br0: port 2(vx0) entered disabled state [ 695.537815] swp1: left allmulticast mode [ 695.538185] swp1: left promiscuous mode [ 695.538489] br0: port 1(swp1) entered disabled state [ 695.765883] veth0: renamed from veth1 [ 695.905453] br0: port 1(swp1) entered blocking state [ 695.905759] br0: port 1(swp1) entered disabled state [ 695.906028] swp1: entered allmulticast mode [ 695.906316] swp1: entered promiscuous mode [ 695.906580] br0: port 1(swp1) entered blocking state [ 695.906846] br0: port 1(swp1) entered forwarding state [ 695.933655] br0: port 2(vx0) entered blocking state [ 695.934000] br0: port 2(vx0) entered disabled state [ 695.934259] vx0: entered allmulticast mode [ 695.934556] vx0: entered promiscuous mode [ 695.934793] br0: port 2(vx0) entered blocking state [ 695.935047] br0: port 2(vx0) entered forwarding state [ 696.105177] br0: port 1(swp1) entered blocking state [ 696.105471] br0: port 1(swp1) entered disabled state [ 696.105757] swp1: entered allmulticast mode [ 696.106054] swp1: entered promiscuous mode [ 696.106338] br0: port 1(swp1) entered blocking state [ 696.106597] br0: port 1(swp1) entered forwarding state [ 696.134210] br0: port 2(vx0) entered blocking state [ 696.134510] br0: port 2(vx0) entered disabled state [ 696.134778] vx0: entered allmulticast mode [ 696.135058] vx0: entered promiscuous mode [ 696.135293] br0: port 2(vx0) entered blocking state [ 696.135556] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 701.300065] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 731.384840] vx0: left allmulticast mode [ 731.385251] vx0: left promiscuous mode [ 731.385570] br0: port 2(vx0) entered disabled state # # Tests passed: 82 # Tests failed: 1 [ 731.392832] swp1: left allmulticast mode [ 731.393255] swp1: left promiscuous mode [ 731.393665] 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__-> [ 731.505837] vx0: left allmulticast mode [ 731.506086] vx0: left promiscuous mode [ 731.506297] br0: port 2(vx0) entered disabled state [ 731.511821] swp1: left allmulticast mode [ 731.512049] swp1: left promiscuous mode [ 731.512263] br0: port 1(swp1) entered disabled state xx__-> xx__->