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 [ 632.814062] veth0: renamed from veth1 [ 632.974224] br0: port 1(swp1) entered blocking state [ 632.974550] br0: port 1(swp1) entered disabled state [ 632.974869] swp1: entered allmulticast mode [ 632.975190] swp1: entered promiscuous mode [ 632.975488] br0: port 1(swp1) entered blocking state [ 632.975768] br0: port 1(swp1) entered forwarding state [ 633.008746] br0: port 2(vx0) entered blocking state [ 633.009208] br0: port 2(vx0) entered disabled state [ 633.009588] vx0: entered allmulticast mode [ 633.010032] vx0: entered promiscuous mode [ 633.010370] br0: port 2(vx0) entered blocking state [ 633.010746] br0: port 2(vx0) entered forwarding state [ 633.211082] br0: port 1(swp1) entered blocking state [ 633.211404] br0: port 1(swp1) entered disabled state [ 633.211703] swp1: entered allmulticast mode [ 633.212028] swp1: entered promiscuous mode [ 633.212336] br0: port 1(swp1) entered blocking state [ 633.212627] br0: port 1(swp1) entered forwarding state [ 633.246132] br0: port 2(vx0) entered blocking state [ 633.246429] br0: port 2(vx0) entered disabled state [ 633.246711] vx0: entered allmulticast mode [ 633.247010] vx0: entered promiscuous mode [ 633.247254] br0: port 2(vx0) entered blocking state [ 633.247543] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 638.351958] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 638.769555] 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 ] [ 639.193688] br0: port 1(swp1) entered blocking state [ 639.194132] 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 ] [ 639.772863] 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 ] [ 640.184392] br0: port 1(swp1) entered blocking state [ 640.184700] 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 ] [ 640.998504] 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 ] [ 641.447900] vx0: left allmulticast mode [ 641.448379] vx0: left promiscuous mode [ 641.448877] br0: port 2(vx0) entered disabled state [ 641.459934] swp1: left allmulticast mode [ 641.460412] swp1: left promiscuous mode [ 641.460840] br0: port 1(swp1) entered disabled state [ 641.559913] vx0: left allmulticast mode [ 641.560441] vx0: left promiscuous mode [ 641.560915] br0: port 2(vx0) entered disabled state [ 641.571936] swp1: left allmulticast mode [ 641.572247] swp1: left promiscuous mode [ 641.572487] br0: port 1(swp1) entered disabled state [ 641.995070] veth0: renamed from veth1 [ 642.175944] br0: port 1(swp1) entered blocking state [ 642.176252] br0: port 1(swp1) entered disabled state [ 642.176534] swp1: entered allmulticast mode [ 642.176947] swp1: entered promiscuous mode [ 642.177232] br0: port 1(swp1) entered blocking state [ 642.177504] br0: port 1(swp1) entered forwarding state [ 642.212463] br0: port 2(vx0) entered blocking state [ 642.212853] br0: port 2(vx0) entered disabled state [ 642.213180] vx0: entered allmulticast mode [ 642.213476] vx0: entered promiscuous mode [ 642.213723] br0: port 2(vx0) entered blocking state [ 642.213998] br0: port 2(vx0) entered forwarding state [ 642.429942] br0: port 1(swp1) entered blocking state [ 642.430300] br0: port 1(swp1) entered disabled state [ 642.430704] swp1: entered allmulticast mode [ 642.431157] swp1: entered promiscuous mode [ 642.431571] br0: port 1(swp1) entered blocking state [ 642.431978] br0: port 1(swp1) entered forwarding state [ 642.462902] br0: port 2(vx0) entered blocking state [ 642.463325] br0: port 2(vx0) entered disabled state [ 642.463712] vx0: entered allmulticast mode [ 642.464251] vx0: entered promiscuous mode [ 642.464607] br0: port 2(vx0) entered blocking state [ 642.465017] 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 ] [ 648.148094] 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 ] [ 648.886300] br0: port 1(swp1) entered blocking state [ 648.886605] 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 ] [ 649.334744] 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 ] [ 650.042684] br0: port 1(swp1) entered blocking state [ 650.043010] 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 ] [ 651.442496] 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 ] [ 652.164888] vx0: left allmulticast mode [ 652.165382] vx0: left promiscuous mode [ 652.165807] br0: port 2(vx0) entered disabled state [ 652.177914] swp1: left allmulticast mode [ 652.178222] swp1: left promiscuous mode [ 652.178542] br0: port 1(swp1) entered disabled state [ 652.316948] vx0: left allmulticast mode [ 652.317548] vx0: left promiscuous mode [ 652.318165] br0: port 2(vx0) entered disabled state [ 652.330013] swp1: left allmulticast mode [ 652.330683] swp1: left promiscuous mode [ 652.331389] br0: port 1(swp1) entered disabled state [ 652.652955] veth0: renamed from veth1 [ 652.826992] br0: port 1(swp1) entered blocking state [ 652.827302] br0: port 1(swp1) entered disabled state [ 652.827591] swp1: entered allmulticast mode [ 652.827938] swp1: entered promiscuous mode [ 652.828248] br0: port 1(swp1) entered blocking state [ 652.828535] br0: port 1(swp1) entered forwarding state [ 652.866363] br0: port 2(vx0) entered blocking state [ 652.866844] br0: port 2(vx0) entered disabled state [ 652.867238] vx0: entered allmulticast mode [ 652.867670] vx0: entered promiscuous mode [ 652.868103] br0: port 2(vx0) entered blocking state [ 652.868493] br0: port 2(vx0) entered forwarding state [ 653.064117] br0: port 1(swp1) entered blocking state [ 653.064438] br0: port 1(swp1) entered disabled state [ 653.064732] swp1: entered allmulticast mode [ 653.065156] swp1: entered promiscuous mode [ 653.065463] br0: port 1(swp1) entered blocking state [ 653.065760] br0: port 1(swp1) entered forwarding state [ 653.100896] br0: port 2(vx0) entered blocking state [ 653.101288] br0: port 2(vx0) entered disabled state [ 653.101600] vx0: entered allmulticast mode [ 653.101906] vx0: entered promiscuous mode [ 653.102198] br0: port 2(vx0) entered blocking state [ 653.102477] 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 ] [ 658.479228] 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 ] [ 661.482979] vx0: left allmulticast mode [ 661.483468] vx0: left promiscuous mode [ 661.483819] br0: port 2(vx0) entered disabled state [ 661.499055] swp1: left allmulticast mode [ 661.499580] swp1: left promiscuous mode [ 661.500037] br0: port 1(swp1) entered disabled state [ 661.621916] vx0: left allmulticast mode [ 661.622562] vx0: left promiscuous mode [ 661.623182] br0: port 2(vx0) entered disabled state [ 661.632936] swp1: left allmulticast mode [ 661.633278] swp1: left promiscuous mode [ 661.633718] br0: port 1(swp1) entered disabled state [ 661.967078] veth0: renamed from veth1 [ 662.125333] br0: port 1(swp1) entered blocking state [ 662.125639] br0: port 1(swp1) entered disabled state [ 662.126023] swp1: entered allmulticast mode [ 662.126333] swp1: entered promiscuous mode [ 662.126621] br0: port 1(swp1) entered blocking state [ 662.126902] br0: port 1(swp1) entered forwarding state [ 662.157873] br0: port 2(vx0) entered blocking state [ 662.158178] br0: port 2(vx0) entered disabled state [ 662.158444] vx0: entered allmulticast mode [ 662.158743] vx0: entered promiscuous mode [ 662.159008] br0: port 2(vx0) entered blocking state [ 662.159285] br0: port 2(vx0) entered forwarding state [ 662.356693] br0: port 1(swp1) entered blocking state [ 662.357125] br0: port 1(swp1) entered disabled state [ 662.357512] swp1: entered allmulticast mode [ 662.358026] swp1: entered promiscuous mode [ 662.358417] br0: port 1(swp1) entered blocking state [ 662.358801] br0: port 1(swp1) entered forwarding state [ 662.390064] br0: port 2(vx0) entered blocking state [ 662.390479] br0: port 2(vx0) entered disabled state [ 662.390870] vx0: entered allmulticast mode [ 662.391296] vx0: entered promiscuous mode [ 662.391641] br0: port 2(vx0) entered blocking state [ 662.392020] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 667.769394] br0: port 1(swp1) entered disabled state [ 668.796874] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 674.888884] vx0: left allmulticast mode [ 674.889237] vx0: left promiscuous mode [ 674.889475] br0: port 2(vx0) entered disabled state [ 674.903926] swp1: left allmulticast mode [ 674.904297] swp1: left promiscuous mode [ 674.904615] br0: port 1(swp1) entered disabled state [ 675.026878] vx0: left allmulticast mode [ 675.027376] vx0: left promiscuous mode [ 675.027811] br0: port 2(vx0) entered disabled state [ 675.038886] swp1: left allmulticast mode [ 675.039286] swp1: left promiscuous mode [ 675.039720] br0: port 1(swp1) entered disabled state [ 675.342057] veth0: renamed from veth1 [ 675.490700] br0: port 1(swp1) entered blocking state [ 675.491014] br0: port 1(swp1) entered disabled state [ 675.491295] swp1: entered allmulticast mode [ 675.491595] swp1: entered promiscuous mode [ 675.491881] br0: port 1(swp1) entered blocking state [ 675.492150] br0: port 1(swp1) entered forwarding state [ 675.525863] br0: port 2(vx0) entered blocking state [ 675.526178] br0: port 2(vx0) entered disabled state [ 675.526484] vx0: entered allmulticast mode [ 675.526792] vx0: entered promiscuous mode [ 675.527043] br0: port 2(vx0) entered blocking state [ 675.527330] br0: port 2(vx0) entered forwarding state [ 675.737147] br0: port 1(swp1) entered blocking state [ 675.737575] br0: port 1(swp1) entered disabled state [ 675.737999] swp1: entered allmulticast mode [ 675.738449] swp1: entered promiscuous mode [ 675.738872] br0: port 1(swp1) entered blocking state [ 675.739267] br0: port 1(swp1) entered forwarding state [ 675.767589] br0: port 2(vx0) entered blocking state [ 675.767920] br0: port 2(vx0) entered disabled state [ 675.768196] vx0: entered allmulticast mode [ 675.768493] vx0: entered promiscuous mode [ 675.768728] br0: port 2(vx0) entered blocking state [ 675.769010] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 680.942805] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 710.988940] vx0: left allmulticast mode [ 710.989285] vx0: left promiscuous mode [ 710.989639] br0: port 2(vx0) entered disabled state [ 711.001975] swp1: left allmulticast mode [ 711.002625] swp1: left promiscuous mode [ 711.003211] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 711.110889] vx0: left allmulticast mode [ 711.111191] vx0: left promiscuous mode [ 711.111502] br0: port 2(vx0) entered disabled state [ 711.123973] swp1: left allmulticast mode [ 711.124315] swp1: left promiscuous mode [ 711.124664] br0: port 1(swp1) entered disabled state ok 1 selftests: net: test_bridge_backup_port.sh 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__->