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 [ 684.882833] veth0: renamed from veth1 [ 685.046967] br0: port 1(swp1) entered blocking state [ 685.047275] br0: port 1(swp1) entered disabled state [ 685.047573] swp1: entered allmulticast mode [ 685.047957] swp1: entered promiscuous mode [ 685.048332] br0: port 1(swp1) entered blocking state [ 685.048720] br0: port 1(swp1) entered forwarding state [ 685.079463] br0: port 2(vx0) entered blocking state [ 685.079773] br0: port 2(vx0) entered disabled state [ 685.080038] vx0: entered allmulticast mode [ 685.080323] vx0: entered promiscuous mode [ 685.080567] br0: port 2(vx0) entered blocking state [ 685.080842] br0: port 2(vx0) entered forwarding state [ 685.292975] br0: port 1(swp1) entered blocking state [ 685.293284] br0: port 1(swp1) entered disabled state [ 685.293581] swp1: entered allmulticast mode [ 685.293987] swp1: entered promiscuous mode [ 685.294275] br0: port 1(swp1) entered blocking state [ 685.294552] br0: port 1(swp1) entered forwarding state [ 685.328061] br0: port 2(vx0) entered blocking state [ 685.328375] br0: port 2(vx0) entered disabled state [ 685.328692] vx0: entered allmulticast mode [ 685.328994] vx0: entered promiscuous mode [ 685.329248] br0: port 2(vx0) entered blocking state [ 685.329529] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 690.846957] 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 ] [ 691.280704] br0: port 1(swp1) entered blocking state [ 691.281028] 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 ] [ 691.854746] 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 ] [ 692.265227] br0: port 1(swp1) entered blocking state [ 692.265530] 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 ] [ 693.071689] 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 ] [ 693.492793] vx0: left allmulticast mode [ 693.493123] vx0: left promiscuous mode [ 693.493365] br0: port 2(vx0) entered disabled state [ 693.506783] swp1: left allmulticast mode [ 693.507023] swp1: left promiscuous mode [ 693.507275] br0: port 1(swp1) entered disabled state [ 693.631786] vx0: left allmulticast mode [ 693.632146] vx0: left promiscuous mode [ 693.632504] br0: port 2(vx0) entered disabled state [ 693.646874] swp1: left allmulticast mode [ 693.647228] swp1: left promiscuous mode [ 693.647571] br0: port 1(swp1) entered disabled state [ 693.985585] veth0: renamed from veth1 [ 694.153924] br0: port 1(swp1) entered blocking state [ 694.154281] br0: port 1(swp1) entered disabled state [ 694.154567] swp1: entered allmulticast mode [ 694.154891] swp1: entered promiscuous mode [ 694.155201] br0: port 1(swp1) entered blocking state [ 694.155528] br0: port 1(swp1) entered forwarding state [ 694.187238] br0: port 2(vx0) entered blocking state [ 694.187566] br0: port 2(vx0) entered disabled state [ 694.187917] vx0: entered allmulticast mode [ 694.188244] vx0: entered promiscuous mode [ 694.188503] br0: port 2(vx0) entered blocking state [ 694.188802] br0: port 2(vx0) entered forwarding state [ 694.384181] br0: port 1(swp1) entered blocking state [ 694.384643] br0: port 1(swp1) entered disabled state [ 694.385070] swp1: entered allmulticast mode [ 694.385538] swp1: entered promiscuous mode [ 694.385982] br0: port 1(swp1) entered blocking state [ 694.386389] br0: port 1(swp1) entered forwarding state [ 694.419141] br0: port 2(vx0) entered blocking state [ 694.419573] br0: port 2(vx0) entered disabled state [ 694.419989] vx0: entered allmulticast mode [ 694.420436] vx0: entered promiscuous mode [ 694.420872] br0: port 2(vx0) entered blocking state [ 694.421274] 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 ] [ 700.079817] 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.780485] br0: port 1(swp1) entered blocking state [ 700.780791] 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 ] [ 701.222536] 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 ] [ 701.946557] br0: port 1(swp1) entered blocking state [ 701.946891] 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 ] [ 703.345182] 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 ] [ 704.058762] vx0: left allmulticast mode [ 704.059015] vx0: left promiscuous mode [ 704.059281] br0: port 2(vx0) entered disabled state [ 704.066789] swp1: left allmulticast mode [ 704.067051] swp1: left promiscuous mode [ 704.067296] br0: port 1(swp1) entered disabled state [ 704.182797] vx0: left allmulticast mode [ 704.183417] vx0: left promiscuous mode [ 704.184114] br0: port 2(vx0) entered disabled state [ 704.196806] swp1: left allmulticast mode [ 704.197083] swp1: left promiscuous mode [ 704.197321] br0: port 1(swp1) entered disabled state [ 704.576361] veth0: renamed from veth1 [ 704.745404] br0: port 1(swp1) entered blocking state [ 704.745798] br0: port 1(swp1) entered disabled state [ 704.746087] swp1: entered allmulticast mode [ 704.746415] swp1: entered promiscuous mode [ 704.746709] br0: port 1(swp1) entered blocking state [ 704.746987] br0: port 1(swp1) entered forwarding state [ 704.778071] br0: port 2(vx0) entered blocking state [ 704.778378] br0: port 2(vx0) entered disabled state [ 704.778683] vx0: entered allmulticast mode [ 704.779004] vx0: entered promiscuous mode [ 704.779274] br0: port 2(vx0) entered blocking state [ 704.779575] br0: port 2(vx0) entered forwarding state [ 704.984472] br0: port 1(swp1) entered blocking state [ 704.984970] br0: port 1(swp1) entered disabled state [ 704.985373] swp1: entered allmulticast mode [ 704.985764] swp1: entered promiscuous mode [ 704.986163] br0: port 1(swp1) entered blocking state [ 704.986527] br0: port 1(swp1) entered forwarding state [ 705.019206] br0: port 2(vx0) entered blocking state [ 705.019498] br0: port 2(vx0) entered disabled state [ 705.019773] vx0: entered allmulticast mode [ 705.020175] vx0: entered promiscuous mode [ 705.020424] br0: port 2(vx0) entered blocking state [ 705.020701] 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 ] [ 710.412591] 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 ] [ 713.365778] vx0: left allmulticast mode [ 713.366202] vx0: left promiscuous mode [ 713.366519] br0: port 2(vx0) entered disabled state [ 713.382917] swp1: left allmulticast mode [ 713.383446] swp1: left promiscuous mode [ 713.383951] br0: port 1(swp1) entered disabled state [ 713.538734] vx0: left allmulticast mode [ 713.539076] vx0: left promiscuous mode [ 713.539395] br0: port 2(vx0) entered disabled state [ 713.555913] swp1: left allmulticast mode [ 713.556172] swp1: left promiscuous mode [ 713.556394] br0: port 1(swp1) entered disabled state [ 713.884837] veth0: renamed from veth1 [ 714.043817] br0: port 1(swp1) entered blocking state [ 714.044119] br0: port 1(swp1) entered disabled state [ 714.044400] swp1: entered allmulticast mode [ 714.044719] swp1: entered promiscuous mode [ 714.044996] br0: port 1(swp1) entered blocking state [ 714.045266] br0: port 1(swp1) entered forwarding state [ 714.074385] br0: port 2(vx0) entered blocking state [ 714.074688] br0: port 2(vx0) entered disabled state [ 714.074956] vx0: entered allmulticast mode [ 714.075240] vx0: entered promiscuous mode [ 714.075505] br0: port 2(vx0) entered blocking state [ 714.075779] br0: port 2(vx0) entered forwarding state [ 714.248968] br0: port 1(swp1) entered blocking state [ 714.249291] br0: port 1(swp1) entered disabled state [ 714.249586] swp1: entered allmulticast mode [ 714.249913] swp1: entered promiscuous mode [ 714.250205] br0: port 1(swp1) entered blocking state [ 714.250475] br0: port 1(swp1) entered forwarding state [ 714.277829] br0: port 2(vx0) entered blocking state [ 714.278124] br0: port 2(vx0) entered disabled state [ 714.278389] vx0: entered allmulticast mode [ 714.278685] vx0: entered promiscuous mode [ 714.278930] br0: port 2(vx0) entered blocking state [ 714.279192] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 719.597380] br0: port 1(swp1) entered disabled state [ 720.639704] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 726.728740] vx0: left allmulticast mode [ 726.729199] vx0: left promiscuous mode [ 726.729635] br0: port 2(vx0) entered disabled state [ 726.741816] swp1: left allmulticast mode [ 726.742298] swp1: left promiscuous mode [ 726.742595] br0: port 1(swp1) entered disabled state [ 726.840771] vx0: left allmulticast mode [ 726.841382] vx0: left promiscuous mode [ 726.841876] br0: port 2(vx0) entered disabled state [ 726.856825] swp1: left allmulticast mode [ 726.857167] swp1: left promiscuous mode [ 726.857492] br0: port 1(swp1) entered disabled state [ 727.213890] veth0: renamed from veth1 [ 727.370333] br0: port 1(swp1) entered blocking state [ 727.370727] br0: port 1(swp1) entered disabled state [ 727.371020] swp1: entered allmulticast mode [ 727.371356] swp1: entered promiscuous mode [ 727.371657] br0: port 1(swp1) entered blocking state [ 727.371946] br0: port 1(swp1) entered forwarding state [ 727.401369] br0: port 2(vx0) entered blocking state [ 727.401718] br0: port 2(vx0) entered disabled state [ 727.401988] vx0: entered allmulticast mode [ 727.402277] vx0: entered promiscuous mode [ 727.402523] br0: port 2(vx0) entered blocking state [ 727.402795] br0: port 2(vx0) entered forwarding state [ 727.606097] br0: port 1(swp1) entered blocking state [ 727.606469] br0: port 1(swp1) entered disabled state [ 727.606848] swp1: entered allmulticast mode [ 727.607164] swp1: entered promiscuous mode [ 727.607440] br0: port 1(swp1) entered blocking state [ 727.607727] br0: port 1(swp1) entered forwarding state [ 727.640964] br0: port 2(vx0) entered blocking state [ 727.641382] br0: port 2(vx0) entered disabled state [ 727.641797] vx0: entered allmulticast mode [ 727.642236] vx0: entered promiscuous mode [ 727.642588] br0: port 2(vx0) entered blocking state [ 727.642994] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 732.816914] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 762.872785] vx0: left allmulticast mode [ 762.873209] vx0: left promiscuous mode [ 762.873564] br0: port 2(vx0) entered disabled state [ 762.880789] swp1: left allmulticast mode [ 762.881246] swp1: left promiscuous mode [ 762.881680] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 763.002732] vx0: left allmulticast mode [ 763.003065] vx0: left promiscuous mode [ 763.003416] br0: port 2(vx0) entered disabled state [ 763.014783] swp1: left allmulticast mode [ 763.015173] swp1: left promiscuous mode [ 763.015585] 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__->