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 [ 645.070107] veth0: renamed from veth1 [ 645.230718] br0: port 1(swp1) entered blocking state [ 645.231013] br0: port 1(swp1) entered disabled state [ 645.231283] swp1: entered allmulticast mode [ 645.231583] swp1: entered promiscuous mode [ 645.231867] br0: port 1(swp1) entered blocking state [ 645.232126] br0: port 1(swp1) entered forwarding state [ 645.264041] br0: port 2(vx0) entered blocking state [ 645.264326] br0: port 2(vx0) entered disabled state [ 645.264592] vx0: entered allmulticast mode [ 645.264959] vx0: entered promiscuous mode [ 645.265203] br0: port 2(vx0) entered blocking state [ 645.265456] br0: port 2(vx0) entered forwarding state [ 645.456950] br0: port 1(swp1) entered blocking state [ 645.457257] br0: port 1(swp1) entered disabled state [ 645.457538] swp1: entered allmulticast mode [ 645.457838] swp1: entered promiscuous mode [ 645.458111] br0: port 1(swp1) entered blocking state [ 645.458369] br0: port 1(swp1) entered forwarding state [ 645.488851] br0: port 2(vx0) entered blocking state [ 645.489135] br0: port 2(vx0) entered disabled state [ 645.489399] vx0: entered allmulticast mode [ 645.489692] vx0: entered promiscuous mode [ 645.489929] br0: port 2(vx0) entered blocking state [ 645.490184] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 650.595486] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 651.004055] 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 ] [ 651.361036] br0: port 1(swp1) entered blocking state [ 651.361375] 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 ] [ 652.004829] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 652.097779] br0: port 1(swp1) entered blocking state [ 652.098080] 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 ] # TEST: No forwarding out of swp1 [FAIL] [ 653.013751] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of vx0 [ OK ] [ 653.217848] vx0: left allmulticast mode [ 653.218085] vx0: left promiscuous mode [ 653.218293] br0: port 2(vx0) entered disabled state [ 653.230847] swp1: left allmulticast mode [ 653.231116] swp1: left promiscuous mode [ 653.231393] br0: port 1(swp1) entered disabled state [ 653.370843] vx0: left allmulticast mode [ 653.371326] vx0: left promiscuous mode [ 653.371814] br0: port 2(vx0) entered disabled state [ 653.383769] swp1: left allmulticast mode [ 653.384225] swp1: left promiscuous mode [ 653.384499] br0: port 1(swp1) entered disabled state [ 653.615864] veth0: renamed from veth1 [ 653.749744] br0: port 1(swp1) entered blocking state [ 653.750048] br0: port 1(swp1) entered disabled state [ 653.750316] swp1: entered allmulticast mode [ 653.750612] swp1: entered promiscuous mode [ 653.750975] br0: port 1(swp1) entered blocking state [ 653.751244] br0: port 1(swp1) entered forwarding state [ 653.774595] br0: port 2(vx0) entered blocking state [ 653.774957] br0: port 2(vx0) entered disabled state [ 653.775302] vx0: entered allmulticast mode [ 653.775666] vx0: entered promiscuous mode [ 653.775987] br0: port 2(vx0) entered blocking state [ 653.776307] br0: port 2(vx0) entered forwarding state [ 653.932844] br0: port 1(swp1) entered blocking state [ 653.933135] br0: port 1(swp1) entered disabled state [ 653.933402] swp1: entered allmulticast mode [ 653.933704] swp1: entered promiscuous mode [ 653.933978] br0: port 1(swp1) entered blocking state [ 653.934238] br0: port 1(swp1) entered forwarding state [ 653.958155] br0: port 2(vx0) entered blocking state [ 653.958432] br0: port 2(vx0) entered disabled state [ 653.958698] vx0: entered allmulticast mode [ 653.958976] vx0: entered promiscuous mode [ 653.959201] br0: port 2(vx0) entered blocking state [ 653.959456] 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 ] [ 659.547875] 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 ] [ 660.178326] br0: port 1(swp1) entered blocking state [ 660.178612] 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 ] [ 660.560108] 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 ] [ 661.209797] br0: port 1(swp1) entered blocking state [ 661.210103] 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 ] [ 662.522224] 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 ] [ 663.218866] vx0: left allmulticast mode [ 663.219376] vx0: left promiscuous mode [ 663.219934] br0: port 2(vx0) entered disabled state [ 663.226793] swp1: left allmulticast mode [ 663.227141] swp1: left promiscuous mode [ 663.227553] br0: port 1(swp1) entered disabled state [ 663.372839] vx0: left allmulticast mode [ 663.373350] vx0: left promiscuous mode [ 663.373758] br0: port 2(vx0) entered disabled state [ 663.389797] swp1: left allmulticast mode [ 663.390309] swp1: left promiscuous mode [ 663.390769] br0: port 1(swp1) entered disabled state [ 663.641963] veth0: renamed from veth1 [ 663.775084] br0: port 1(swp1) entered blocking state [ 663.775457] br0: port 1(swp1) entered disabled state [ 663.775854] swp1: entered allmulticast mode [ 663.776259] swp1: entered promiscuous mode [ 663.776686] br0: port 1(swp1) entered blocking state [ 663.777070] br0: port 1(swp1) entered forwarding state [ 663.801873] br0: port 2(vx0) entered blocking state [ 663.802221] br0: port 2(vx0) entered disabled state [ 663.802507] vx0: entered allmulticast mode [ 663.802898] vx0: entered promiscuous mode [ 663.803233] br0: port 2(vx0) entered blocking state [ 663.803601] br0: port 2(vx0) entered forwarding state [ 663.972708] br0: port 1(swp1) entered blocking state [ 663.973141] br0: port 1(swp1) entered disabled state [ 663.973547] swp1: entered allmulticast mode [ 663.974078] swp1: entered promiscuous mode [ 663.974499] br0: port 1(swp1) entered blocking state [ 663.974906] br0: port 1(swp1) entered forwarding state [ 664.000100] br0: port 2(vx0) entered blocking state [ 664.000386] br0: port 2(vx0) entered disabled state [ 664.000659] vx0: entered allmulticast mode [ 664.000935] vx0: entered promiscuous mode [ 664.001163] br0: port 2(vx0) entered blocking state [ 664.001418] 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 ] [ 669.363738] 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 ] [ 672.337899] vx0: left allmulticast mode [ 672.338490] vx0: left promiscuous mode [ 672.339077] br0: port 2(vx0) entered disabled state [ 672.351764] swp1: left allmulticast mode [ 672.352145] swp1: left promiscuous mode [ 672.352360] br0: port 1(swp1) entered disabled state [ 672.490787] vx0: left allmulticast mode [ 672.491295] vx0: left promiscuous mode [ 672.491790] br0: port 2(vx0) entered disabled state [ 672.498779] swp1: left allmulticast mode [ 672.499230] swp1: left promiscuous mode [ 672.499710] br0: port 1(swp1) entered disabled state [ 672.745864] veth0: renamed from veth1 [ 672.901842] br0: port 1(swp1) entered blocking state [ 672.902249] br0: port 1(swp1) entered disabled state [ 672.902632] swp1: entered allmulticast mode [ 672.903138] swp1: entered promiscuous mode [ 672.903524] br0: port 1(swp1) entered blocking state [ 672.903890] br0: port 1(swp1) entered forwarding state [ 672.933810] br0: port 2(vx0) entered blocking state [ 672.934100] br0: port 2(vx0) entered disabled state [ 672.934357] vx0: entered allmulticast mode [ 672.934654] vx0: entered promiscuous mode [ 672.934906] br0: port 2(vx0) entered blocking state [ 672.935162] br0: port 2(vx0) entered forwarding state [ 673.126345] br0: port 1(swp1) entered blocking state [ 673.126739] br0: port 1(swp1) entered disabled state [ 673.127013] swp1: entered allmulticast mode [ 673.127312] swp1: entered promiscuous mode [ 673.127597] br0: port 1(swp1) entered blocking state [ 673.127876] br0: port 1(swp1) entered forwarding state [ 673.158672] br0: port 2(vx0) entered blocking state [ 673.158962] br0: port 2(vx0) entered disabled state [ 673.159218] vx0: entered allmulticast mode [ 673.159495] vx0: entered promiscuous mode [ 673.159748] br0: port 2(vx0) entered blocking state [ 673.160004] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 678.491552] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 679.548737] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 684.603824] vx0: left allmulticast mode [ 684.604213] vx0: left promiscuous mode [ 684.604613] br0: port 2(vx0) entered disabled state [ 684.615802] swp1: left allmulticast mode [ 684.616388] swp1: left promiscuous mode [ 684.617061] br0: port 1(swp1) entered disabled state [ 684.774782] vx0: left allmulticast mode [ 684.775198] vx0: left promiscuous mode [ 684.775567] br0: port 2(vx0) entered disabled state [ 684.781813] swp1: left allmulticast mode [ 684.782383] swp1: left promiscuous mode [ 684.782706] br0: port 1(swp1) entered disabled state [ 685.026886] veth0: renamed from veth1 [ 685.172194] br0: port 1(swp1) entered blocking state [ 685.172630] br0: port 1(swp1) entered disabled state [ 685.173048] swp1: entered allmulticast mode [ 685.173488] swp1: entered promiscuous mode [ 685.173916] br0: port 1(swp1) entered blocking state [ 685.174307] br0: port 1(swp1) entered forwarding state [ 685.203886] br0: port 2(vx0) entered blocking state [ 685.204175] br0: port 2(vx0) entered disabled state [ 685.204433] vx0: entered allmulticast mode [ 685.204728] vx0: entered promiscuous mode [ 685.205036] br0: port 2(vx0) entered blocking state [ 685.205289] br0: port 2(vx0) entered forwarding state [ 685.383550] br0: port 1(swp1) entered blocking state [ 685.383953] br0: port 1(swp1) entered disabled state [ 685.384381] swp1: entered allmulticast mode [ 685.384830] swp1: entered promiscuous mode [ 685.385238] br0: port 1(swp1) entered blocking state [ 685.385633] br0: port 1(swp1) entered forwarding state [ 685.413073] br0: port 2(vx0) entered blocking state [ 685.413366] br0: port 2(vx0) entered disabled state [ 685.413622] vx0: entered allmulticast mode [ 685.414000] vx0: entered promiscuous mode [ 685.414230] br0: port 2(vx0) entered blocking state [ 685.414486] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 690.564346] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] # # Tests passed: 82 # T[ 720.647874] vx0: left allmulticast mode [ 720.648214] vx0: left promiscuous mode e[ 720.648433] br0: port 2(vx0) entered disabled state sts failed: 1 [ 720.655839] swp1: left allmulticast mode [ 720.656296] swp1: left promiscuous mode [ 720.656769] 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__->