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 [ 639.643365] veth0: renamed from veth1 [ 639.801743] br0: port 1(swp1) entered blocking state [ 639.802095] br0: port 1(swp1) entered disabled state [ 639.802407] swp1: entered allmulticast mode [ 639.802728] swp1: entered promiscuous mode [ 639.803029] br0: port 1(swp1) entered blocking state [ 639.803301] br0: port 1(swp1) entered forwarding state [ 639.838191] br0: port 2(vx0) entered blocking state [ 639.838587] br0: port 2(vx0) entered disabled state [ 639.838958] vx0: entered allmulticast mode [ 639.839404] vx0: entered promiscuous mode [ 639.839745] br0: port 2(vx0) entered blocking state [ 639.840123] br0: port 2(vx0) entered forwarding state [ 640.049483] br0: port 1(swp1) entered blocking state [ 640.049776] br0: port 1(swp1) entered disabled state [ 640.050105] swp1: entered allmulticast mode [ 640.050427] swp1: entered promiscuous mode [ 640.050717] br0: port 1(swp1) entered blocking state [ 640.050976] br0: port 1(swp1) entered forwarding state [ 640.084894] br0: port 2(vx0) entered blocking state [ 640.085190] br0: port 2(vx0) entered disabled state [ 640.085450] vx0: entered allmulticast mode [ 640.085727] vx0: entered promiscuous mode [ 640.085963] br0: port 2(vx0) entered blocking state [ 640.086226] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 645.203518] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 645.617421] 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 ] [ 646.024243] br0: port 1(swp1) entered blocking state [ 646.024543] 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 ] [ 646.624133] 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 ] [ 647.008318] br0: port 1(swp1) entered blocking state [ 647.008672] 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 ] [ 647.771305] 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 ] [ 648.173615] vx0: left allmulticast mode [ 648.173965] vx0: left promiscuous mode [ 648.174328] br0: port 2(vx0) entered disabled state [ 648.174941] swp1: left allmulticast mode [ 648.175274] swp1: left promiscuous mode [ 648.175583] br0: port 1(swp1) entered disabled state [ 648.262187] vx0: left allmulticast mode [ 648.262424] vx0: left promiscuous mode [ 648.262722] br0: port 2(vx0) entered disabled state [ 648.263239] swp1: left allmulticast mode [ 648.263623] swp1: left promiscuous mode [ 648.263979] br0: port 1(swp1) entered disabled state [ 648.601273] veth0: renamed from veth1 [ 648.738075] br0: port 1(swp1) entered blocking state [ 648.738374] br0: port 1(swp1) entered disabled state [ 648.738647] swp1: entered allmulticast mode [ 648.738933] swp1: entered promiscuous mode [ 648.739230] br0: port 1(swp1) entered blocking state [ 648.739499] br0: port 1(swp1) entered forwarding state [ 648.765502] br0: port 2(vx0) entered blocking state [ 648.765914] br0: port 2(vx0) entered disabled state [ 648.766315] vx0: entered allmulticast mode [ 648.766734] vx0: entered promiscuous mode [ 648.767132] br0: port 2(vx0) entered blocking state [ 648.767510] br0: port 2(vx0) entered forwarding state [ 648.945800] br0: port 1(swp1) entered blocking state [ 648.946134] br0: port 1(swp1) entered disabled state [ 648.946404] swp1: entered allmulticast mode [ 648.946685] swp1: entered promiscuous mode [ 648.946948] br0: port 1(swp1) entered blocking state [ 648.947213] br0: port 1(swp1) entered forwarding state [ 648.978128] br0: port 2(vx0) entered blocking state [ 648.978413] br0: port 2(vx0) entered disabled state [ 648.978668] vx0: entered allmulticast mode [ 648.978938] vx0: entered promiscuous mode [ 648.979230] br0: port 2(vx0) entered blocking state [ 648.979567] 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 ] [ 654.633489] 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 ] [ 655.318607] br0: port 1(swp1) entered blocking state [ 655.318999] 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 ] [ 655.749445] 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 ] [ 656.458372] br0: port 1(swp1) entered blocking state [ 656.458728] 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 ] [ 657.854391] 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 ] [ 658.569760] vx0: left allmulticast mode [ 658.570405] vx0: left promiscuous mode [ 658.570731] br0: port 2(vx0) entered disabled state [ 658.571313] swp1: left allmulticast mode [ 658.571778] swp1: left promiscuous mode [ 658.572293] br0: port 1(swp1) entered disabled state [ 658.661267] vx0: left allmulticast mode [ 658.661547] vx0: left promiscuous mode [ 658.661792] br0: port 2(vx0) entered disabled state [ 658.662274] swp1: left allmulticast mode [ 658.662533] swp1: left promiscuous mode [ 658.662781] br0: port 1(swp1) entered disabled state [ 659.080291] veth0: renamed from veth1 [ 659.239410] br0: port 1(swp1) entered blocking state [ 659.239737] br0: port 1(swp1) entered disabled state [ 659.240053] swp1: entered allmulticast mode [ 659.240365] swp1: entered promiscuous mode [ 659.240646] br0: port 1(swp1) entered blocking state [ 659.240928] br0: port 1(swp1) entered forwarding state [ 659.277594] br0: port 2(vx0) entered blocking state [ 659.277901] br0: port 2(vx0) entered disabled state [ 659.278179] vx0: entered allmulticast mode [ 659.278473] vx0: entered promiscuous mode [ 659.278719] br0: port 2(vx0) entered blocking state [ 659.278982] br0: port 2(vx0) entered forwarding state [ 659.508485] br0: port 1(swp1) entered blocking state [ 659.508912] br0: port 1(swp1) entered disabled state [ 659.509336] swp1: entered allmulticast mode [ 659.509779] swp1: entered promiscuous mode [ 659.510191] br0: port 1(swp1) entered blocking state [ 659.510563] br0: port 1(swp1) entered forwarding state [ 659.547891] br0: port 2(vx0) entered blocking state [ 659.548326] br0: port 2(vx0) entered disabled state [ 659.548714] vx0: entered allmulticast mode [ 659.549162] vx0: entered promiscuous mode [ 659.549489] br0: port 2(vx0) entered blocking state [ 659.549855] 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 ] [ 664.948675] 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 ] [ 668.005963] vx0: left allmulticast mode [ 668.006239] vx0: left promiscuous mode [ 668.006489] br0: port 2(vx0) entered disabled state [ 668.007212] swp1: left allmulticast mode [ 668.007465] swp1: left promiscuous mode [ 668.007690] br0: port 1(swp1) entered disabled state [ 668.091206] vx0: left allmulticast mode [ 668.091464] vx0: left promiscuous mode [ 668.091756] br0: port 2(vx0) entered disabled state [ 668.092256] swp1: left allmulticast mode [ 668.092486] swp1: left promiscuous mode [ 668.092733] br0: port 1(swp1) entered disabled state [ 668.526269] veth0: renamed from veth1 [ 668.693247] br0: port 1(swp1) entered blocking state [ 668.693692] br0: port 1(swp1) entered disabled state [ 668.694229] swp1: entered allmulticast mode [ 668.694690] swp1: entered promiscuous mode [ 668.695125] br0: port 1(swp1) entered blocking state [ 668.695522] br0: port 1(swp1) entered forwarding state [ 668.730600] br0: port 2(vx0) entered blocking state [ 668.730959] br0: port 2(vx0) entered disabled state [ 668.731306] vx0: entered allmulticast mode [ 668.731686] vx0: entered promiscuous mode [ 668.732078] br0: port 2(vx0) entered blocking state [ 668.732414] br0: port 2(vx0) entered forwarding state [ 668.953676] br0: port 1(swp1) entered blocking state [ 668.954135] br0: port 1(swp1) entered disabled state [ 668.954558] swp1: entered allmulticast mode [ 668.955032] swp1: entered promiscuous mode [ 668.955458] br0: port 1(swp1) entered blocking state [ 668.955855] br0: port 1(swp1) entered forwarding state [ 668.989731] br0: port 2(vx0) entered blocking state [ 668.990095] br0: port 2(vx0) entered disabled state [ 668.990391] vx0: entered allmulticast mode [ 668.990701] vx0: entered promiscuous mode [ 668.990931] br0: port 2(vx0) entered blocking state [ 668.991195] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 674.348737] br0: port 1(swp1) entered disabled state [ 675.393190] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 681.490076] vx0: left allmulticast mode [ 681.490323] vx0: left promiscuous mode [ 681.490609] br0: port 2(vx0) entered disabled state [ 681.491092] swp1: left allmulticast mode [ 681.491334] swp1: left promiscuous mode [ 681.491623] br0: port 1(swp1) entered disabled state [ 681.579317] vx0: left allmulticast mode [ 681.579643] vx0: left promiscuous mode [ 681.579966] br0: port 2(vx0) entered disabled state [ 681.580593] swp1: left allmulticast mode [ 681.580921] swp1: left promiscuous mode [ 681.581299] br0: port 1(swp1) entered disabled state [ 682.018371] veth0: renamed from veth1 [ 682.175910] br0: port 1(swp1) entered blocking state [ 682.176222] br0: port 1(swp1) entered disabled state [ 682.176522] swp1: entered allmulticast mode [ 682.176820] swp1: entered promiscuous mode [ 682.177096] br0: port 1(swp1) entered blocking state [ 682.177356] br0: port 1(swp1) entered forwarding state [ 682.208455] br0: port 2(vx0) entered blocking state [ 682.208776] br0: port 2(vx0) entered disabled state [ 682.209044] vx0: entered allmulticast mode [ 682.209422] vx0: entered promiscuous mode [ 682.209668] br0: port 2(vx0) entered blocking state [ 682.209923] br0: port 2(vx0) entered forwarding state [ 682.420879] br0: port 1(swp1) entered blocking state [ 682.421244] br0: port 1(swp1) entered disabled state [ 682.421569] swp1: entered allmulticast mode [ 682.421888] swp1: entered promiscuous mode [ 682.422253] br0: port 1(swp1) entered blocking state [ 682.422542] br0: port 1(swp1) entered forwarding state [ 682.461372] br0: port 2(vx0) entered blocking state [ 682.461775] br0: port 2(vx0) entered disabled state [ 682.462245] vx0: entered allmulticast mode [ 682.462683] vx0: entered promiscuous mode [ 682.463109] br0: port 2(vx0) entered blocking state [ 682.463486] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 687.635777] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 717.680372] vx0: left allmulticast mode [ 717.680711] vx0: left promiscuous mode [ 717.681052] br0: port 2(vx0) entered disabled state [ 717.681782] swp1: left allmulticast mode [ 717.682216] swp1: left promiscuous mode [ 717.682532] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 717.773366] vx0: left allmulticast mode [ 717.773629] vx0: left promiscuous mode [ 717.773863] br0: port 2(vx0) entered disabled state [ 717.774362] swp1: left allmulticast mode [ 717.774778] swp1: left promiscuous mode [ 717.775190] 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__->