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 [ 638.131203] veth0: renamed from veth1 [ 638.310369] br0: port 1(swp1) entered blocking state [ 638.310674] br0: port 1(swp1) entered disabled state [ 638.310970] swp1: entered allmulticast mode [ 638.311286] swp1: entered promiscuous mode [ 638.311602] br0: port 1(swp1) entered blocking state [ 638.311871] br0: port 1(swp1) entered forwarding state [ 638.344217] br0: port 2(vx0) entered blocking state [ 638.344513] br0: port 2(vx0) entered disabled state [ 638.344776] vx0: entered allmulticast mode [ 638.345081] vx0: entered promiscuous mode [ 638.345415] br0: port 2(vx0) entered blocking state [ 638.345713] br0: port 2(vx0) entered forwarding state [ 638.560623] br0: port 1(swp1) entered blocking state [ 638.560938] br0: port 1(swp1) entered disabled state [ 638.561251] swp1: entered allmulticast mode [ 638.561610] swp1: entered promiscuous mode [ 638.561891] br0: port 1(swp1) entered blocking state [ 638.562157] br0: port 1(swp1) entered forwarding state [ 638.596085] br0: port 2(vx0) entered blocking state [ 638.596440] br0: port 2(vx0) entered disabled state [ 638.596829] vx0: entered allmulticast mode [ 638.597155] vx0: entered promiscuous mode [ 638.597410] br0: port 2(vx0) entered blocking state [ 638.597687] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 643.712555] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 644.160515] 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 ] [ 644.594824] br0: port 1(swp1) entered blocking state [ 644.595147] 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 ] [ 645.168348] 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 ] [ 645.573690] br0: port 1(swp1) entered blocking state [ 645.573991] 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 ] [ 646.366702] 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.800718] vx0: left allmulticast mode [ 646.801037] vx0: left promiscuous mode [ 646.801375] br0: port 2(vx0) entered disabled state [ 646.802020] swp1: left allmulticast mode [ 646.802305] swp1: left promiscuous mode [ 646.802530] br0: port 1(swp1) entered disabled state [ 646.897418] vx0: left allmulticast mode [ 646.897961] vx0: left promiscuous mode [ 646.898197] br0: port 2(vx0) entered disabled state [ 646.898805] swp1: left allmulticast mode [ 646.899294] swp1: left promiscuous mode [ 646.899745] br0: port 1(swp1) entered disabled state [ 647.246772] ip (30433) used greatest stack depth: 11688 bytes left [ 647.309407] veth0: renamed from veth1 [ 647.478601] br0: port 1(swp1) entered blocking state [ 647.479005] br0: port 1(swp1) entered disabled state [ 647.479399] swp1: entered allmulticast mode [ 647.479805] swp1: entered promiscuous mode [ 647.480173] br0: port 1(swp1) entered blocking state [ 647.480468] br0: port 1(swp1) entered forwarding state [ 647.514238] br0: port 2(vx0) entered blocking state [ 647.514552] br0: port 2(vx0) entered disabled state [ 647.514926] vx0: entered allmulticast mode [ 647.515301] vx0: entered promiscuous mode [ 647.515683] br0: port 2(vx0) entered blocking state [ 647.516038] br0: port 2(vx0) entered forwarding state [ 647.719740] br0: port 1(swp1) entered blocking state [ 647.720055] br0: port 1(swp1) entered disabled state [ 647.720373] swp1: entered allmulticast mode [ 647.720689] swp1: entered promiscuous mode [ 647.720979] br0: port 1(swp1) entered blocking state [ 647.721274] br0: port 1(swp1) entered forwarding state [ 647.755935] br0: port 2(vx0) entered blocking state [ 647.756382] br0: port 2(vx0) entered disabled state [ 647.756787] vx0: entered allmulticast mode [ 647.757242] vx0: entered promiscuous mode [ 647.757608] br0: port 2(vx0) entered blocking state [ 647.758000] 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 ] [ 653.451189] 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 ] [ 654.165010] br0: port 1(swp1) entered blocking state [ 654.165340] 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 ] [ 654.610720] 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 ] [ 655.367366] br0: port 1(swp1) entered blocking state [ 655.367756] 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 ] [ 656.778535] 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 ] [ 657.483093] vx0: left allmulticast mode [ 657.483574] vx0: left promiscuous mode [ 657.483836] br0: port 2(vx0) entered disabled state [ 657.484313] swp1: left allmulticast mode [ 657.484538] swp1: left promiscuous mode [ 657.484844] br0: port 1(swp1) entered disabled state [ 657.557492] vx0: left allmulticast mode [ 657.557936] vx0: left promiscuous mode [ 657.558456] br0: port 2(vx0) entered disabled state [ 657.559232] swp1: left allmulticast mode [ 657.559860] swp1: left promiscuous mode [ 657.560452] br0: port 1(swp1) entered disabled state [ 658.026515] veth0: renamed from veth1 [ 658.176234] br0: port 1(swp1) entered blocking state [ 658.176666] br0: port 1(swp1) entered disabled state [ 658.177057] swp1: entered allmulticast mode [ 658.177544] swp1: entered promiscuous mode [ 658.177929] br0: port 1(swp1) entered blocking state [ 658.178316] br0: port 1(swp1) entered forwarding state [ 658.210716] br0: port 2(vx0) entered blocking state [ 658.211122] br0: port 2(vx0) entered disabled state [ 658.211508] vx0: entered allmulticast mode [ 658.211916] vx0: entered promiscuous mode [ 658.212309] br0: port 2(vx0) entered blocking state [ 658.212678] br0: port 2(vx0) entered forwarding state [ 658.417824] br0: port 1(swp1) entered blocking state [ 658.418161] br0: port 1(swp1) entered disabled state [ 658.418525] swp1: entered allmulticast mode [ 658.418828] swp1: entered promiscuous mode [ 658.419116] br0: port 1(swp1) entered blocking state [ 658.419395] br0: port 1(swp1) entered forwarding state [ 658.452258] br0: port 2(vx0) entered blocking state [ 658.452673] br0: port 2(vx0) entered disabled state [ 658.453054] vx0: entered allmulticast mode [ 658.453484] vx0: entered promiscuous mode [ 658.453824] br0: port 2(vx0) entered blocking state [ 658.454203] 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 ] [ 663.832166] 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 ] [ 666.947565] vx0: left allmulticast mode [ 666.947826] vx0: left promiscuous mode [ 666.948048] br0: port 2(vx0) entered disabled state [ 666.948872] swp1: left allmulticast mode [ 666.949094] swp1: left promiscuous mode [ 666.949320] br0: port 1(swp1) entered disabled state [ 667.034477] vx0: left allmulticast mode [ 667.034932] vx0: left promiscuous mode [ 667.035326] br0: port 2(vx0) entered disabled state [ 667.035947] swp1: left allmulticast mode [ 667.036235] swp1: left promiscuous mode [ 667.036672] br0: port 1(swp1) entered disabled state [ 667.446513] veth0: renamed from veth1 [ 667.622939] br0: port 1(swp1) entered blocking state [ 667.623259] br0: port 1(swp1) entered disabled state [ 667.623560] swp1: entered allmulticast mode [ 667.623878] swp1: entered promiscuous mode [ 667.624171] br0: port 1(swp1) entered blocking state [ 667.624450] br0: port 1(swp1) entered forwarding state [ 667.660815] br0: port 2(vx0) entered blocking state [ 667.661266] br0: port 2(vx0) entered disabled state [ 667.661661] vx0: entered allmulticast mode [ 667.662098] vx0: entered promiscuous mode [ 667.662516] br0: port 2(vx0) entered blocking state [ 667.662901] br0: port 2(vx0) entered forwarding state [ 667.882738] br0: port 1(swp1) entered blocking state [ 667.883166] br0: port 1(swp1) entered disabled state [ 667.883591] swp1: entered allmulticast mode [ 667.884041] swp1: entered promiscuous mode [ 667.884460] br0: port 1(swp1) entered blocking state [ 667.884850] br0: port 1(swp1) entered forwarding state [ 667.917917] br0: port 2(vx0) entered blocking state [ 667.918242] br0: port 2(vx0) entered disabled state [ 667.918533] vx0: entered allmulticast mode [ 667.918846] vx0: entered promiscuous mode [ 667.919098] br0: port 2(vx0) entered blocking state [ 667.919388] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 673.256715] br0: port 1(swp1) entered disabled state [ 674.303307] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 680.404853] vx0: left allmulticast mode [ 680.405119] vx0: left promiscuous mode [ 680.405361] br0: port 2(vx0) entered disabled state [ 680.405774] swp1: left allmulticast mode [ 680.406152] swp1: left promiscuous mode [ 680.406397] br0: port 1(swp1) entered disabled state [ 680.475486] vx0: left allmulticast mode [ 680.475824] vx0: left promiscuous mode [ 680.476330] br0: port 2(vx0) entered disabled state [ 680.477088] swp1: left allmulticast mode [ 680.477523] swp1: left promiscuous mode [ 680.478012] br0: port 1(swp1) entered disabled state [ 680.852474] veth0: renamed from veth1 [ 680.992482] br0: port 1(swp1) entered blocking state [ 680.992904] br0: port 1(swp1) entered disabled state [ 680.993366] swp1: entered allmulticast mode [ 680.993815] swp1: entered promiscuous mode [ 680.994227] br0: port 1(swp1) entered blocking state [ 680.994616] br0: port 1(swp1) entered forwarding state [ 681.027046] br0: port 2(vx0) entered blocking state [ 681.027485] br0: port 2(vx0) entered disabled state [ 681.027881] vx0: entered allmulticast mode [ 681.028334] vx0: entered promiscuous mode [ 681.028686] br0: port 2(vx0) entered blocking state [ 681.029074] br0: port 2(vx0) entered forwarding state [ 681.224201] br0: port 1(swp1) entered blocking state [ 681.224689] br0: port 1(swp1) entered disabled state [ 681.225112] swp1: entered allmulticast mode [ 681.225559] swp1: entered promiscuous mode [ 681.225962] br0: port 1(swp1) entered blocking state [ 681.226372] br0: port 1(swp1) entered forwarding state [ 681.255080] br0: port 2(vx0) entered blocking state [ 681.255448] br0: port 2(vx0) entered disabled state [ 681.255720] vx0: entered allmulticast mode [ 681.256007] vx0: entered promiscuous mode [ 681.256252] br0: port 2(vx0) entered blocking state [ 681.256620] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 686.421982] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 716.460630] vx0: left allmulticast mode [ 716.461019] vx0: left promiscuous mode [ 716.461407] br0: port 2(vx0) entered disabled state [ 716.462250] swp1: left allmulticast mode [ 716.462577] swp1: left promiscuous mode [ 716.462899] br0: port 1(swp1) entered disabled state [ 716.534559] vx0: left allmulticast mode [ 716.534942] vx0: left promiscuous mode [ 716.535347] br0: port 2(vx0) entered disabled state [ 716.536005] swp1: left allmulticast mode [ 716.536402] swp1: left promiscuous mode [ 716.536755] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 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__->