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 3600 # selftests: net: test_bridge_backup_port.sh [ 724.654265] veth0: renamed from veth1 [ 724.787535] br0: port 1(swp1) entered blocking state [ 724.787831] br0: port 1(swp1) entered disabled state [ 724.788132] swp1: entered allmulticast mode [ 724.788445] swp1: entered promiscuous mode [ 724.788755] br0: port 1(swp1) entered blocking state [ 724.789043] br0: port 1(swp1) entered forwarding state [ 724.814422] br0: port 2(vx0) entered blocking state [ 724.814751] br0: port 2(vx0) entered disabled state [ 724.815102] vx0: entered allmulticast mode [ 724.815452] vx0: entered promiscuous mode [ 724.815761] br0: port 2(vx0) entered blocking state [ 724.816111] br0: port 2(vx0) entered forwarding state [ 724.982521] br0: port 1(swp1) entered blocking state [ 724.982952] br0: port 1(swp1) entered disabled state [ 724.983367] swp1: entered allmulticast mode [ 724.983812] swp1: entered promiscuous mode [ 724.984230] br0: port 1(swp1) entered blocking state [ 724.984604] br0: port 1(swp1) entered forwarding state [ 725.010310] br0: port 2(vx0) entered blocking state [ 725.010607] br0: port 2(vx0) entered disabled state [ 725.010866] vx0: entered allmulticast mode [ 725.011158] vx0: entered promiscuous mode [ 725.011397] br0: port 2(vx0) entered blocking state [ 725.011660] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 730.509604] 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 ] [ 730.950086] br0: port 1(swp1) entered blocking state [ 730.950383] 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 ] [ 731.512156] 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 ] [ 731.908387] br0: port 1(swp1) entered blocking state [ 731.908822] 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 ] [ 732.710385] 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 ] [ 733.103482] vx0: left allmulticast mode [ 733.103851] vx0: left promiscuous mode [ 733.104138] br0: port 2(vx0) entered disabled state [ 733.104605] swp1: left allmulticast mode [ 733.104839] swp1: left promiscuous mode [ 733.105186] br0: port 1(swp1) entered disabled state [ 733.202303] vx0: left allmulticast mode [ 733.202844] vx0: left promiscuous mode [ 733.203316] br0: port 2(vx0) entered disabled state [ 733.204094] swp1: left allmulticast mode [ 733.204508] swp1: left promiscuous mode [ 733.204967] br0: port 1(swp1) entered disabled state [ 733.580248] veth0: renamed from veth1 [ 733.726095] br0: port 1(swp1) entered blocking state [ 733.726574] br0: port 1(swp1) entered disabled state [ 733.727132] swp1: entered allmulticast mode [ 733.727631] swp1: entered promiscuous mode [ 733.728098] br0: port 1(swp1) entered blocking state [ 733.728539] br0: port 1(swp1) entered forwarding state [ 733.759500] br0: port 2(vx0) entered blocking state [ 733.759875] br0: port 2(vx0) entered disabled state [ 733.760294] vx0: entered allmulticast mode [ 733.760670] vx0: entered promiscuous mode [ 733.760908] br0: port 2(vx0) entered blocking state [ 733.761279] br0: port 2(vx0) entered forwarding state [ 733.951769] br0: port 1(swp1) entered blocking state [ 733.952159] br0: port 1(swp1) entered disabled state [ 733.952487] swp1: entered allmulticast mode [ 733.952798] swp1: entered promiscuous mode [ 733.953250] br0: port 1(swp1) entered blocking state [ 733.953593] br0: port 1(swp1) entered forwarding state [ 733.984287] br0: port 2(vx0) entered blocking state [ 733.984712] br0: port 2(vx0) entered disabled state [ 733.985175] vx0: entered allmulticast mode [ 733.985634] vx0: entered promiscuous mode [ 733.986001] br0: port 2(vx0) entered blocking state [ 733.986379] 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 ] [ 739.682105] 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 ] [ 740.424929] br0: port 1(swp1) entered blocking state [ 740.425276] 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 ] [ 740.875806] 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 ] [ 741.602100] br0: port 1(swp1) entered blocking state [ 741.602530] 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 ] [ 742.957805] 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 ] [ 743.658339] vx0: left allmulticast mode [ 743.658679] vx0: left promiscuous mode [ 743.659016] br0: port 2(vx0) entered disabled state [ 743.659611] swp1: left allmulticast mode [ 743.660140] swp1: left promiscuous mode [ 743.660466] br0: port 1(swp1) entered disabled state [ 743.751281] vx0: left allmulticast mode [ 743.751915] vx0: left promiscuous mode [ 743.752475] br0: port 2(vx0) entered disabled state [ 743.753320] swp1: left allmulticast mode [ 743.753874] swp1: left promiscuous mode [ 743.754449] br0: port 1(swp1) entered disabled state [ 744.148261] veth0: renamed from veth1 [ 744.308973] br0: port 1(swp1) entered blocking state [ 744.309291] br0: port 1(swp1) entered disabled state [ 744.309565] swp1: entered allmulticast mode [ 744.309865] swp1: entered promiscuous mode [ 744.310158] br0: port 1(swp1) entered blocking state [ 744.310419] br0: port 1(swp1) entered forwarding state [ 744.343026] br0: port 2(vx0) entered blocking state [ 744.343313] br0: port 2(vx0) entered disabled state [ 744.343571] vx0: entered allmulticast mode [ 744.343853] vx0: entered promiscuous mode [ 744.344097] br0: port 2(vx0) entered blocking state [ 744.344367] br0: port 2(vx0) entered forwarding state [ 744.543922] br0: port 1(swp1) entered blocking state [ 744.544406] br0: port 1(swp1) entered disabled state [ 744.544821] swp1: entered allmulticast mode [ 744.545291] swp1: entered promiscuous mode [ 744.545706] br0: port 1(swp1) entered blocking state [ 744.546109] br0: port 1(swp1) entered forwarding state [ 744.574481] br0: port 2(vx0) entered blocking state [ 744.574898] br0: port 2(vx0) entered disabled state [ 744.575299] vx0: entered allmulticast mode [ 744.575736] vx0: entered promiscuous mode [ 744.576147] br0: port 2(vx0) entered blocking state [ 744.576524] 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 ] [ 749.960124] 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 ] [ 752.966801] vx0: left allmulticast mode [ 752.967132] vx0: left promiscuous mode [ 752.967370] br0: port 2(vx0) entered disabled state [ 752.968312] swp1: left allmulticast mode [ 752.968553] swp1: left promiscuous mode [ 752.968784] br0: port 1(swp1) entered disabled state [ 753.072241] vx0: left allmulticast mode [ 753.072674] vx0: left promiscuous mode [ 753.073054] br0: port 2(vx0) entered disabled state [ 753.073745] swp1: left allmulticast mode [ 753.074122] swp1: left promiscuous mode [ 753.074590] br0: port 1(swp1) entered disabled state [ 753.460301] veth0: renamed from veth1 [ 753.625308] br0: port 1(swp1) entered blocking state [ 753.625611] br0: port 1(swp1) entered disabled state [ 753.625920] swp1: entered allmulticast mode [ 753.626380] swp1: entered promiscuous mode [ 753.626787] br0: port 1(swp1) entered blocking state [ 753.627068] br0: port 1(swp1) entered forwarding state [ 753.660398] br0: port 2(vx0) entered blocking state [ 753.660689] br0: port 2(vx0) entered disabled state [ 753.660952] vx0: entered allmulticast mode [ 753.661245] vx0: entered promiscuous mode [ 753.661473] br0: port 2(vx0) entered blocking state [ 753.661729] br0: port 2(vx0) entered forwarding state [ 753.853446] br0: port 1(swp1) entered blocking state [ 753.853747] br0: port 1(swp1) entered disabled state [ 753.854037] swp1: entered allmulticast mode [ 753.854346] swp1: entered promiscuous mode [ 753.854619] br0: port 1(swp1) entered blocking state [ 753.854880] br0: port 1(swp1) entered forwarding state [ 753.885941] br0: port 2(vx0) entered blocking state [ 753.886243] br0: port 2(vx0) entered disabled state [ 753.886514] vx0: entered allmulticast mode [ 753.886797] vx0: entered promiscuous mode [ 753.887045] br0: port 2(vx0) entered blocking state [ 753.887302] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 759.227703] br0: port 1(swp1) entered disabled state [ 760.256099] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 766.371135] vx0: left allmulticast mode [ 766.371398] vx0: left promiscuous mode [ 766.371778] br0: port 2(vx0) entered disabled state [ 766.372324] swp1: left allmulticast mode [ 766.372557] swp1: left promiscuous mode [ 766.372784] br0: port 1(swp1) entered disabled state [ 766.440251] vx0: left allmulticast mode [ 766.440806] vx0: left promiscuous mode [ 766.441364] br0: port 2(vx0) entered disabled state [ 766.442179] swp1: left allmulticast mode [ 766.442752] swp1: left promiscuous mode [ 766.443360] br0: port 1(swp1) entered disabled state [ 766.844253] veth0: renamed from veth1 [ 766.999252] br0: port 1(swp1) entered blocking state [ 766.999580] br0: port 1(swp1) entered disabled state [ 766.999894] swp1: entered allmulticast mode [ 767.000231] swp1: entered promiscuous mode [ 767.000528] br0: port 1(swp1) entered blocking state [ 767.000835] br0: port 1(swp1) entered forwarding state [ 767.033691] br0: port 2(vx0) entered blocking state [ 767.034098] br0: port 2(vx0) entered disabled state [ 767.034473] vx0: entered allmulticast mode [ 767.034868] vx0: entered promiscuous mode [ 767.035203] br0: port 2(vx0) entered blocking state [ 767.035556] br0: port 2(vx0) entered forwarding state [ 767.233095] br0: port 1(swp1) entered blocking state [ 767.233517] br0: port 1(swp1) entered disabled state [ 767.233914] swp1: entered allmulticast mode [ 767.234378] swp1: entered promiscuous mode [ 767.234777] br0: port 1(swp1) entered blocking state [ 767.235171] br0: port 1(swp1) entered forwarding state [ 767.267039] br0: port 2(vx0) entered blocking state [ 767.267452] br0: port 2(vx0) entered disabled state [ 767.267836] vx0: entered allmulticast mode [ 767.268269] vx0: entered promiscuous mode [ 767.268604] br0: port 2(vx0) entered blocking state [ 767.268983] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 772.429586] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 802.475205] vx0: left allmulticast mode [ 802.475557] vx0: left promiscuous mode [ 802.475888] br0: port 2(vx0) entered disabled state [ 802.477066] swp1: left allmulticast mode [ 802.477402] swp1: left promiscuous mode [ 802.477730] br0: port 1(swp1) entered disabled state [ 802.547241] vx0: left allmulticast mode [ 802.547557] vx0: left promiscuous mode [ 802.547844] br0: port 2(vx0) entered disabled state [ 802.548293] swp1: left allmulticast mode [ 802.548543] swp1: left promiscuous mode [ 802.548800] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 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__->