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 [ 678.855061] veth0: renamed from veth1 [ 679.025150] br0: port 1(swp1) entered blocking state [ 679.025461] br0: port 1(swp1) entered disabled state [ 679.025754] swp1: entered allmulticast mode [ 679.026131] swp1: entered promiscuous mode [ 679.026413] br0: port 1(swp1) entered blocking state [ 679.026693] br0: port 1(swp1) entered forwarding state [ 679.056981] br0: port 2(vx0) entered blocking state [ 679.057275] br0: port 2(vx0) entered disabled state [ 679.057531] vx0: entered allmulticast mode [ 679.057863] vx0: entered promiscuous mode [ 679.058306] br0: port 2(vx0) entered blocking state [ 679.058559] br0: port 2(vx0) entered forwarding state [ 679.264110] br0: port 1(swp1) entered blocking state [ 679.264491] br0: port 1(swp1) entered disabled state [ 679.264871] swp1: entered allmulticast mode [ 679.265266] swp1: entered promiscuous mode [ 679.265616] br0: port 1(swp1) entered blocking state [ 679.265973] br0: port 1(swp1) entered forwarding state [ 679.299642] br0: port 2(vx0) entered blocking state [ 679.299943] br0: port 2(vx0) entered disabled state [ 679.300198] vx0: entered allmulticast mode [ 679.300475] vx0: entered promiscuous mode [ 679.300756] br0: port 2(vx0) entered blocking state [ 679.301080] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 684.819284] 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 ] [ 685.189710] br0: port 1(swp1) entered blocking state [ 685.190146] 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 ] # TEST: No forwarding out of swp1 [ OK ] [ 685.824954] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 685.963090] br0: port 1(swp1) entered blocking state [ 685.963525] 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 ] # TEST: swp1 carrier off [ OK ] [ 686.832901] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [FAIL] # TEST: No forwarding out of vx0 [ OK ] [ 687.127005] vx0: left allmulticast mode [ 687.127263] vx0: left promiscuous mode [ 687.127498] br0: port 2(vx0) entered disabled state [ 687.137976] swp1: left allmulticast mode [ 687.138234] swp1: left promiscuous mode [ 687.138499] br0: port 1(swp1) entered disabled state [ 687.280987] vx0: left allmulticast mode [ 687.281249] vx0: left promiscuous mode [ 687.281506] br0: port 2(vx0) entered disabled state [ 687.292941] swp1: left allmulticast mode [ 687.293198] swp1: left promiscuous mode [ 687.293500] br0: port 1(swp1) entered disabled state [ 687.630341] veth0: renamed from veth1 [ 687.781245] br0: port 1(swp1) entered blocking state [ 687.781539] br0: port 1(swp1) entered disabled state [ 687.781929] swp1: entered allmulticast mode [ 687.782226] swp1: entered promiscuous mode [ 687.782496] br0: port 1(swp1) entered blocking state [ 687.782760] br0: port 1(swp1) entered forwarding state [ 687.808596] br0: port 2(vx0) entered blocking state [ 687.808917] br0: port 2(vx0) entered disabled state [ 687.809191] vx0: entered allmulticast mode [ 687.809595] vx0: entered promiscuous mode [ 687.809962] br0: port 2(vx0) entered blocking state [ 687.810217] br0: port 2(vx0) entered forwarding state [ 687.998953] br0: port 1(swp1) entered blocking state [ 687.999255] br0: port 1(swp1) entered disabled state [ 687.999525] swp1: entered allmulticast mode [ 687.999988] swp1: entered promiscuous mode [ 688.000262] br0: port 1(swp1) entered blocking state [ 688.000539] br0: port 1(swp1) entered forwarding state [ 688.030581] br0: port 2(vx0) entered blocking state [ 688.030895] br0: port 2(vx0) entered disabled state [ 688.031170] vx0: entered allmulticast mode [ 688.031470] vx0: entered promiscuous mode [ 688.031728] br0: port 2(vx0) entered blocking state [ 688.032004] 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.691568] 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 ] [ 694.369441] br0: port 1(swp1) entered blocking state [ 694.369731] 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.765344] 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 ] [ 695.429331] br0: port 1(swp1) entered blocking state [ 695.429649] 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.777576] 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.506052] vx0: left allmulticast mode [ 697.506313] vx0: left promiscuous mode [ 697.506572] br0: port 2(vx0) entered disabled state [ 697.522997] swp1: left allmulticast mode [ 697.523274] swp1: left promiscuous mode [ 697.523489] br0: port 1(swp1) entered disabled state [ 697.651991] vx0: left allmulticast mode [ 697.652285] vx0: left promiscuous mode [ 697.652535] br0: port 2(vx0) entered disabled state [ 697.659922] swp1: left allmulticast mode [ 697.660161] swp1: left promiscuous mode [ 697.660371] br0: port 1(swp1) entered disabled state [ 697.973042] veth0: renamed from veth1 [ 698.132384] br0: port 1(swp1) entered blocking state [ 698.132683] br0: port 1(swp1) entered disabled state [ 698.133003] swp1: entered allmulticast mode [ 698.133299] swp1: entered promiscuous mode [ 698.133622] br0: port 1(swp1) entered blocking state [ 698.133902] br0: port 1(swp1) entered forwarding state [ 698.166069] br0: port 2(vx0) entered blocking state [ 698.166383] br0: port 2(vx0) entered disabled state [ 698.166646] vx0: entered allmulticast mode [ 698.166941] vx0: entered promiscuous mode [ 698.167207] br0: port 2(vx0) entered blocking state [ 698.167485] br0: port 2(vx0) entered forwarding state [ 698.380087] br0: port 1(swp1) entered blocking state [ 698.380475] br0: port 1(swp1) entered disabled state [ 698.380764] swp1: entered allmulticast mode [ 698.381074] swp1: entered promiscuous mode [ 698.381346] br0: port 1(swp1) entered blocking state [ 698.381627] br0: port 1(swp1) entered forwarding state [ 698.418277] br0: port 2(vx0) entered blocking state [ 698.418682] br0: port 2(vx0) entered disabled state [ 698.419164] vx0: entered allmulticast mode [ 698.419589] vx0: entered promiscuous mode [ 698.419993] br0: port 2(vx0) entered blocking state [ 698.420355] 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.818524] 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.776016] vx0: left allmulticast mode [ 706.776631] vx0: left promiscuous mode [ 706.777014] br0: port 2(vx0) entered disabled state [ 706.787933] swp1: left allmulticast mode [ 706.788373] swp1: left promiscuous mode [ 706.788849] br0: port 1(swp1) entered disabled state [ 706.938055] vx0: left allmulticast mode [ 706.938422] vx0: left promiscuous mode [ 706.938740] br0: port 2(vx0) entered disabled state [ 706.946938] swp1: left allmulticast mode [ 706.947252] swp1: left promiscuous mode [ 706.947550] br0: port 1(swp1) entered disabled state [ 707.228034] veth0: renamed from veth1 [ 707.393718] br0: port 1(swp1) entered blocking state [ 707.394177] br0: port 1(swp1) entered disabled state [ 707.394565] swp1: entered allmulticast mode [ 707.395008] swp1: entered promiscuous mode [ 707.395393] br0: port 1(swp1) entered blocking state [ 707.395769] br0: port 1(swp1) entered forwarding state [ 707.429845] br0: port 2(vx0) entered blocking state [ 707.430130] br0: port 2(vx0) entered disabled state [ 707.430384] vx0: entered allmulticast mode [ 707.430673] vx0: entered promiscuous mode [ 707.430915] br0: port 2(vx0) entered blocking state [ 707.431168] br0: port 2(vx0) entered forwarding state [ 707.636469] br0: port 1(swp1) entered blocking state [ 707.636936] br0: port 1(swp1) entered disabled state [ 707.637334] swp1: entered allmulticast mode [ 707.637768] swp1: entered promiscuous mode [ 707.638182] br0: port 1(swp1) entered blocking state [ 707.638571] br0: port 1(swp1) entered forwarding state [ 707.670710] br0: port 2(vx0) entered blocking state [ 707.671105] br0: port 2(vx0) entered disabled state [ 707.671461] vx0: entered allmulticast mode [ 707.671855] vx0: entered promiscuous mode [ 707.672187] br0: port 2(vx0) entered blocking state [ 707.672537] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 713.002060] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 714.048868] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 719.116940] vx0: left allmulticast mode [ 719.117331] vx0: left promiscuous mode [ 719.117720] br0: port 2(vx0) entered disabled state [ 719.125912] swp1: left allmulticast mode [ 719.126211] swp1: left promiscuous mode [ 719.126536] br0: port 1(swp1) entered disabled state [ 719.251176] vx0: left allmulticast mode [ 719.251463] vx0: left promiscuous mode [ 719.251717] br0: port 2(vx0) entered disabled state [ 719.264956] swp1: left allmulticast mode [ 719.265184] swp1: left promiscuous mode [ 719.265408] br0: port 1(swp1) entered disabled state [ 719.556016] veth0: renamed from veth1 [ 719.706262] br0: port 1(swp1) entered blocking state [ 719.706675] br0: port 1(swp1) entered disabled state [ 719.707141] swp1: entered allmulticast mode [ 719.707571] swp1: entered promiscuous mode [ 719.707974] br0: port 1(swp1) entered blocking state [ 719.708352] br0: port 1(swp1) entered forwarding state [ 719.743165] br0: port 2(vx0) entered blocking state [ 719.743563] br0: port 2(vx0) entered disabled state [ 719.743952] vx0: entered allmulticast mode [ 719.744378] vx0: entered promiscuous mode [ 719.744714] br0: port 2(vx0) entered blocking state [ 719.745111] br0: port 2(vx0) entered forwarding state [ 719.930871] br0: port 1(swp1) entered blocking state [ 719.931157] br0: port 1(swp1) entered disabled state [ 719.931420] swp1: entered allmulticast mode [ 719.931701] swp1: entered promiscuous mode [ 719.932052] br0: port 1(swp1) entered blocking state [ 719.932309] br0: port 1(swp1) entered forwarding state [ 719.962270] br0: port 2(vx0) entered blocking state [ 719.962670] br0: port 2(vx0) entered disabled state [ 719.963073] vx0: entered allmulticast mode [ 719.963505] vx0: entered promiscuous mode [ 719.963975] br0: port 2(vx0) entered blocking state [ 719.964310] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 725.117882] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 755.203966] vx0: left allmulticast mode [ 755.204224] vx0: left promiscuous mode [ 755.204495] br0: port 2(vx0) entered disabled state [ 755.215950] swp1: left allmulticast mode [ 755.216191] swp1: left promiscuous mode [ 755.216459] br0: port 1(swp1) entered disabled state # # Tests passed: 82 # Tests failed: 1 not ok 1 selftests: net: test_bridge_backup_port.sh # exit=1 make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> [ 755.346959] vx0: left allmulticast mode [ 755.347256] vx0: left promiscuous mode [ 755.347523] br0: port 2(vx0) entered disabled state [ 755.356938] swp1: left allmulticast mode [ 755.357214] swp1: left promiscuous mode [ 755.357466] br0: port 1(swp1) entered disabled state xx__-> xx__-> echo $? 0 xx__->