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 [ 633.858519] veth0: renamed from veth1 [ 634.027987] br0: port 1(swp1) entered blocking state [ 634.028282] br0: port 1(swp1) entered disabled state [ 634.028561] swp1: entered allmulticast mode [ 634.028863] swp1: entered promiscuous mode [ 634.029221] br0: port 1(swp1) entered blocking state [ 634.029484] br0: port 1(swp1) entered forwarding state [ 634.065420] br0: port 2(vx0) entered blocking state [ 634.065850] br0: port 2(vx0) entered disabled state [ 634.066246] vx0: entered allmulticast mode [ 634.066680] vx0: entered promiscuous mode [ 634.067095] br0: port 2(vx0) entered blocking state [ 634.067484] br0: port 2(vx0) entered forwarding state [ 634.283829] br0: port 1(swp1) entered blocking state [ 634.284198] br0: port 1(swp1) entered disabled state [ 634.284498] swp1: entered allmulticast mode [ 634.284815] swp1: entered promiscuous mode [ 634.285100] br0: port 1(swp1) entered blocking state [ 634.285370] br0: port 1(swp1) entered forwarding state [ 634.318455] br0: port 2(vx0) entered blocking state [ 634.318755] br0: port 2(vx0) entered disabled state [ 634.319040] vx0: entered allmulticast mode [ 634.319336] vx0: entered promiscuous mode [ 634.319587] br0: port 2(vx0) entered blocking state [ 634.319857] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 639.445923] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 639.886069] 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 ] [ 640.302480] br0: port 1(swp1) entered blocking state [ 640.302786] 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 ] [ 640.888997] 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 ] [ 641.291384] br0: port 1(swp1) entered blocking state [ 641.291730] 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 ] [ 642.099078] 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 ] [ 642.512321] vx0: left allmulticast mode [ 642.512928] vx0: left promiscuous mode [ 642.513228] br0: port 2(vx0) entered disabled state [ 642.513785] swp1: left allmulticast mode [ 642.514056] swp1: left promiscuous mode [ 642.514458] br0: port 1(swp1) entered disabled state [ 642.595135] vx0: left allmulticast mode [ 642.595379] vx0: left promiscuous mode [ 642.595602] br0: port 2(vx0) entered disabled state [ 642.596036] swp1: left allmulticast mode [ 642.596435] swp1: left promiscuous mode [ 642.596849] br0: port 1(swp1) entered disabled state [ 642.993123] veth0: renamed from veth1 [ 643.152737] br0: port 1(swp1) entered blocking state [ 643.153106] br0: port 1(swp1) entered disabled state [ 643.153403] swp1: entered allmulticast mode [ 643.153701] swp1: entered promiscuous mode [ 643.154005] br0: port 1(swp1) entered blocking state [ 643.154281] br0: port 1(swp1) entered forwarding state [ 643.189644] br0: port 2(vx0) entered blocking state [ 643.190086] br0: port 2(vx0) entered disabled state [ 643.190480] vx0: entered allmulticast mode [ 643.190973] vx0: entered promiscuous mode [ 643.191311] br0: port 2(vx0) entered blocking state [ 643.191689] br0: port 2(vx0) entered forwarding state [ 643.396776] br0: port 1(swp1) entered blocking state [ 643.397104] br0: port 1(swp1) entered disabled state [ 643.397381] swp1: entered allmulticast mode [ 643.397719] swp1: entered promiscuous mode [ 643.398028] br0: port 1(swp1) entered blocking state [ 643.398290] br0: port 1(swp1) entered forwarding state [ 643.427254] br0: port 2(vx0) entered blocking state [ 643.427556] br0: port 2(vx0) entered disabled state [ 643.427820] vx0: entered allmulticast mode [ 643.428216] vx0: entered promiscuous mode [ 643.428447] br0: port 2(vx0) entered blocking state [ 643.428709] 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 ] [ 649.111066] 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 ] [ 649.849360] br0: port 1(swp1) entered blocking state [ 649.849774] 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 ] [ 650.302166] 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 ] [ 651.025983] br0: port 1(swp1) entered blocking state [ 651.026278] 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 ] [ 652.459887] 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 ] [ 653.152667] vx0: left allmulticast mode [ 653.153009] vx0: left promiscuous mode [ 653.153426] br0: port 2(vx0) entered disabled state [ 653.153865] swp1: left allmulticast mode [ 653.154088] swp1: left promiscuous mode [ 653.154384] br0: port 1(swp1) entered disabled state [ 653.236059] vx0: left allmulticast mode [ 653.236505] vx0: left promiscuous mode [ 653.236975] br0: port 2(vx0) entered disabled state [ 653.237388] swp1: left allmulticast mode [ 653.237817] swp1: left promiscuous mode [ 653.238219] br0: port 1(swp1) entered disabled state [ 653.623920] veth0: renamed from veth1 [ 653.793801] br0: port 1(swp1) entered blocking state [ 653.794103] br0: port 1(swp1) entered disabled state [ 653.794374] swp1: entered allmulticast mode [ 653.794686] swp1: entered promiscuous mode [ 653.794971] br0: port 1(swp1) entered blocking state [ 653.795243] br0: port 1(swp1) entered forwarding state [ 653.832857] br0: port 2(vx0) entered blocking state [ 653.833302] br0: port 2(vx0) entered disabled state [ 653.833668] vx0: entered allmulticast mode [ 653.834065] vx0: entered promiscuous mode [ 653.834363] br0: port 2(vx0) entered blocking state [ 653.834727] br0: port 2(vx0) entered forwarding state [ 654.056037] br0: port 1(swp1) entered blocking state [ 654.056340] br0: port 1(swp1) entered disabled state [ 654.056621] swp1: entered allmulticast mode [ 654.056982] swp1: entered promiscuous mode [ 654.057255] br0: port 1(swp1) entered blocking state [ 654.057562] br0: port 1(swp1) entered forwarding state [ 654.092159] br0: port 2(vx0) entered blocking state [ 654.092582] br0: port 2(vx0) entered disabled state [ 654.092862] vx0: entered allmulticast mode [ 654.093157] vx0: entered promiscuous mode [ 654.093405] br0: port 2(vx0) entered blocking state [ 654.093662] 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 ] [ 659.511427] 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 ] [ 662.518871] vx0: left allmulticast mode [ 662.519125] vx0: left promiscuous mode [ 662.519352] br0: port 2(vx0) entered disabled state [ 662.520450] swp1: left allmulticast mode [ 662.520676] swp1: left promiscuous mode [ 662.520901] br0: port 1(swp1) entered disabled state [ 662.614184] vx0: left allmulticast mode [ 662.614728] vx0: left promiscuous mode [ 662.615337] br0: port 2(vx0) entered disabled state [ 662.616221] swp1: left allmulticast mode [ 662.616755] swp1: left promiscuous mode [ 662.617357] br0: port 1(swp1) entered disabled state [ 663.042198] veth0: renamed from veth1 [ 663.216583] br0: port 1(swp1) entered blocking state [ 663.217028] br0: port 1(swp1) entered disabled state [ 663.217460] swp1: entered allmulticast mode [ 663.217933] swp1: entered promiscuous mode [ 663.218363] br0: port 1(swp1) entered blocking state [ 663.218760] br0: port 1(swp1) entered forwarding state [ 663.253427] br0: port 2(vx0) entered blocking state [ 663.253849] br0: port 2(vx0) entered disabled state [ 663.254258] vx0: entered allmulticast mode [ 663.254703] vx0: entered promiscuous mode [ 663.255133] br0: port 2(vx0) entered blocking state [ 663.255528] br0: port 2(vx0) entered forwarding state [ 663.460192] br0: port 1(swp1) entered blocking state [ 663.460498] br0: port 1(swp1) entered disabled state [ 663.460776] swp1: entered allmulticast mode [ 663.461179] swp1: entered promiscuous mode [ 663.461468] br0: port 1(swp1) entered blocking state [ 663.461762] br0: port 1(swp1) entered forwarding state [ 663.493572] br0: port 2(vx0) entered blocking state [ 663.493938] br0: port 2(vx0) entered disabled state [ 663.494278] vx0: entered allmulticast mode [ 663.494622] vx0: entered promiscuous mode [ 663.494933] br0: port 2(vx0) entered blocking state [ 663.495280] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 668.863111] br0: port 1(swp1) entered disabled state [ 669.889114] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 675.992618] vx0: left allmulticast mode [ 675.993122] vx0: left promiscuous mode [ 675.993454] br0: port 2(vx0) entered disabled state [ 675.994079] swp1: left allmulticast mode [ 675.994396] swp1: left promiscuous mode [ 675.994992] br0: port 1(swp1) entered disabled state [ 676.080105] vx0: left allmulticast mode [ 676.080561] vx0: left promiscuous mode [ 676.081053] br0: port 2(vx0) entered disabled state [ 676.082020] swp1: left allmulticast mode [ 676.082581] swp1: left promiscuous mode [ 676.083113] br0: port 1(swp1) entered disabled state [ 676.478154] veth0: renamed from veth1 [ 676.644651] br0: port 1(swp1) entered blocking state [ 676.644982] br0: port 1(swp1) entered disabled state [ 676.645283] swp1: entered allmulticast mode [ 676.645584] swp1: entered promiscuous mode [ 676.645862] br0: port 1(swp1) entered blocking state [ 676.646138] br0: port 1(swp1) entered forwarding state [ 676.681252] br0: port 2(vx0) entered blocking state [ 676.681548] br0: port 2(vx0) entered disabled state [ 676.681825] vx0: entered allmulticast mode [ 676.682134] vx0: entered promiscuous mode [ 676.682371] br0: port 2(vx0) entered blocking state [ 676.682649] br0: port 2(vx0) entered forwarding state [ 676.918153] br0: port 1(swp1) entered blocking state [ 676.918572] br0: port 1(swp1) entered disabled state [ 676.918998] swp1: entered allmulticast mode [ 676.919454] swp1: entered promiscuous mode [ 676.919883] br0: port 1(swp1) entered blocking state [ 676.920276] br0: port 1(swp1) entered forwarding state [ 676.952850] br0: port 2(vx0) entered blocking state [ 676.953189] br0: port 2(vx0) entered disabled state [ 676.953489] vx0: entered allmulticast mode [ 676.953817] vx0: entered promiscuous mode [ 676.954110] br0: port 2(vx0) entered blocking state [ 676.954395] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 682.136078] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 712.178583] vx0: left allmulticast mode [ 712.179067] vx0: left promiscuous mode [ 712.179424] br0: port 2(vx0) entered disabled state [ 712.179900] swp1: left allmulticast mode [ 712.180116] swp1: left promiscuous mode [ 712.180331] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 712.276110] vx0: left allmulticast mode [ 712.276693] vx0: left promiscuous mode [ 712.277174] br0: port 2(vx0) entered disabled state [ 712.277774] swp1: left allmulticast mode [ 712.278002] swp1: left promiscuous mode [ 712.278347] 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__->