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 [ 681.305765] veth0: renamed from veth1 [ 681.486696] br0: port 1(swp1) entered blocking state [ 681.487124] br0: port 1(swp1) entered disabled state [ 681.487590] swp1: entered allmulticast mode [ 681.488073] swp1: entered promiscuous mode [ 681.488506] br0: port 1(swp1) entered blocking state [ 681.488893] br0: port 1(swp1) entered forwarding state [ 681.524131] br0: port 2(vx0) entered blocking state [ 681.524564] br0: port 2(vx0) entered disabled state [ 681.524956] vx0: entered allmulticast mode [ 681.525388] vx0: entered promiscuous mode [ 681.525979] br0: port 2(vx0) entered blocking state [ 681.526368] br0: port 2(vx0) entered forwarding state [ 681.749743] br0: port 1(swp1) entered blocking state [ 681.750139] br0: port 1(swp1) entered disabled state [ 681.750582] swp1: entered allmulticast mode [ 681.750986] swp1: entered promiscuous mode [ 681.751350] br0: port 1(swp1) entered blocking state [ 681.751717] br0: port 1(swp1) entered forwarding state [ 681.788096] br0: port 2(vx0) entered blocking state [ 681.788515] br0: port 2(vx0) entered disabled state [ 681.788892] vx0: entered allmulticast mode [ 681.789314] vx0: entered promiscuous mode [ 681.789713] br0: port 2(vx0) entered blocking state [ 681.790098] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 687.328869] 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 ] [ 687.758031] br0: port 1(swp1) entered blocking state [ 687.758378] 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 ] [ 688.335579] 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 ] [ 688.778103] br0: port 1(swp1) entered blocking state [ 688.778408] 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 ] [ 689.557305] 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 ] [ 689.970521] vx0: left allmulticast mode [ 689.970756] vx0: left promiscuous mode [ 689.970971] br0: port 2(vx0) entered disabled state [ 689.971680] swp1: left allmulticast mode [ 689.971944] swp1: left promiscuous mode [ 689.972155] br0: port 1(swp1) entered disabled state [ 690.048744] vx0: left allmulticast mode [ 690.049005] vx0: left promiscuous mode [ 690.049238] br0: port 2(vx0) entered disabled state [ 690.049670] swp1: left allmulticast mode [ 690.050053] swp1: left promiscuous mode [ 690.050451] br0: port 1(swp1) entered disabled state [ 690.456689] veth0: renamed from veth1 [ 690.616612] br0: port 1(swp1) entered blocking state [ 690.616922] br0: port 1(swp1) entered disabled state [ 690.617207] swp1: entered allmulticast mode [ 690.617516] swp1: entered promiscuous mode [ 690.617946] br0: port 1(swp1) entered blocking state [ 690.618206] br0: port 1(swp1) entered forwarding state [ 690.648221] br0: port 2(vx0) entered blocking state [ 690.648593] br0: port 2(vx0) entered disabled state [ 690.648884] vx0: entered allmulticast mode [ 690.649165] vx0: entered promiscuous mode [ 690.649408] br0: port 2(vx0) entered blocking state [ 690.649675] br0: port 2(vx0) entered forwarding state [ 690.846029] br0: port 1(swp1) entered blocking state [ 690.846358] br0: port 1(swp1) entered disabled state [ 690.846658] swp1: entered allmulticast mode [ 690.846970] swp1: entered promiscuous mode [ 690.847290] br0: port 1(swp1) entered blocking state [ 690.847570] br0: port 1(swp1) entered forwarding state [ 690.877260] br0: port 2(vx0) entered blocking state [ 690.877570] br0: port 2(vx0) entered disabled state [ 690.877854] vx0: entered allmulticast mode [ 690.878146] vx0: entered promiscuous mode [ 690.878379] br0: port 2(vx0) entered blocking state [ 690.878648] 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 ] [ 696.564739] 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 ] [ 697.267927] br0: port 1(swp1) entered blocking state [ 697.268229] 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 ] [ 697.725300] 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 ] [ 698.435413] br0: port 1(swp1) entered blocking state [ 698.435740] 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 ] [ 699.824886] 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 ] [ 700.527529] vx0: left allmulticast mode [ 700.527806] vx0: left promiscuous mode [ 700.528189] br0: port 2(vx0) entered disabled state [ 700.528634] swp1: left allmulticast mode [ 700.528862] swp1: left promiscuous mode [ 700.529074] br0: port 1(swp1) entered disabled state [ 700.601708] vx0: left allmulticast mode [ 700.602139] vx0: left promiscuous mode [ 700.602590] br0: port 2(vx0) entered disabled state [ 700.603370] swp1: left allmulticast mode [ 700.603825] swp1: left promiscuous mode [ 700.604313] br0: port 1(swp1) entered disabled state [ 701.022645] veth0: renamed from veth1 [ 701.176693] br0: port 1(swp1) entered blocking state [ 701.177058] br0: port 1(swp1) entered disabled state [ 701.177343] swp1: entered allmulticast mode [ 701.177727] swp1: entered promiscuous mode [ 701.178009] br0: port 1(swp1) entered blocking state [ 701.178307] br0: port 1(swp1) entered forwarding state [ 701.207462] br0: port 2(vx0) entered blocking state [ 701.207781] br0: port 2(vx0) entered disabled state [ 701.208046] vx0: entered allmulticast mode [ 701.208325] vx0: entered promiscuous mode [ 701.208559] br0: port 2(vx0) entered blocking state [ 701.208812] br0: port 2(vx0) entered forwarding state [ 701.414609] br0: port 1(swp1) entered blocking state [ 701.415023] br0: port 1(swp1) entered disabled state [ 701.415395] swp1: entered allmulticast mode [ 701.415854] swp1: entered promiscuous mode [ 701.416246] br0: port 1(swp1) entered blocking state [ 701.416632] br0: port 1(swp1) entered forwarding state [ 701.448056] br0: port 2(vx0) entered blocking state [ 701.448552] br0: port 2(vx0) entered disabled state [ 701.448965] vx0: entered allmulticast mode [ 701.449375] vx0: entered promiscuous mode [ 701.449794] br0: port 2(vx0) entered blocking state [ 701.450176] 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 ] [ 706.825248] 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 ] [ 709.774706] vx0: left allmulticast mode [ 709.775235] vx0: left promiscuous mode [ 709.775571] br0: port 2(vx0) entered disabled state [ 709.776065] swp1: left allmulticast mode [ 709.776285] swp1: left promiscuous mode [ 709.776540] br0: port 1(swp1) entered disabled state [ 709.851744] vx0: left allmulticast mode [ 709.852122] vx0: left promiscuous mode [ 709.852519] br0: port 2(vx0) entered disabled state [ 709.853134] swp1: left allmulticast mode [ 709.853472] swp1: left promiscuous mode [ 709.853791] br0: port 1(swp1) entered disabled state [ 710.216663] veth0: renamed from veth1 [ 710.353575] br0: port 1(swp1) entered blocking state [ 710.353867] br0: port 1(swp1) entered disabled state [ 710.354135] swp1: entered allmulticast mode [ 710.354427] swp1: entered promiscuous mode [ 710.354707] br0: port 1(swp1) entered blocking state [ 710.354964] br0: port 1(swp1) entered forwarding state [ 710.383906] br0: port 2(vx0) entered blocking state [ 710.384200] br0: port 2(vx0) entered disabled state [ 710.384470] vx0: entered allmulticast mode [ 710.384753] vx0: entered promiscuous mode [ 710.384979] br0: port 2(vx0) entered blocking state [ 710.385251] br0: port 2(vx0) entered forwarding state [ 710.566985] br0: port 1(swp1) entered blocking state [ 710.567278] br0: port 1(swp1) entered disabled state [ 710.567575] swp1: entered allmulticast mode [ 710.567879] swp1: entered promiscuous mode [ 710.568147] br0: port 1(swp1) entered blocking state [ 710.568416] br0: port 1(swp1) entered forwarding state [ 710.596495] br0: port 2(vx0) entered blocking state [ 710.596781] br0: port 2(vx0) entered disabled state [ 710.597037] vx0: entered allmulticast mode [ 710.597316] vx0: entered promiscuous mode [ 710.597563] br0: port 2(vx0) entered blocking state [ 710.597833] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 715.930664] br0: port 1(swp1) entered disabled state [ 716.991531] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 723.071708] vx0: left allmulticast mode [ 723.071986] vx0: left promiscuous mode [ 723.072204] br0: port 2(vx0) entered disabled state [ 723.073006] swp1: left allmulticast mode [ 723.073262] swp1: left promiscuous mode [ 723.073509] br0: port 1(swp1) entered disabled state [ 723.137705] vx0: left allmulticast mode [ 723.137982] vx0: left promiscuous mode [ 723.138249] br0: port 2(vx0) entered disabled state [ 723.138715] swp1: left allmulticast mode [ 723.138987] swp1: left promiscuous mode [ 723.139247] br0: port 1(swp1) entered disabled state [ 723.582660] veth0: renamed from veth1 [ 723.736391] br0: port 1(swp1) entered blocking state [ 723.736795] br0: port 1(swp1) entered disabled state [ 723.737174] swp1: entered allmulticast mode [ 723.737730] swp1: entered promiscuous mode [ 723.738091] br0: port 1(swp1) entered blocking state [ 723.738453] br0: port 1(swp1) entered forwarding state [ 723.771743] br0: port 2(vx0) entered blocking state [ 723.772046] br0: port 2(vx0) entered disabled state [ 723.772326] vx0: entered allmulticast mode [ 723.772618] vx0: entered promiscuous mode [ 723.772875] br0: port 2(vx0) entered blocking state [ 723.773141] br0: port 2(vx0) entered forwarding state [ 723.980547] br0: port 1(swp1) entered blocking state [ 723.980852] br0: port 1(swp1) entered disabled state [ 723.981126] swp1: entered allmulticast mode [ 723.981418] swp1: entered promiscuous mode [ 723.981740] br0: port 1(swp1) entered blocking state [ 723.981999] br0: port 1(swp1) entered forwarding state [ 724.012639] br0: port 2(vx0) entered blocking state [ 724.012949] br0: port 2(vx0) entered disabled state [ 724.013205] vx0: entered allmulticast mode [ 724.013536] vx0: entered promiscuous mode [ 724.013781] br0: port 2(vx0) entered blocking state [ 724.014035] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 729.193727] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 759.231903] vx0: left allmulticast mode [ 759.232210] vx0: left promiscuous mode [ 759.232662] br0: port 2(vx0) entered disabled state [ 759.233084] swp1: left allmulticast mode [ 759.233295] swp1: left promiscuous mode [ 759.233520] br0: port 1(swp1) entered disabled state [ 759.302632] vx0: left allmulticast mode [ 759.302938] vx0: left promiscuous mode [ 759.303216] br0: port 2(vx0) entered disabled state [ 759.303758] swp1: left allmulticast mode [ 759.304004] swp1: left promiscuous mode [ 759.304264] 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__->