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 [ 677.937292] veth0: renamed from veth1 [ 678.093097] br0: port 1(swp1) entered blocking state [ 678.093413] br0: port 1(swp1) entered disabled state [ 678.093692] swp1: entered allmulticast mode [ 678.093993] swp1: entered promiscuous mode [ 678.094308] br0: port 1(swp1) entered blocking state [ 678.094576] br0: port 1(swp1) entered forwarding state [ 678.125413] br0: port 2(vx0) entered blocking state [ 678.125824] br0: port 2(vx0) entered disabled state [ 678.126212] vx0: entered allmulticast mode [ 678.126634] vx0: entered promiscuous mode [ 678.126968] br0: port 2(vx0) entered blocking state [ 678.127352] br0: port 2(vx0) entered forwarding state [ 678.318701] br0: port 1(swp1) entered blocking state [ 678.319016] br0: port 1(swp1) entered disabled state [ 678.319297] swp1: entered allmulticast mode [ 678.319592] swp1: entered promiscuous mode [ 678.319873] br0: port 1(swp1) entered blocking state [ 678.320141] br0: port 1(swp1) entered forwarding state [ 678.348067] br0: port 2(vx0) entered blocking state [ 678.348357] br0: port 2(vx0) entered disabled state [ 678.348637] vx0: entered allmulticast mode [ 678.348932] vx0: entered promiscuous mode [ 678.349258] br0: port 2(vx0) entered blocking state [ 678.349533] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 683.853037] 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 ] [ 684.258114] br0: port 1(swp1) entered blocking state [ 684.258407] 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 ] [ 684.856101] 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 ] [ 685.276794] br0: port 1(swp1) entered blocking state [ 685.277099] 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 ] [ 686.068942] 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 ] [ 686.482661] vx0: left allmulticast mode [ 686.482980] vx0: left promiscuous mode [ 686.483320] br0: port 2(vx0) entered disabled state [ 686.483751] swp1: left allmulticast mode [ 686.484009] swp1: left promiscuous mode [ 686.484229] br0: port 1(swp1) entered disabled state [ 686.571560] vx0: left allmulticast mode [ 686.572167] vx0: left promiscuous mode [ 686.572772] br0: port 2(vx0) entered disabled state [ 686.573686] swp1: left allmulticast mode [ 686.574233] swp1: left promiscuous mode [ 686.574793] br0: port 1(swp1) entered disabled state [ 686.935639] veth0: renamed from veth1 [ 687.072716] br0: port 1(swp1) entered blocking state [ 687.073044] br0: port 1(swp1) entered disabled state [ 687.073319] swp1: entered allmulticast mode [ 687.073610] swp1: entered promiscuous mode [ 687.073886] br0: port 1(swp1) entered blocking state [ 687.074155] br0: port 1(swp1) entered forwarding state [ 687.102674] br0: port 2(vx0) entered blocking state [ 687.102962] br0: port 2(vx0) entered disabled state [ 687.103235] vx0: entered allmulticast mode [ 687.103517] vx0: entered promiscuous mode [ 687.103980] br0: port 2(vx0) entered blocking state [ 687.104244] br0: port 2(vx0) entered forwarding state [ 687.307209] br0: port 1(swp1) entered blocking state [ 687.307553] br0: port 1(swp1) entered disabled state [ 687.307834] swp1: entered allmulticast mode [ 687.308206] swp1: entered promiscuous mode [ 687.308525] br0: port 1(swp1) entered blocking state [ 687.308817] br0: port 1(swp1) entered forwarding state [ 687.339689] br0: port 2(vx0) entered blocking state [ 687.339982] br0: port 2(vx0) entered disabled state [ 687.340340] vx0: entered allmulticast mode [ 687.340625] vx0: entered promiscuous mode [ 687.340864] br0: port 2(vx0) entered blocking state [ 687.341125] 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 ] [ 693.027206] 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 ] [ 693.765428] br0: port 1(swp1) entered blocking state [ 693.765853] 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 ] [ 694.223104] 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 ] [ 694.954708] br0: port 1(swp1) entered blocking state [ 694.955161] 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 ] [ 696.372704] 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.106600] vx0: left allmulticast mode [ 697.106952] vx0: left promiscuous mode [ 697.107292] br0: port 2(vx0) entered disabled state [ 697.107887] swp1: left allmulticast mode [ 697.108546] swp1: left promiscuous mode [ 697.108871] br0: port 1(swp1) entered disabled state [ 697.195266] vx0: left allmulticast mode [ 697.195870] vx0: left promiscuous mode [ 697.196437] br0: port 2(vx0) entered disabled state [ 697.197180] swp1: left allmulticast mode [ 697.197712] swp1: left promiscuous mode [ 697.198088] br0: port 1(swp1) entered disabled state [ 697.612523] veth0: renamed from veth1 [ 697.790682] br0: port 1(swp1) entered blocking state [ 697.791020] br0: port 1(swp1) entered disabled state [ 697.791313] swp1: entered allmulticast mode [ 697.791604] swp1: entered promiscuous mode [ 697.791900] br0: port 1(swp1) entered blocking state [ 697.792182] br0: port 1(swp1) entered forwarding state [ 697.825493] br0: port 2(vx0) entered blocking state [ 697.825788] br0: port 2(vx0) entered disabled state [ 697.826062] vx0: entered allmulticast mode [ 697.826434] vx0: entered promiscuous mode [ 697.826742] br0: port 2(vx0) entered blocking state [ 697.827103] br0: port 2(vx0) entered forwarding state [ 698.045670] br0: port 1(swp1) entered blocking state [ 698.046137] br0: port 1(swp1) entered disabled state [ 698.046534] swp1: entered allmulticast mode [ 698.046849] swp1: entered promiscuous mode [ 698.047147] br0: port 1(swp1) entered blocking state [ 698.047404] br0: port 1(swp1) entered forwarding state [ 698.079580] br0: port 2(vx0) entered blocking state [ 698.079869] br0: port 2(vx0) entered disabled state [ 698.080234] vx0: entered allmulticast mode [ 698.080578] vx0: entered promiscuous mode [ 698.080881] br0: port 2(vx0) entered blocking state [ 698.081200] 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 ] [ 703.490084] 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 ] [ 706.467127] vx0: left allmulticast mode [ 706.467453] vx0: left promiscuous mode [ 706.467795] br0: port 2(vx0) entered disabled state [ 706.468246] swp1: left allmulticast mode [ 706.468456] swp1: left promiscuous mode [ 706.468722] br0: port 1(swp1) entered disabled state [ 706.559220] vx0: left allmulticast mode [ 706.559506] vx0: left promiscuous mode [ 706.559791] br0: port 2(vx0) entered disabled state [ 706.560294] swp1: left allmulticast mode [ 706.560576] swp1: left promiscuous mode [ 706.560861] br0: port 1(swp1) entered disabled state [ 706.975272] veth0: renamed from veth1 [ 707.134112] br0: port 1(swp1) entered blocking state [ 707.134531] br0: port 1(swp1) entered disabled state [ 707.134930] swp1: entered allmulticast mode [ 707.135563] swp1: entered promiscuous mode [ 707.135981] br0: port 1(swp1) entered blocking state [ 707.136378] br0: port 1(swp1) entered forwarding state [ 707.174780] br0: port 2(vx0) entered blocking state [ 707.175153] br0: port 2(vx0) entered disabled state [ 707.175443] vx0: entered allmulticast mode [ 707.175739] vx0: entered promiscuous mode [ 707.175993] br0: port 2(vx0) entered blocking state [ 707.176269] br0: port 2(vx0) entered forwarding state [ 707.392039] br0: port 1(swp1) entered blocking state [ 707.392337] br0: port 1(swp1) entered disabled state [ 707.392618] swp1: entered allmulticast mode [ 707.392915] swp1: entered promiscuous mode [ 707.393234] br0: port 1(swp1) entered blocking state [ 707.393494] br0: port 1(swp1) entered forwarding state [ 707.427769] br0: port 2(vx0) entered blocking state [ 707.428194] br0: port 2(vx0) entered disabled state [ 707.428576] vx0: entered allmulticast mode [ 707.429013] vx0: entered promiscuous mode [ 707.429349] br0: port 2(vx0) entered blocking state [ 707.429725] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 712.777298] br0: port 1(swp1) entered disabled state [ 713.790141] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 719.892339] vx0: left allmulticast mode [ 719.892578] vx0: left promiscuous mode [ 719.892831] br0: port 2(vx0) entered disabled state [ 719.893310] swp1: left allmulticast mode [ 719.893534] swp1: left promiscuous mode [ 719.893784] br0: port 1(swp1) entered disabled state [ 719.980327] vx0: left allmulticast mode [ 719.980668] vx0: left promiscuous mode [ 719.980992] br0: port 2(vx0) entered disabled state [ 719.981573] swp1: left allmulticast mode [ 719.981979] swp1: left promiscuous mode [ 719.982318] br0: port 1(swp1) entered disabled state [ 720.354220] veth0: renamed from veth1 [ 720.485499] br0: port 1(swp1) entered blocking state [ 720.485796] br0: port 1(swp1) entered disabled state [ 720.486076] swp1: entered allmulticast mode [ 720.486368] swp1: entered promiscuous mode [ 720.486635] br0: port 1(swp1) entered blocking state [ 720.486908] br0: port 1(swp1) entered forwarding state [ 720.515887] br0: port 2(vx0) entered blocking state [ 720.516229] br0: port 2(vx0) entered disabled state [ 720.516546] vx0: entered allmulticast mode [ 720.516835] vx0: entered promiscuous mode [ 720.517088] br0: port 2(vx0) entered blocking state [ 720.517349] br0: port 2(vx0) entered forwarding state [ 720.717185] br0: port 1(swp1) entered blocking state [ 720.717602] br0: port 1(swp1) entered disabled state [ 720.718009] swp1: entered allmulticast mode [ 720.718448] swp1: entered promiscuous mode [ 720.718857] br0: port 1(swp1) entered blocking state [ 720.719247] br0: port 1(swp1) entered forwarding state [ 720.753272] br0: port 2(vx0) entered blocking state [ 720.753643] br0: port 2(vx0) entered disabled state [ 720.753933] vx0: entered allmulticast mode [ 720.754226] vx0: entered promiscuous mode [ 720.754453] br0: port 2(vx0) entered blocking state [ 720.754708] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 725.913753] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 755.944243] vx0: left allmulticast mode [ 755.944675] vx0: left promiscuous mode [ 755.944917] br0: port 2(vx0) entered disabled state [ 755.945359] swp1: left allmulticast mode [ 755.945585] swp1: left promiscuous mode [ 755.945807] br0: port 1(swp1) entered disabled state [ 756.012457] vx0: left allmulticast mode [ 756.013039] vx0: left promiscuous mode [ 756.013478] br0: port 2(vx0) entered disabled state [ 756.014274] swp1: left allmulticast mode [ 756.014645] swp1: left promiscuous mode [ 756.014950] 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__->