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 3600 # selftests: net: test_bridge_backup_port.sh [ 647.736883] veth0: renamed from veth1 [ 647.911422] br0: port 1(swp1) entered blocking state [ 647.911840] br0: port 1(swp1) entered disabled state [ 647.912144] swp1: entered allmulticast mode [ 647.912485] swp1: entered promiscuous mode [ 647.912782] br0: port 1(swp1) entered blocking state [ 647.913167] br0: port 1(swp1) entered forwarding state [ 647.948573] br0: port 2(vx0) entered blocking state [ 647.948868] br0: port 2(vx0) entered disabled state [ 647.949132] vx0: entered allmulticast mode [ 647.949498] vx0: entered promiscuous mode [ 647.949732] br0: port 2(vx0) entered blocking state [ 647.949992] br0: port 2(vx0) entered forwarding state [ 648.172127] br0: port 1(swp1) entered blocking state [ 648.172499] br0: port 1(swp1) entered disabled state [ 648.172809] swp1: entered allmulticast mode [ 648.173127] swp1: entered promiscuous mode [ 648.173439] br0: port 1(swp1) entered blocking state [ 648.173739] br0: port 1(swp1) entered forwarding state [ 648.206105] br0: port 2(vx0) entered blocking state [ 648.206480] br0: port 2(vx0) entered disabled state [ 648.206775] vx0: entered allmulticast mode [ 648.207064] vx0: entered promiscuous mode [ 648.207318] br0: port 2(vx0) entered blocking state [ 648.207580] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 653.322295] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 653.751487] 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 ] [ 654.178239] br0: port 1(swp1) entered blocking state [ 654.178555] 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 ] [ 654.753340] 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 ] [ 655.195168] br0: port 1(swp1) entered blocking state [ 655.195556] 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 ] [ 656.025718] 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 ] [ 656.453390] vx0: left allmulticast mode [ 656.453681] vx0: left promiscuous mode [ 656.453953] br0: port 2(vx0) entered disabled state [ 656.454458] swp1: left allmulticast mode [ 656.454725] swp1: left promiscuous mode [ 656.455011] br0: port 1(swp1) entered disabled state [ 656.536475] vx0: left allmulticast mode [ 656.536729] vx0: left promiscuous mode [ 656.536984] br0: port 2(vx0) entered disabled state [ 656.537446] swp1: left allmulticast mode [ 656.537693] swp1: left promiscuous mode [ 656.537954] br0: port 1(swp1) entered disabled state [ 656.987588] veth0: renamed from veth1 [ 657.164149] br0: port 1(swp1) entered blocking state [ 657.164613] br0: port 1(swp1) entered disabled state [ 657.165038] swp1: entered allmulticast mode [ 657.165657] swp1: entered promiscuous mode [ 657.166086] br0: port 1(swp1) entered blocking state [ 657.166499] br0: port 1(swp1) entered forwarding state [ 657.204446] br0: port 2(vx0) entered blocking state [ 657.204869] br0: port 2(vx0) entered disabled state [ 657.205272] vx0: entered allmulticast mode [ 657.205710] vx0: entered promiscuous mode [ 657.206053] br0: port 2(vx0) entered blocking state [ 657.206439] br0: port 2(vx0) entered forwarding state [ 657.431974] br0: port 1(swp1) entered blocking state [ 657.432378] br0: port 1(swp1) entered disabled state [ 657.432706] swp1: entered allmulticast mode [ 657.433075] swp1: entered promiscuous mode [ 657.433459] br0: port 1(swp1) entered blocking state [ 657.433753] br0: port 1(swp1) entered forwarding state [ 657.464373] br0: port 2(vx0) entered blocking state [ 657.464801] br0: port 2(vx0) entered disabled state [ 657.465193] vx0: entered allmulticast mode [ 657.465718] vx0: entered promiscuous mode [ 657.466071] br0: port 2(vx0) entered blocking state [ 657.466480] 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 ] [ 663.134680] 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 ] [ 663.866779] br0: port 1(swp1) entered blocking state [ 663.867078] 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 ] [ 664.338668] 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 ] [ 665.076425] br0: port 1(swp1) entered blocking state [ 665.076857] 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 ] [ 666.484576] 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 ] [ 667.195819] vx0: left allmulticast mode [ 667.196071] vx0: left promiscuous mode [ 667.196311] br0: port 2(vx0) entered disabled state [ 667.196736] swp1: left allmulticast mode [ 667.197201] swp1: left promiscuous mode [ 667.197430] br0: port 1(swp1) entered disabled state [ 667.294623] vx0: left allmulticast mode [ 667.294977] vx0: left promiscuous mode [ 667.295205] br0: port 2(vx0) entered disabled state [ 667.295660] swp1: left allmulticast mode [ 667.295973] swp1: left promiscuous mode [ 667.296460] br0: port 1(swp1) entered disabled state [ 667.696494] veth0: renamed from veth1 [ 667.853040] br0: port 1(swp1) entered blocking state [ 667.853382] br0: port 1(swp1) entered disabled state [ 667.853664] swp1: entered allmulticast mode [ 667.853964] swp1: entered promiscuous mode [ 667.854243] br0: port 1(swp1) entered blocking state [ 667.854525] br0: port 1(swp1) entered forwarding state [ 667.886090] br0: port 2(vx0) entered blocking state [ 667.886525] br0: port 2(vx0) entered disabled state [ 667.886909] vx0: entered allmulticast mode [ 667.887346] vx0: entered promiscuous mode [ 667.887685] br0: port 2(vx0) entered blocking state [ 667.888064] br0: port 2(vx0) entered forwarding state [ 668.087081] br0: port 1(swp1) entered blocking state [ 668.087440] br0: port 1(swp1) entered disabled state [ 668.087747] swp1: entered allmulticast mode [ 668.088074] swp1: entered promiscuous mode [ 668.088386] br0: port 1(swp1) entered blocking state [ 668.088678] br0: port 1(swp1) entered forwarding state [ 668.119769] br0: port 2(vx0) entered blocking state [ 668.120086] br0: port 2(vx0) entered disabled state [ 668.120400] vx0: entered allmulticast mode [ 668.120720] vx0: entered promiscuous mode [ 668.120963] br0: port 2(vx0) entered blocking state [ 668.121242] 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 ] [ 673.505837] 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 ] [ 676.481553] vx0: left allmulticast mode [ 676.482005] vx0: left promiscuous mode [ 676.482371] br0: port 2(vx0) entered disabled state [ 676.483169] swp1: left allmulticast mode [ 676.483509] swp1: left promiscuous mode [ 676.483998] br0: port 1(swp1) entered disabled state [ 676.567510] vx0: left allmulticast mode [ 676.567849] vx0: left promiscuous mode [ 676.568202] br0: port 2(vx0) entered disabled state [ 676.568642] swp1: left allmulticast mode [ 676.568883] swp1: left promiscuous mode [ 676.569103] br0: port 1(swp1) entered disabled state [ 676.958474] veth0: renamed from veth1 [ 677.094637] br0: port 1(swp1) entered blocking state [ 677.094943] br0: port 1(swp1) entered disabled state [ 677.095218] swp1: entered allmulticast mode [ 677.095532] swp1: entered promiscuous mode [ 677.095804] br0: port 1(swp1) entered blocking state [ 677.096068] br0: port 1(swp1) entered forwarding state [ 677.122369] br0: port 2(vx0) entered blocking state [ 677.122683] br0: port 2(vx0) entered disabled state [ 677.122963] vx0: entered allmulticast mode [ 677.123268] vx0: entered promiscuous mode [ 677.123500] br0: port 2(vx0) entered blocking state [ 677.123769] br0: port 2(vx0) entered forwarding state [ 677.315117] br0: port 1(swp1) entered blocking state [ 677.315443] br0: port 1(swp1) entered disabled state [ 677.315735] swp1: entered allmulticast mode [ 677.316044] swp1: entered promiscuous mode [ 677.316332] br0: port 1(swp1) entered blocking state [ 677.316600] br0: port 1(swp1) entered forwarding state [ 677.348343] br0: port 2(vx0) entered blocking state [ 677.348649] br0: port 2(vx0) entered disabled state [ 677.348941] vx0: entered allmulticast mode [ 677.349240] vx0: entered promiscuous mode [ 677.349484] br0: port 2(vx0) entered blocking state [ 677.349751] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 682.719126] br0: port 1(swp1) entered disabled state [ 683.776370] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 689.857442] vx0: left allmulticast mode [ 689.857683] vx0: left promiscuous mode [ 689.857917] br0: port 2(vx0) entered disabled state [ 689.858383] swp1: left allmulticast mode [ 689.858599] swp1: left promiscuous mode [ 689.858819] br0: port 1(swp1) entered disabled state [ 689.938534] vx0: left allmulticast mode [ 689.938980] vx0: left promiscuous mode [ 689.939445] br0: port 2(vx0) entered disabled state [ 689.940024] swp1: left allmulticast mode [ 689.940470] swp1: left promiscuous mode [ 689.940953] br0: port 1(swp1) entered disabled state [ 690.392538] veth0: renamed from veth1 [ 690.568070] br0: port 1(swp1) entered blocking state [ 690.568562] br0: port 1(swp1) entered disabled state [ 690.568970] swp1: entered allmulticast mode [ 690.569427] swp1: entered promiscuous mode [ 690.569831] br0: port 1(swp1) entered blocking state [ 690.570226] br0: port 1(swp1) entered forwarding state [ 690.605167] br0: port 2(vx0) entered blocking state [ 690.605659] br0: port 2(vx0) entered disabled state [ 690.606045] vx0: entered allmulticast mode [ 690.606514] vx0: entered promiscuous mode [ 690.606854] br0: port 2(vx0) entered blocking state [ 690.607228] br0: port 2(vx0) entered forwarding state [ 690.831946] br0: port 1(swp1) entered blocking state [ 690.832249] br0: port 1(swp1) entered disabled state [ 690.832549] swp1: entered allmulticast mode [ 690.832856] swp1: entered promiscuous mode [ 690.833136] br0: port 1(swp1) entered blocking state [ 690.833413] br0: port 1(swp1) entered forwarding state [ 690.866122] br0: port 2(vx0) entered blocking state [ 690.866458] br0: port 2(vx0) entered disabled state [ 690.866746] vx0: entered allmulticast mode [ 690.867059] vx0: entered promiscuous mode [ 690.867340] br0: port 2(vx0) entered blocking state [ 690.867620] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 696.049644] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 726.087565] vx0: left allmulticast mode [ 726.087850] vx0: left promiscuous mode [ 726.088322] br0: port 2(vx0) entered disabled state [ 726.089288] swp1: left allmulticast mode [ 726.089536] swp1: left promiscuous mode [ 726.089814] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 726.166520] vx0: left allmulticast mode [ 726.167004] vx0: left promiscuous mode [ 726.167443] br0: port 2(vx0) entered disabled state [ 726.168101] swp1: left allmulticast mode [ 726.168528] swp1: left promiscuous mode [ 726.168986] 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__->