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 [ 738.893592] veth0: renamed from veth1 [ 739.037463] br0: port 1(swp1) entered blocking state [ 739.037768] br0: port 1(swp1) entered disabled state [ 739.038043] swp1: entered allmulticast mode [ 739.038328] swp1: entered promiscuous mode [ 739.038591] br0: port 1(swp1) entered blocking state [ 739.038857] br0: port 1(swp1) entered forwarding state [ 739.064926] br0: port 2(vx0) entered blocking state [ 739.065207] br0: port 2(vx0) entered disabled state [ 739.065462] vx0: entered allmulticast mode [ 739.065732] vx0: entered promiscuous mode [ 739.066031] br0: port 2(vx0) entered blocking state [ 739.066297] br0: port 2(vx0) entered forwarding state [ 739.228118] br0: port 1(swp1) entered blocking state [ 739.228426] br0: port 1(swp1) entered disabled state [ 739.228718] swp1: entered allmulticast mode [ 739.229031] swp1: entered promiscuous mode [ 739.229320] br0: port 1(swp1) entered blocking state [ 739.229594] br0: port 1(swp1) entered forwarding state [ 739.252367] br0: port 2(vx0) entered blocking state [ 739.252672] br0: port 2(vx0) entered disabled state [ 739.253012] vx0: entered allmulticast mode [ 739.253313] vx0: entered promiscuous mode [ 739.253550] br0: port 2(vx0) entered blocking state [ 739.253822] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 744.734253] 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 ] [ 746.095842] br0: port 1(swp1) entered blocking state [ 746.096270] 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 ] [ 747.133898] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] [ 747.821205] br0: port 1(swp1) entered blocking state [ 747.821628] 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 ] [ 749.532187] 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 ] [ 750.980895] vx0: left allmulticast mode [ 750.981271] vx0: left promiscuous mode [ 750.981650] br0: port 2(vx0) entered disabled state [ 750.992949] swp1: left allmulticast mode [ 750.993297] swp1: left promiscuous mode [ 750.993619] br0: port 1(swp1) entered disabled state [ 751.167934] vx0: left allmulticast mode [ 751.168337] vx0: left promiscuous mode [ 751.168778] br0: port 2(vx0) entered disabled state [ 751.179898] swp1: left allmulticast mode [ 751.180275] swp1: left promiscuous mode [ 751.180641] br0: port 1(swp1) entered disabled state [ 751.368087] veth0: renamed from veth1 [ 751.508374] br0: port 1(swp1) entered blocking state [ 751.508807] br0: port 1(swp1) entered disabled state [ 751.509200] swp1: entered allmulticast mode [ 751.509616] swp1: entered promiscuous mode [ 751.510108] br0: port 1(swp1) entered blocking state [ 751.510491] br0: port 1(swp1) entered forwarding state [ 751.536600] br0: port 2(vx0) entered blocking state [ 751.537015] br0: port 2(vx0) entered disabled state [ 751.537404] vx0: entered allmulticast mode [ 751.537839] vx0: entered promiscuous mode [ 751.538195] br0: port 2(vx0) entered blocking state [ 751.538576] br0: port 2(vx0) entered forwarding state [ 751.705234] br0: port 1(swp1) entered blocking state [ 751.705527] br0: port 1(swp1) entered disabled state [ 751.705806] swp1: entered allmulticast mode [ 751.706108] swp1: entered promiscuous mode [ 751.706380] br0: port 1(swp1) entered blocking state [ 751.706639] br0: port 1(swp1) entered forwarding state [ 751.731663] br0: port 2(vx0) entered blocking state [ 751.731961] br0: port 2(vx0) entered disabled state [ 751.732226] vx0: entered allmulticast mode [ 751.732503] vx0: entered promiscuous mode [ 751.732728] br0: port 2(vx0) entered blocking state [ 751.732992] 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 ] [ 757.348840] 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 ] [ 758.997292] br0: port 1(swp1) entered blocking state [ 758.997701] 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 ] [ 759.997876] 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 ] [ 761.030768] br0: port 1(swp1) entered blocking state [ 761.031060] 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 ] [ 763.355140] 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 ] [ 765.119873] vx0: left allmulticast mode [ 765.120198] vx0: left promiscuous mode [ 765.120566] br0: port 2(vx0) entered disabled state [ 765.135877] swp1: left allmulticast mode [ 765.136233] swp1: left promiscuous mode [ 765.136476] br0: port 1(swp1) entered disabled state [ 765.326872] vx0: left allmulticast mode [ 765.327286] vx0: left promiscuous mode [ 765.327697] br0: port 2(vx0) entered disabled state [ 765.335853] swp1: left allmulticast mode [ 765.336350] swp1: left promiscuous mode [ 765.336837] br0: port 1(swp1) entered disabled state [ 765.509948] veth0: renamed from veth1 [ 765.654185] br0: port 1(swp1) entered blocking state [ 765.654476] br0: port 1(swp1) entered disabled state [ 765.654763] swp1: entered allmulticast mode [ 765.655054] swp1: entered promiscuous mode [ 765.655326] br0: port 1(swp1) entered blocking state [ 765.655583] br0: port 1(swp1) entered forwarding state [ 765.683000] br0: port 2(vx0) entered blocking state [ 765.683278] br0: port 2(vx0) entered disabled state [ 765.683533] vx0: entered allmulticast mode [ 765.683822] vx0: entered promiscuous mode [ 765.684047] br0: port 2(vx0) entered blocking state [ 765.684300] br0: port 2(vx0) entered forwarding state [ 765.857448] br0: port 1(swp1) entered blocking state [ 765.857739] br0: port 1(swp1) entered disabled state [ 765.858022] swp1: entered allmulticast mode [ 765.858314] swp1: entered promiscuous mode [ 765.858585] br0: port 1(swp1) entered blocking state [ 765.858850] br0: port 1(swp1) entered forwarding state [ 765.885505] br0: port 2(vx0) entered blocking state [ 765.885982] br0: port 2(vx0) entered disabled state [ 765.886384] vx0: entered allmulticast mode [ 765.886845] vx0: entered promiscuous mode [ 765.887206] br0: port 2(vx0) entered blocking state [ 765.887594] 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 ] [ 771.220331] 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 ] [ 775.180962] vx0: left allmulticast mode [ 775.181350] vx0: left promiscuous mode [ 775.181657] br0: port 2(vx0) entered disabled state [ 775.189873] swp1: left allmulticast mode [ 775.190317] swp1: left promiscuous mode [ 775.190793] br0: port 1(swp1) entered disabled state [ 775.374907] vx0: left allmulticast mode [ 775.375311] vx0: left promiscuous mode [ 775.375666] br0: port 2(vx0) entered disabled state [ 775.396866] swp1: left allmulticast mode [ 775.397269] swp1: left promiscuous mode [ 775.397670] br0: port 1(swp1) entered disabled state [ 775.547978] veth0: renamed from veth1 [ 775.686068] br0: port 1(swp1) entered blocking state [ 775.686394] br0: port 1(swp1) entered disabled state [ 775.686680] swp1: entered allmulticast mode [ 775.687152] swp1: entered promiscuous mode [ 775.687498] br0: port 1(swp1) entered blocking state [ 775.687816] br0: port 1(swp1) entered forwarding state [ 775.713045] br0: port 2(vx0) entered blocking state [ 775.713413] br0: port 2(vx0) entered disabled state [ 775.713726] vx0: entered allmulticast mode [ 775.714054] vx0: entered promiscuous mode [ 775.714350] br0: port 2(vx0) entered blocking state [ 775.714675] br0: port 2(vx0) entered forwarding state [ 775.886680] br0: port 1(swp1) entered blocking state [ 775.886995] br0: port 1(swp1) entered disabled state [ 775.887270] swp1: entered allmulticast mode [ 775.887655] swp1: entered promiscuous mode [ 775.888037] br0: port 1(swp1) entered blocking state [ 775.888298] br0: port 1(swp1) entered forwarding state [ 775.916073] br0: port 2(vx0) entered blocking state [ 775.916376] br0: port 2(vx0) entered disabled state [ 775.916629] vx0: entered allmulticast mode [ 775.916950] vx0: entered promiscuous mode [ 775.917174] br0: port 2(vx0) entered blocking state [ 775.917425] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 781.221132] br0: port 1(swp1) entered disabled state [ 782.269820] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 788.363869] vx0: left allmulticast mode [ 788.364118] vx0: left promiscuous mode [ 788.364343] br0: port 2(vx0) entered disabled state [ 788.372838] swp1: left allmulticast mode [ 788.373058] swp1: left promiscuous mode [ 788.373266] br0: port 1(swp1) entered disabled state [ 788.530886] vx0: left allmulticast mode [ 788.531326] vx0: left promiscuous mode [ 788.531787] br0: port 2(vx0) entered disabled state [ 788.544871] swp1: left allmulticast mode [ 788.545282] swp1: left promiscuous mode [ 788.545663] br0: port 1(swp1) entered disabled state [ 788.681960] veth0: renamed from veth1 [ 788.806021] br0: port 1(swp1) entered blocking state [ 788.806313] br0: port 1(swp1) entered disabled state [ 788.806575] swp1: entered allmulticast mode [ 788.806864] swp1: entered promiscuous mode [ 788.807124] br0: port 1(swp1) entered blocking state [ 788.807380] br0: port 1(swp1) entered forwarding state [ 788.832038] br0: port 2(vx0) entered blocking state [ 788.832322] br0: port 2(vx0) entered disabled state [ 788.832576] vx0: entered allmulticast mode [ 788.832909] vx0: entered promiscuous mode [ 788.833159] br0: port 2(vx0) entered blocking state [ 788.833410] br0: port 2(vx0) entered forwarding state [ 788.983905] br0: port 1(swp1) entered blocking state [ 788.984202] br0: port 1(swp1) entered disabled state [ 788.984482] swp1: entered allmulticast mode [ 788.984790] swp1: entered promiscuous mode [ 788.985067] br0: port 1(swp1) entered blocking state [ 788.985342] br0: port 1(swp1) entered forwarding state [ 789.013241] br0: port 2(vx0) entered blocking state [ 789.013521] br0: port 2(vx0) entered disabled state [ 789.013818] vx0: entered allmulticast mode [ 789.014092] vx0: entered promiscuous mode [ 789.014320] br0: port 2(vx0) entered blocking state [ 789.014571] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 794.176077] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] # # Tests passed: 83 # Tests failed: 0 [ 824.320857] vx0: left allmulticast mode [ 824.321289] vx0: left promiscuous mode [ 824.321498] br0: port 2(vx0) entered disabled state [ 824.329913] swp1: left allmulticast mode [ 824.330316] swp1: left promiscuous mode [ 824.330626] 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__->