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 [ 679.333966] veth0: renamed from veth1 [ 679.506169] br0: port 1(swp1) entered blocking state [ 679.506476] br0: port 1(swp1) entered disabled state [ 679.506751] swp1: entered allmulticast mode [ 679.507062] swp1: entered promiscuous mode [ 679.507343] br0: port 1(swp1) entered blocking state [ 679.507603] br0: port 1(swp1) entered forwarding state [ 679.543308] br0: port 2(vx0) entered blocking state [ 679.543737] br0: port 2(vx0) entered disabled state [ 679.544138] vx0: entered allmulticast mode [ 679.544588] vx0: entered promiscuous mode [ 679.545182] br0: port 2(vx0) entered blocking state [ 679.545593] br0: port 2(vx0) entered forwarding state [ 679.767796] br0: port 1(swp1) entered blocking state [ 679.768129] br0: port 1(swp1) entered disabled state [ 679.768475] swp1: entered allmulticast mode [ 679.768777] swp1: entered promiscuous mode [ 679.769107] br0: port 1(swp1) entered blocking state [ 679.769449] br0: port 1(swp1) entered forwarding state [ 679.804295] br0: port 2(vx0) entered blocking state [ 679.804596] br0: port 2(vx0) entered disabled state [ 679.804948] vx0: entered allmulticast mode [ 679.805355] vx0: entered promiscuous mode [ 679.805661] br0: port 2(vx0) entered blocking state [ 679.806011] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 685.314719] 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.716837] br0: port 1(swp1) entered blocking state [ 685.717167] 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 ] [ 686.317405] 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 ] [ 686.719346] br0: port 1(swp1) entered blocking state [ 686.719652] 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 ] [ 687.533379] 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 ] [ 687.953676] vx0: left allmulticast mode [ 687.953914] vx0: left promiscuous mode [ 687.954135] br0: port 2(vx0) entered disabled state [ 687.954555] swp1: left allmulticast mode [ 687.954766] swp1: left promiscuous mode [ 687.954978] br0: port 1(swp1) entered disabled state [ 688.038560] vx0: left allmulticast mode [ 688.038926] vx0: left promiscuous mode [ 688.039265] br0: port 2(vx0) entered disabled state [ 688.039918] swp1: left allmulticast mode [ 688.040280] swp1: left promiscuous mode [ 688.040632] br0: port 1(swp1) entered disabled state [ 688.414520] veth0: renamed from veth1 [ 688.560399] br0: port 1(swp1) entered blocking state [ 688.560705] br0: port 1(swp1) entered disabled state [ 688.560991] swp1: entered allmulticast mode [ 688.561306] swp1: entered promiscuous mode [ 688.561581] br0: port 1(swp1) entered blocking state [ 688.561847] br0: port 1(swp1) entered forwarding state [ 688.590853] br0: port 2(vx0) entered blocking state [ 688.591144] br0: port 2(vx0) entered disabled state [ 688.591511] vx0: entered allmulticast mode [ 688.591805] vx0: entered promiscuous mode [ 688.592054] br0: port 2(vx0) entered blocking state [ 688.592322] br0: port 2(vx0) entered forwarding state [ 688.780915] br0: port 1(swp1) entered blocking state [ 688.781208] br0: port 1(swp1) entered disabled state [ 688.781603] swp1: entered allmulticast mode [ 688.781908] swp1: entered promiscuous mode [ 688.782189] br0: port 1(swp1) entered blocking state [ 688.782461] br0: port 1(swp1) entered forwarding state [ 688.810964] br0: port 2(vx0) entered blocking state [ 688.811279] br0: port 2(vx0) entered disabled state [ 688.811549] vx0: entered allmulticast mode [ 688.811835] vx0: entered promiscuous mode [ 688.812082] br0: port 2(vx0) entered blocking state [ 688.812368] 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 ] [ 694.471615] 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 ] [ 695.162852] br0: port 1(swp1) entered blocking state [ 695.163166] 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 ] [ 695.618032] 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 ] [ 696.364117] br0: port 1(swp1) entered blocking state [ 696.364566] 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 ] [ 697.793875] 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 ] [ 698.500091] vx0: left allmulticast mode [ 698.500379] vx0: left promiscuous mode [ 698.500605] br0: port 2(vx0) entered disabled state [ 698.501300] swp1: left allmulticast mode [ 698.501530] swp1: left promiscuous mode [ 698.501781] br0: port 1(swp1) entered disabled state [ 698.566492] vx0: left allmulticast mode [ 698.566750] vx0: left promiscuous mode [ 698.567000] br0: port 2(vx0) entered disabled state [ 698.567463] swp1: left allmulticast mode [ 698.567675] swp1: left promiscuous mode [ 698.567885] br0: port 1(swp1) entered disabled state [ 698.963757] veth0: renamed from veth1 [ 699.119196] br0: port 1(swp1) entered blocking state [ 699.119545] br0: port 1(swp1) entered disabled state [ 699.119842] swp1: entered allmulticast mode [ 699.120143] swp1: entered promiscuous mode [ 699.120442] br0: port 1(swp1) entered blocking state [ 699.120749] br0: port 1(swp1) entered forwarding state [ 699.153156] br0: port 2(vx0) entered blocking state [ 699.153536] br0: port 2(vx0) entered disabled state [ 699.153843] vx0: entered allmulticast mode [ 699.154136] vx0: entered promiscuous mode [ 699.154402] br0: port 2(vx0) entered blocking state [ 699.154661] br0: port 2(vx0) entered forwarding state [ 699.361707] br0: port 1(swp1) entered blocking state [ 699.362126] br0: port 1(swp1) entered disabled state [ 699.362585] swp1: entered allmulticast mode [ 699.363021] swp1: entered promiscuous mode [ 699.363426] br0: port 1(swp1) entered blocking state [ 699.363808] br0: port 1(swp1) entered forwarding state [ 699.399505] br0: port 2(vx0) entered blocking state [ 699.399919] br0: port 2(vx0) entered disabled state [ 699.400306] vx0: entered allmulticast mode [ 699.400717] vx0: entered promiscuous mode [ 699.401047] br0: port 2(vx0) entered blocking state [ 699.401428] 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 ] [ 704.774722] 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 ] [ 707.670129] vx0: left allmulticast mode [ 707.670494] vx0: left promiscuous mode [ 707.670865] br0: port 2(vx0) entered disabled state [ 707.671518] swp1: left allmulticast mode [ 707.671851] swp1: left promiscuous mode [ 707.672195] br0: port 1(swp1) entered disabled state [ 707.776510] vx0: left allmulticast mode [ 707.776781] vx0: left promiscuous mode [ 707.777074] br0: port 2(vx0) entered disabled state [ 707.777578] swp1: left allmulticast mode [ 707.777814] swp1: left promiscuous mode [ 707.778082] br0: port 1(swp1) entered disabled state [ 708.204617] veth0: renamed from veth1 [ 708.373781] br0: port 1(swp1) entered blocking state [ 708.374090] br0: port 1(swp1) entered disabled state [ 708.374376] swp1: entered allmulticast mode [ 708.374684] swp1: entered promiscuous mode [ 708.374951] br0: port 1(swp1) entered blocking state [ 708.375218] br0: port 1(swp1) entered forwarding state [ 708.406546] br0: port 2(vx0) entered blocking state [ 708.406851] br0: port 2(vx0) entered disabled state [ 708.407114] vx0: entered allmulticast mode [ 708.407433] vx0: entered promiscuous mode [ 708.407679] br0: port 2(vx0) entered blocking state [ 708.407957] br0: port 2(vx0) entered forwarding state [ 708.618937] br0: port 1(swp1) entered blocking state [ 708.619522] br0: port 1(swp1) entered disabled state [ 708.620017] swp1: entered allmulticast mode [ 708.620534] swp1: entered promiscuous mode [ 708.620999] br0: port 1(swp1) entered blocking state [ 708.621459] br0: port 1(swp1) entered forwarding state [ 708.655939] br0: port 2(vx0) entered blocking state [ 708.656364] br0: port 2(vx0) entered disabled state [ 708.656751] vx0: entered allmulticast mode [ 708.657168] vx0: entered promiscuous mode [ 708.657526] br0: port 2(vx0) entered blocking state [ 708.657862] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 713.978869] br0: port 1(swp1) entered disabled state [ 715.005353] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 721.096306] vx0: left allmulticast mode [ 721.096857] vx0: left promiscuous mode [ 721.097181] br0: port 2(vx0) entered disabled state [ 721.097781] swp1: left allmulticast mode [ 721.098349] swp1: left promiscuous mode [ 721.098857] br0: port 1(swp1) entered disabled state [ 721.186495] vx0: left allmulticast mode [ 721.187213] vx0: left promiscuous mode [ 721.187812] br0: port 2(vx0) entered disabled state [ 721.188807] swp1: left allmulticast mode [ 721.189408] swp1: left promiscuous mode [ 721.189997] br0: port 1(swp1) entered disabled state [ 721.540499] veth0: renamed from veth1 [ 721.705364] br0: port 1(swp1) entered blocking state [ 721.705681] br0: port 1(swp1) entered disabled state [ 721.705973] swp1: entered allmulticast mode [ 721.706281] swp1: entered promiscuous mode [ 721.706563] br0: port 1(swp1) entered blocking state [ 721.706976] br0: port 1(swp1) entered forwarding state [ 721.739632] br0: port 2(vx0) entered blocking state [ 721.740045] br0: port 2(vx0) entered disabled state [ 721.740527] vx0: entered allmulticast mode [ 721.740945] vx0: entered promiscuous mode [ 721.741340] br0: port 2(vx0) entered blocking state [ 721.741715] br0: port 2(vx0) entered forwarding state [ 721.930023] br0: port 1(swp1) entered blocking state [ 721.930390] br0: port 1(swp1) entered disabled state [ 721.930676] swp1: entered allmulticast mode [ 721.930992] swp1: entered promiscuous mode [ 721.931290] br0: port 1(swp1) entered blocking state [ 721.931556] br0: port 1(swp1) entered forwarding state [ 721.963309] br0: port 2(vx0) entered blocking state [ 721.963597] br0: port 2(vx0) entered disabled state [ 721.963857] vx0: entered allmulticast mode [ 721.964136] vx0: entered promiscuous mode [ 721.964390] br0: port 2(vx0) entered blocking state [ 721.964645] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 727.125635] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 757.162557] vx0: left allmulticast mode [ 757.162840] vx0: left promiscuous mode [ 757.163226] br0: port 2(vx0) entered disabled state [ 757.163724] swp1: left allmulticast mode [ 757.163966] swp1: left promiscuous mode [ 757.164200] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 757.233461] vx0: left allmulticast mode [ 757.233920] vx0: left promiscuous mode [ 757.234355] br0: port 2(vx0) entered disabled state [ 757.235162] swp1: left allmulticast mode [ 757.235536] swp1: left promiscuous mode [ 757.236032] 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__->