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 [ 666.445847] veth0: renamed from veth1 [ 666.585716] br0: port 1(swp1) entered blocking state [ 666.586141] br0: port 1(swp1) entered disabled state [ 666.586417] swp1: entered allmulticast mode [ 666.586722] swp1: entered promiscuous mode [ 666.586985] br0: port 1(swp1) entered blocking state [ 666.587239] br0: port 1(swp1) entered forwarding state [ 666.613789] br0: port 2(vx0) entered blocking state [ 666.614070] br0: port 2(vx0) entered disabled state [ 666.614322] vx0: entered allmulticast mode [ 666.614603] vx0: entered promiscuous mode [ 666.615008] br0: port 2(vx0) entered blocking state [ 666.615258] br0: port 2(vx0) entered forwarding state [ 666.785732] br0: port 1(swp1) entered blocking state [ 666.786042] br0: port 1(swp1) entered disabled state [ 666.786324] swp1: entered allmulticast mode [ 666.786622] swp1: entered promiscuous mode [ 666.786913] br0: port 1(swp1) entered blocking state [ 666.787182] br0: port 1(swp1) entered forwarding state [ 666.817385] br0: port 2(vx0) entered blocking state [ 666.817751] br0: port 2(vx0) entered disabled state [ 666.818007] vx0: entered allmulticast mode [ 666.818305] vx0: entered promiscuous mode [ 666.818536] br0: port 2(vx0) entered blocking state [ 666.818803] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 672.298004] 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 ] [ 672.641915] br0: port 1(swp1) entered blocking state [ 672.642323] 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 ] [ 673.301751] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 673.344865] br0: port 1(swp1) entered blocking state [ 673.345241] 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] [ 674.309740] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of vx0 [ OK ] [ 674.469787] vx0: left allmulticast mode [ 674.470050] vx0: left promiscuous mode [ 674.470277] br0: port 2(vx0) entered disabled state [ 674.477817] swp1: left allmulticast mode [ 674.478178] swp1: left promiscuous mode [ 674.478489] br0: port 1(swp1) entered disabled state [ 674.610796] vx0: left allmulticast mode [ 674.611030] vx0: left promiscuous mode [ 674.611238] br0: port 2(vx0) entered disabled state [ 674.622861] swp1: left allmulticast mode [ 674.623217] swp1: left promiscuous mode [ 674.623605] br0: port 1(swp1) entered disabled state [ 674.844858] veth0: renamed from veth1 [ 674.968406] br0: port 1(swp1) entered blocking state [ 674.968722] br0: port 1(swp1) entered disabled state [ 674.968986] swp1: entered allmulticast mode [ 674.969265] swp1: entered promiscuous mode [ 674.969527] br0: port 1(swp1) entered blocking state [ 674.969798] br0: port 1(swp1) entered forwarding state [ 674.993079] br0: port 2(vx0) entered blocking state [ 674.993359] br0: port 2(vx0) entered disabled state [ 674.993612] vx0: entered allmulticast mode [ 674.993897] vx0: entered promiscuous mode [ 674.994128] br0: port 2(vx0) entered blocking state [ 674.994379] br0: port 2(vx0) entered forwarding state [ 675.152889] br0: port 1(swp1) entered blocking state [ 675.153191] br0: port 1(swp1) entered disabled state [ 675.153453] swp1: entered allmulticast mode [ 675.153899] swp1: entered promiscuous mode [ 675.154290] br0: port 1(swp1) entered blocking state [ 675.154627] br0: port 1(swp1) entered forwarding state [ 675.179078] br0: port 2(vx0) entered blocking state [ 675.179474] br0: port 2(vx0) entered disabled state [ 675.179851] vx0: entered allmulticast mode [ 675.180253] vx0: entered promiscuous mode [ 675.180588] br0: port 2(vx0) entered blocking state [ 675.180895] 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 ] [ 680.758782] 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 ] [ 681.388923] br0: port 1(swp1) entered blocking state [ 681.389208] 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 ] [ 681.758801] 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 ] [ 682.371106] br0: port 1(swp1) entered blocking state [ 682.371404] 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 ] [ 683.647078] 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 ] [ 684.332802] vx0: left allmulticast mode [ 684.333068] vx0: left promiscuous mode [ 684.333351] br0: port 2(vx0) entered disabled state [ 684.344766] swp1: left allmulticast mode [ 684.345007] swp1: left promiscuous mode [ 684.345239] br0: port 1(swp1) entered disabled state [ 684.470797] vx0: left allmulticast mode [ 684.471059] vx0: left promiscuous mode [ 684.471298] br0: port 2(vx0) entered disabled state [ 684.478747] swp1: left allmulticast mode [ 684.478984] swp1: left promiscuous mode [ 684.479221] br0: port 1(swp1) entered disabled state [ 684.717785] veth0: renamed from veth1 [ 684.849978] br0: port 1(swp1) entered blocking state [ 684.850271] br0: port 1(swp1) entered disabled state [ 684.850532] swp1: entered allmulticast mode [ 684.850824] swp1: entered promiscuous mode [ 684.851083] br0: port 1(swp1) entered blocking state [ 684.851339] br0: port 1(swp1) entered forwarding state [ 684.877329] br0: port 2(vx0) entered blocking state [ 684.877609] br0: port 2(vx0) entered disabled state [ 684.877928] vx0: entered allmulticast mode [ 684.878200] vx0: entered promiscuous mode [ 684.878423] br0: port 2(vx0) entered blocking state [ 684.878695] br0: port 2(vx0) entered forwarding state [ 685.039840] br0: port 1(swp1) entered blocking state [ 685.040131] br0: port 1(swp1) entered disabled state [ 685.040393] swp1: entered allmulticast mode [ 685.040696] swp1: entered promiscuous mode [ 685.040956] br0: port 1(swp1) entered blocking state [ 685.041212] br0: port 1(swp1) entered forwarding state [ 685.067226] br0: port 2(vx0) entered blocking state [ 685.067506] br0: port 2(vx0) entered disabled state [ 685.067778] vx0: entered allmulticast mode [ 685.068049] vx0: entered promiscuous mode [ 685.068269] br0: port 2(vx0) entered blocking state [ 685.068519] 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 ] [ 690.404230] 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 ] [ 693.226810] vx0: left allmulticast mode [ 693.227094] vx0: left promiscuous mode [ 693.227336] br0: port 2(vx0) entered disabled state [ 693.233830] swp1: left allmulticast mode [ 693.234155] swp1: left promiscuous mode [ 693.234510] br0: port 1(swp1) entered disabled state [ 693.374911] vx0: left allmulticast mode [ 693.375262] vx0: left promiscuous mode [ 693.375580] br0: port 2(vx0) entered disabled state [ 693.383764] swp1: left allmulticast mode [ 693.384000] swp1: left promiscuous mode [ 693.384262] br0: port 1(swp1) entered disabled state [ 693.602833] veth0: renamed from veth1 [ 693.733927] br0: port 1(swp1) entered blocking state [ 693.734216] br0: port 1(swp1) entered disabled state [ 693.734480] swp1: entered allmulticast mode [ 693.734777] swp1: entered promiscuous mode [ 693.735038] br0: port 1(swp1) entered blocking state [ 693.735292] br0: port 1(swp1) entered forwarding state [ 693.760872] br0: port 2(vx0) entered blocking state [ 693.761153] br0: port 2(vx0) entered disabled state [ 693.761405] vx0: entered allmulticast mode [ 693.761687] vx0: entered promiscuous mode [ 693.761918] br0: port 2(vx0) entered blocking state [ 693.762179] br0: port 2(vx0) entered forwarding state [ 693.921658] br0: port 1(swp1) entered blocking state [ 693.921957] br0: port 1(swp1) entered disabled state [ 693.922216] swp1: entered allmulticast mode [ 693.922493] swp1: entered promiscuous mode [ 693.922810] br0: port 1(swp1) entered blocking state [ 693.923064] br0: port 1(swp1) entered forwarding state [ 693.947172] br0: port 2(vx0) entered blocking state [ 693.947455] br0: port 2(vx0) entered disabled state [ 693.947749] vx0: entered allmulticast mode [ 693.948043] vx0: entered promiscuous mode [ 693.948271] br0: port 2(vx0) entered blocking state [ 693.948522] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 699.225090] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 700.285779] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 705.310820] vx0: left allmulticast mode [ 705.311077] vx0: left promiscuous mode [ 705.311321] br0: port 2(vx0) entered disabled state [ 705.324848] swp1: left allmulticast mode [ 705.325190] swp1: left promiscuous mode [ 705.325547] br0: port 1(swp1) entered disabled state [ 705.477853] vx0: left allmulticast mode [ 705.478096] vx0: left promiscuous mode [ 705.478353] br0: port 2(vx0) entered disabled state [ 705.496811] swp1: left allmulticast mode [ 705.497069] swp1: left promiscuous mode [ 705.497350] br0: port 1(swp1) entered disabled state [ 705.777031] veth0: renamed from veth1 [ 705.918136] br0: port 1(swp1) entered blocking state [ 705.918431] br0: port 1(swp1) entered disabled state [ 705.918716] swp1: entered allmulticast mode [ 705.919002] swp1: entered promiscuous mode [ 705.919269] br0: port 1(swp1) entered blocking state [ 705.919544] br0: port 1(swp1) entered forwarding state [ 705.947536] br0: port 2(vx0) entered blocking state [ 705.947876] br0: port 2(vx0) entered disabled state [ 705.948133] vx0: entered allmulticast mode [ 705.948416] vx0: entered promiscuous mode [ 705.948655] br0: port 2(vx0) entered blocking state [ 705.948907] br0: port 2(vx0) entered forwarding state [ 706.133572] br0: port 1(swp1) entered blocking state [ 706.133916] br0: port 1(swp1) entered disabled state [ 706.134185] swp1: entered allmulticast mode [ 706.134476] swp1: entered promiscuous mode [ 706.134756] br0: port 1(swp1) entered blocking state [ 706.135012] br0: port 1(swp1) entered forwarding state [ 706.162778] br0: port 2(vx0) entered blocking state [ 706.163061] br0: port 2(vx0) entered disabled state [ 706.163314] vx0: entered allmulticast mode [ 706.163603] vx0: entered promiscuous mode [ 706.163895] br0: port 2(vx0) entered blocking state [ 706.164146] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 711.319386] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 741.414835] vx0: left allmulticast mode [ 741.415217] vx0: left promiscuous mode [ 741.415505] br0: port 2(vx0) entered disabled state # # Tests passed: 82 # Tests failed: 1 [ 741.426737] swp1: left allmulticast mode [ 741.427055] swp1: left promiscuous mode [ 741.427270] 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__->