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 [ 529.958063] veth0: renamed from veth1 [ 530.058473] br0: port 1(swp1) entered blocking state [ 530.058780] br0: port 1(swp1) entered disabled state [ 530.059072] swp1: entered allmulticast mode [ 530.059378] swp1: entered promiscuous mode [ 530.059656] br0: port 1(swp1) entered blocking state [ 530.059936] br0: port 1(swp1) entered forwarding state [ 530.078660] br0: port 2(vx0) entered blocking state [ 530.078958] br0: port 2(vx0) entered disabled state [ 530.079225] vx0: entered allmulticast mode [ 530.079510] vx0: entered promiscuous mode [ 530.079740] br0: port 2(vx0) entered blocking state [ 530.080012] br0: port 2(vx0) entered forwarding state [ 530.205533] br0: port 1(swp1) entered blocking state [ 530.205860] br0: port 1(swp1) entered disabled state [ 530.206140] swp1: entered allmulticast mode [ 530.206433] swp1: entered promiscuous mode [ 530.206728] br0: port 1(swp1) entered blocking state [ 530.207012] br0: port 1(swp1) entered forwarding state [ 530.227213] br0: port 2(vx0) entered blocking state [ 530.227512] br0: port 2(vx0) entered disabled state [ 530.227790] vx0: entered allmulticast mode [ 530.228101] vx0: entered promiscuous mode [ 530.228343] br0: port 2(vx0) entered blocking state [ 530.228611] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 535.296550] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 535.673513] 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 ] [ 537.009486] br0: port 1(swp1) entered blocking state [ 537.009783] 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 ] [ 538.042927] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] [ 538.681466] br0: port 1(swp1) entered blocking state [ 538.681768] 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 ] [ 540.332919] 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 ] [ 541.715043] vx0: left allmulticast mode [ 541.715390] vx0: left promiscuous mode [ 541.715734] br0: port 2(vx0) entered disabled state [ 541.726929] swp1: left allmulticast mode [ 541.727239] swp1: left promiscuous mode [ 541.727580] br0: port 1(swp1) entered disabled state [ 541.871937] vx0: left allmulticast mode [ 541.872195] vx0: left promiscuous mode [ 541.872415] br0: port 2(vx0) entered disabled state [ 541.882961] swp1: left allmulticast mode [ 541.883363] swp1: left promiscuous mode [ 541.883692] br0: port 1(swp1) entered disabled state [ 542.003183] veth0: renamed from veth1 [ 542.098886] br0: port 1(swp1) entered blocking state [ 542.099189] br0: port 1(swp1) entered disabled state [ 542.099467] swp1: entered allmulticast mode [ 542.099758] swp1: entered promiscuous mode [ 542.100071] br0: port 1(swp1) entered blocking state [ 542.100347] br0: port 1(swp1) entered forwarding state [ 542.118499] br0: port 2(vx0) entered blocking state [ 542.118794] br0: port 2(vx0) entered disabled state [ 542.119086] vx0: entered allmulticast mode [ 542.119379] vx0: entered promiscuous mode [ 542.119627] br0: port 2(vx0) entered blocking state [ 542.119900] br0: port 2(vx0) entered forwarding state [ 542.234804] br0: port 1(swp1) entered blocking state [ 542.235120] br0: port 1(swp1) entered disabled state [ 542.235398] swp1: entered allmulticast mode [ 542.235691] swp1: entered promiscuous mode [ 542.235973] br0: port 1(swp1) entered blocking state [ 542.236244] br0: port 1(swp1) entered forwarding state [ 542.254316] br0: port 2(vx0) entered blocking state [ 542.254600] br0: port 2(vx0) entered disabled state [ 542.254909] vx0: entered allmulticast mode [ 542.255212] vx0: entered promiscuous mode [ 542.255451] br0: port 2(vx0) entered blocking state [ 542.255712] 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 ] [ 547.756855] 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 ] [ 549.355226] br0: port 1(swp1) entered blocking state [ 549.355539] 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 ] # TEST: swp1 carrier off [ OK ] [ 550.394979] br0: port 1(swp1) entered disabled state # 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 ] [ 551.301236] br0: port 1(swp1) entered blocking state [ 551.301539] 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 ] [ 553.493801] 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 ] [ 555.142034] vx0: left allmulticast mode [ 555.142387] vx0: left promiscuous mode [ 555.142698] br0: port 2(vx0) entered disabled state [ 555.154932] swp1: left allmulticast mode [ 555.155325] swp1: left promiscuous mode [ 555.155749] br0: port 1(swp1) entered disabled state [ 555.275928] vx0: left allmulticast mode [ 555.276402] vx0: left promiscuous mode [ 555.276843] br0: port 2(vx0) entered disabled state [ 555.285911] swp1: left allmulticast mode [ 555.286370] swp1: left promiscuous mode [ 555.286797] br0: port 1(swp1) entered disabled state [ 555.475682] veth0: renamed from veth1 [ 555.578190] br0: port 1(swp1) entered blocking state [ 555.578505] br0: port 1(swp1) entered disabled state [ 555.578788] swp1: entered allmulticast mode [ 555.579103] swp1: entered promiscuous mode [ 555.579377] br0: port 1(swp1) entered blocking state [ 555.579653] br0: port 1(swp1) entered forwarding state [ 555.597756] br0: port 2(vx0) entered blocking state [ 555.598069] br0: port 2(vx0) entered disabled state [ 555.598335] vx0: entered allmulticast mode [ 555.598614] vx0: entered promiscuous mode [ 555.598871] br0: port 2(vx0) entered blocking state [ 555.599133] br0: port 2(vx0) entered forwarding state [ 555.713084] br0: port 1(swp1) entered blocking state [ 555.713388] br0: port 1(swp1) entered disabled state [ 555.713663] swp1: entered allmulticast mode [ 555.713969] swp1: entered promiscuous mode [ 555.714247] br0: port 1(swp1) entered blocking state [ 555.714517] br0: port 1(swp1) entered forwarding state [ 555.732401] br0: port 2(vx0) entered blocking state [ 555.732687] br0: port 2(vx0) entered disabled state [ 555.732968] vx0: entered allmulticast mode [ 555.733258] vx0: entered promiscuous mode [ 555.733503] br0: port 2(vx0) entered blocking state [ 555.733772] 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 ] [ 560.984785] 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 ] [ 564.706953] vx0: left allmulticast mode [ 564.707368] vx0: left promiscuous mode [ 564.707611] br0: port 2(vx0) entered disabled state [ 564.719933] swp1: left allmulticast mode [ 564.720366] swp1: left promiscuous mode [ 564.720701] br0: port 1(swp1) entered disabled state [ 564.842975] vx0: left allmulticast mode [ 564.843328] vx0: left promiscuous mode [ 564.843557] br0: port 2(vx0) entered disabled state [ 564.854921] swp1: left allmulticast mode [ 564.855157] swp1: left promiscuous mode [ 564.855384] br0: port 1(swp1) entered disabled state [ 565.017085] veth0: renamed from veth1 [ 565.109045] br0: port 1(swp1) entered blocking state [ 565.109352] br0: port 1(swp1) entered disabled state [ 565.109624] swp1: entered allmulticast mode [ 565.109933] swp1: entered promiscuous mode [ 565.110208] br0: port 1(swp1) entered blocking state [ 565.110479] br0: port 1(swp1) entered forwarding state [ 565.128206] br0: port 2(vx0) entered blocking state [ 565.128492] br0: port 2(vx0) entered disabled state [ 565.128756] vx0: entered allmulticast mode [ 565.129059] vx0: entered promiscuous mode [ 565.129294] br0: port 2(vx0) entered blocking state [ 565.129558] br0: port 2(vx0) entered forwarding state [ 565.245831] br0: port 1(swp1) entered blocking state [ 565.246140] br0: port 1(swp1) entered disabled state [ 565.246414] swp1: entered allmulticast mode [ 565.246782] swp1: entered promiscuous mode [ 565.247154] br0: port 1(swp1) entered blocking state [ 565.247424] br0: port 1(swp1) entered forwarding state [ 565.264841] br0: port 2(vx0) entered blocking state [ 565.265130] br0: port 2(vx0) entered disabled state [ 565.265399] vx0: entered allmulticast mode [ 565.265687] vx0: entered promiscuous mode [ 565.265977] br0: port 2(vx0) entered blocking state [ 565.266242] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 570.488779] br0: port 1(swp1) entered disabled state [ 571.516131] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 577.558020] vx0: left allmulticast mode [ 577.558436] vx0: left promiscuous mode [ 577.558791] br0: port 2(vx0) entered disabled state [ 577.565927] swp1: left allmulticast mode [ 577.566279] swp1: left promiscuous mode [ 577.566501] br0: port 1(swp1) entered disabled state [ 577.703962] vx0: left allmulticast mode [ 577.704216] vx0: left promiscuous mode [ 577.704477] br0: port 2(vx0) entered disabled state [ 577.711959] swp1: left allmulticast mode [ 577.712201] swp1: left promiscuous mode [ 577.712464] br0: port 1(swp1) entered disabled state [ 577.862056] veth0: renamed from veth1 [ 577.985718] br0: port 1(swp1) entered blocking state [ 577.986074] br0: port 1(swp1) entered disabled state [ 577.986360] swp1: entered allmulticast mode [ 577.986672] swp1: entered promiscuous mode [ 577.986971] br0: port 1(swp1) entered blocking state [ 577.987243] br0: port 1(swp1) entered forwarding state [ 578.008530] br0: port 2(vx0) entered blocking state [ 578.008834] br0: port 2(vx0) entered disabled state [ 578.009105] vx0: entered allmulticast mode [ 578.009397] vx0: entered promiscuous mode [ 578.009632] br0: port 2(vx0) entered blocking state [ 578.009906] br0: port 2(vx0) entered forwarding state [ 578.147264] br0: port 1(swp1) entered blocking state [ 578.147607] br0: port 1(swp1) entered disabled state [ 578.148019] swp1: entered allmulticast mode [ 578.148449] swp1: entered promiscuous mode [ 578.148848] br0: port 1(swp1) entered blocking state [ 578.149218] br0: port 1(swp1) entered forwarding state [ 578.169219] br0: port 2(vx0) entered blocking state [ 578.169559] br0: port 2(vx0) entered disabled state [ 578.169951] vx0: entered allmulticast mode [ 578.170320] vx0: entered promiscuous mode [ 578.170560] br0: port 2(vx0) entered blocking state [ 578.170891] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 583.283066] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] # # Tests passed: 83 # Tests failed: 0 [ 613.366950] vx0: left allmulticast mode [ 613.367211] vx0: left promiscuous mode [ 613.367465] br0: port 2(vx0) entered disabled state [ 613.376931] swp1: left allmulticast mode [ 613.377175] swp1: left promiscuous mode [ 613.377423] 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__-> [ 613.475916] vx0: left allmulticast mode [ 613.476157] vx0: left promiscuous mode [ 613.476407] br0: port 2(vx0) entered disabled state xx__-> xx__-> [ 613.482908] swp1: left allmulticast mode [ 613.483133] swp1: left promiscuous mode [ 613.483355] br0: port 1(swp1) entered disabled state xx__-> xx__->