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 [ 685.920265] veth0: renamed from veth1 [ 686.079602] br0: port 1(swp1) entered blocking state [ 686.079926] br0: port 1(swp1) entered disabled state [ 686.080223] swp1: entered allmulticast mode [ 686.080528] swp1: entered promiscuous mode [ 686.080838] br0: port 1(swp1) entered blocking state [ 686.081123] br0: port 1(swp1) entered forwarding state [ 686.113135] br0: port 2(vx0) entered blocking state [ 686.113427] br0: port 2(vx0) entered disabled state [ 686.113694] vx0: entered allmulticast mode [ 686.114067] vx0: entered promiscuous mode [ 686.114310] br0: port 2(vx0) entered blocking state [ 686.114574] br0: port 2(vx0) entered forwarding state [ 686.322611] br0: port 1(swp1) entered blocking state [ 686.322979] br0: port 1(swp1) entered disabled state [ 686.323261] swp1: entered allmulticast mode [ 686.323587] swp1: entered promiscuous mode [ 686.323906] br0: port 1(swp1) entered blocking state [ 686.324171] br0: port 1(swp1) entered forwarding state [ 686.357335] br0: port 2(vx0) entered blocking state [ 686.357634] br0: port 2(vx0) entered disabled state [ 686.357908] vx0: entered allmulticast mode [ 686.358207] vx0: entered promiscuous mode [ 686.358651] br0: port 2(vx0) entered blocking state [ 686.358918] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 691.857777] 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 ] [ 692.284611] br0: port 1(swp1) entered blocking state [ 692.285099] 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 ] [ 692.862990] 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 ] [ 693.305983] br0: port 1(swp1) entered blocking state [ 693.306302] 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 ] [ 694.130637] 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 ] [ 694.552509] vx0: left allmulticast mode [ 694.552766] vx0: left promiscuous mode [ 694.552993] br0: port 2(vx0) entered disabled state [ 694.553938] swp1: left allmulticast mode [ 694.554186] swp1: left promiscuous mode [ 694.554405] br0: port 1(swp1) entered disabled state [ 694.660954] vx0: left allmulticast mode [ 694.661210] vx0: left promiscuous mode [ 694.661460] br0: port 2(vx0) entered disabled state [ 694.661884] swp1: left allmulticast mode [ 694.662142] swp1: left promiscuous mode [ 694.662435] br0: port 1(swp1) entered disabled state [ 695.072970] veth0: renamed from veth1 [ 695.225308] br0: port 1(swp1) entered blocking state [ 695.225608] br0: port 1(swp1) entered disabled state [ 695.225912] swp1: entered allmulticast mode [ 695.226213] swp1: entered promiscuous mode [ 695.226491] br0: port 1(swp1) entered blocking state [ 695.226761] br0: port 1(swp1) entered forwarding state [ 695.255276] br0: port 2(vx0) entered blocking state [ 695.255569] br0: port 2(vx0) entered disabled state [ 695.255843] vx0: entered allmulticast mode [ 695.256129] vx0: entered promiscuous mode [ 695.256372] br0: port 2(vx0) entered blocking state [ 695.256631] br0: port 2(vx0) entered forwarding state [ 695.455269] br0: port 1(swp1) entered blocking state [ 695.455570] br0: port 1(swp1) entered disabled state [ 695.455912] swp1: entered allmulticast mode [ 695.456215] swp1: entered promiscuous mode [ 695.456506] br0: port 1(swp1) entered blocking state [ 695.456783] br0: port 1(swp1) entered forwarding state [ 695.486794] br0: port 2(vx0) entered blocking state [ 695.487089] br0: port 2(vx0) entered disabled state [ 695.487420] vx0: entered allmulticast mode [ 695.487821] vx0: entered promiscuous mode [ 695.488076] br0: port 2(vx0) entered blocking state [ 695.488338] 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 ] [ 701.149138] 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 ] [ 701.868922] br0: port 1(swp1) entered blocking state [ 701.869230] 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 ] [ 702.327346] 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 ] [ 703.058823] br0: port 1(swp1) entered blocking state [ 703.059221] 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 ] [ 704.461838] 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 ] [ 705.169655] vx0: left allmulticast mode [ 705.170280] vx0: left promiscuous mode [ 705.170599] br0: port 2(vx0) entered disabled state [ 705.171175] swp1: left allmulticast mode [ 705.171692] swp1: left promiscuous mode [ 705.172256] br0: port 1(swp1) entered disabled state [ 705.263911] vx0: left allmulticast mode [ 705.264445] vx0: left promiscuous mode [ 705.264910] br0: port 2(vx0) entered disabled state [ 705.265639] swp1: left allmulticast mode [ 705.266126] swp1: left promiscuous mode [ 705.266675] br0: port 1(swp1) entered disabled state [ 705.628456] veth0: renamed from veth1 [ 705.788495] br0: port 1(swp1) entered blocking state [ 705.788821] br0: port 1(swp1) entered disabled state [ 705.789099] swp1: entered allmulticast mode [ 705.789400] swp1: entered promiscuous mode [ 705.789683] br0: port 1(swp1) entered blocking state [ 705.789968] br0: port 1(swp1) entered forwarding state [ 705.822778] br0: port 2(vx0) entered blocking state [ 705.823098] br0: port 2(vx0) entered disabled state [ 705.823374] vx0: entered allmulticast mode [ 705.823682] vx0: entered promiscuous mode [ 705.823989] br0: port 2(vx0) entered blocking state [ 705.824277] br0: port 2(vx0) entered forwarding state [ 706.036127] br0: port 1(swp1) entered blocking state [ 706.036560] br0: port 1(swp1) entered disabled state [ 706.036981] swp1: entered allmulticast mode [ 706.037430] swp1: entered promiscuous mode [ 706.037853] br0: port 1(swp1) entered blocking state [ 706.038252] br0: port 1(swp1) entered forwarding state [ 706.070029] br0: port 2(vx0) entered blocking state [ 706.070349] br0: port 2(vx0) entered disabled state [ 706.070611] vx0: entered allmulticast mode [ 706.070918] vx0: entered promiscuous mode [ 706.071183] br0: port 2(vx0) entered blocking state [ 706.071498] 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 ] [ 711.477039] 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 ] [ 714.441400] vx0: left allmulticast mode [ 714.441945] vx0: left promiscuous mode [ 714.442251] br0: port 2(vx0) entered disabled state [ 714.443331] swp1: left allmulticast mode [ 714.443649] swp1: left promiscuous mode [ 714.444055] br0: port 1(swp1) entered disabled state [ 714.517941] vx0: left allmulticast mode [ 714.518362] vx0: left promiscuous mode [ 714.518763] br0: port 2(vx0) entered disabled state [ 714.519413] swp1: left allmulticast mode [ 714.519851] swp1: left promiscuous mode [ 714.520270] br0: port 1(swp1) entered disabled state [ 714.940939] veth0: renamed from veth1 [ 715.102525] br0: port 1(swp1) entered blocking state [ 715.102986] br0: port 1(swp1) entered disabled state [ 715.103395] swp1: entered allmulticast mode [ 715.103856] swp1: entered promiscuous mode [ 715.104269] br0: port 1(swp1) entered blocking state [ 715.104656] br0: port 1(swp1) entered forwarding state [ 715.138331] br0: port 2(vx0) entered blocking state [ 715.138630] br0: port 2(vx0) entered disabled state [ 715.138902] vx0: entered allmulticast mode [ 715.139187] vx0: entered promiscuous mode [ 715.139433] br0: port 2(vx0) entered blocking state [ 715.139714] br0: port 2(vx0) entered forwarding state [ 715.355584] br0: port 1(swp1) entered blocking state [ 715.355947] br0: port 1(swp1) entered disabled state [ 715.356254] swp1: entered allmulticast mode [ 715.356613] swp1: entered promiscuous mode [ 715.356911] br0: port 1(swp1) entered blocking state [ 715.357220] br0: port 1(swp1) entered forwarding state [ 715.391399] br0: port 2(vx0) entered blocking state [ 715.391791] br0: port 2(vx0) entered disabled state [ 715.392073] vx0: entered allmulticast mode [ 715.392367] vx0: entered promiscuous mode [ 715.392616] br0: port 2(vx0) entered blocking state [ 715.392981] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 720.778184] br0: port 1(swp1) entered disabled state [ 721.791826] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 727.884459] vx0: left allmulticast mode [ 727.884776] vx0: left promiscuous mode [ 727.885210] br0: port 2(vx0) entered disabled state [ 727.885635] swp1: left allmulticast mode [ 727.885878] swp1: left promiscuous mode [ 727.886120] br0: port 1(swp1) entered disabled state [ 727.948931] vx0: left allmulticast mode [ 727.949316] vx0: left promiscuous mode [ 727.949784] br0: port 2(vx0) entered disabled state [ 727.950383] swp1: left allmulticast mode [ 727.950816] swp1: left promiscuous mode [ 727.951046] br0: port 1(swp1) entered disabled state [ 728.354989] veth0: renamed from veth1 [ 728.506307] br0: port 1(swp1) entered blocking state [ 728.506749] br0: port 1(swp1) entered disabled state [ 728.507145] swp1: entered allmulticast mode [ 728.507585] swp1: entered promiscuous mode [ 728.508006] br0: port 1(swp1) entered blocking state [ 728.508308] br0: port 1(swp1) entered forwarding state [ 728.533644] br0: port 2(vx0) entered blocking state [ 728.534007] br0: port 2(vx0) entered disabled state [ 728.534282] vx0: entered allmulticast mode [ 728.534566] vx0: entered promiscuous mode [ 728.534807] br0: port 2(vx0) entered blocking state [ 728.535075] br0: port 2(vx0) entered forwarding state [ 728.706738] br0: port 1(swp1) entered blocking state [ 728.707160] br0: port 1(swp1) entered disabled state [ 728.707566] swp1: entered allmulticast mode [ 728.708029] swp1: entered promiscuous mode [ 728.708445] br0: port 1(swp1) entered blocking state [ 728.708848] br0: port 1(swp1) entered forwarding state [ 728.737352] br0: port 2(vx0) entered blocking state [ 728.737787] br0: port 2(vx0) entered disabled state [ 728.738175] vx0: entered allmulticast mode [ 728.738581] vx0: entered promiscuous mode [ 728.738981] br0: port 2(vx0) entered blocking state [ 728.739360] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 733.914310] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 763.952820] vx0: left allmulticast mode [ 763.953378] vx0: left promiscuous mode [ 763.953747] br0: port 2(vx0) entered disabled state [ 763.954354] swp1: left allmulticast mode [ 763.954751] swp1: left promiscuous mode [ 763.955198] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 764.037061] vx0: left allmulticast mode [ 764.037750] vx0: left promiscuous mode [ 764.038334] br0: port 2(vx0) entered disabled state [ 764.038860] swp1: left allmulticast mode [ 764.039210] swp1: left promiscuous mode [ 764.039661] 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__->