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-3/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' TAP version 13 1..1 # overriding timeout to 12000.0 # selftests: net: test_bridge_backup_port.sh [ 3553.929953][T26197] veth0: renamed from veth1 [ 3555.544384][T26214] br0: port 1(swp1) entered blocking state [ 3555.544732][T26214] br0: port 1(swp1) entered disabled state [ 3555.545095][T26214] swp1: entered allmulticast mode [ 3555.546417][T26214] swp1: entered promiscuous mode [ 3555.547790][T26214] br0: port 1(swp1) entered blocking state [ 3555.548121][T26214] br0: port 1(swp1) entered forwarding state [ 3555.878288][T26216] br0: port 2(vx0) entered blocking state [ 3555.878629][T26216] br0: port 2(vx0) entered disabled state [ 3555.878968][T26216] vx0: entered allmulticast mode [ 3555.880290][T26216] vx0: entered promiscuous mode [ 3555.880995][T26216] br0: port 2(vx0) entered blocking state [ 3555.881299][T26216] br0: port 2(vx0) entered forwarding state [ 3557.929935][T26229] br0: port 1(swp1) entered blocking state [ 3557.930279][T26229] br0: port 1(swp1) entered disabled state [ 3557.930628][T26229] swp1: entered allmulticast mode [ 3557.931997][T26229] swp1: entered promiscuous mode [ 3557.933672][T26229] br0: port 1(swp1) entered blocking state [ 3557.934013][T26229] br0: port 1(swp1) entered forwarding state [ 3558.281043][T26231] br0: port 2(vx0) entered blocking state [ 3558.281379][T26231] br0: port 2(vx0) entered disabled state [ 3558.281712][T26231] vx0: entered allmulticast mode [ 3558.283033][T26231] vx0: entered promiscuous mode [ 3558.283605][T26231] br0: port 2(vx0) entered blocking state [ 3558.283924][T26231] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 3565.997940][T16328] 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 ] [ 3567.578530][T17002] br0: port 1(swp1) entered blocking state [ 3567.578903][T17002] 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 ] [ 3569.463183][T17002] 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 ] [ 3571.009418][T16328] br0: port 1(swp1) entered blocking state [ 3571.009768][T16328] 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 ] [ 3574.033900][T16328] 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 ] [ 3575.658299][ T11] vx0: left allmulticast mode [ 3575.658584][ T11] vx0: left promiscuous mode [ 3575.659057][ T11] br0: port 2(vx0) entered disabled state [ 3575.669761][ T11] swp1: left allmulticast mode [ 3575.670066][ T11] swp1: left promiscuous mode [ 3575.670457][ T11] br0: port 1(swp1) entered disabled state [ 3576.096095][ T11] vx0: left allmulticast mode [ 3576.096386][ T11] vx0: left promiscuous mode [ 3576.096783][ T11] br0: port 2(vx0) entered disabled state [ 3576.107955][ T11] swp1: left allmulticast mode [ 3576.108272][ T11] swp1: left promiscuous mode [ 3576.108661][ T11] br0: port 1(swp1) entered disabled state [ 3580.536633][T26386] veth0: renamed from veth1 [ 3582.120440][T26403] br0: port 1(swp1) entered blocking state [ 3582.120789][T26403] br0: port 1(swp1) entered disabled state [ 3582.121982][T26403] swp1: entered allmulticast mode [ 3582.123356][T26403] swp1: entered promiscuous mode [ 3582.124719][T26403] br0: port 1(swp1) entered blocking state [ 3582.125048][T26403] br0: port 1(swp1) entered forwarding state [ 3582.440366][T26405] br0: port 2(vx0) entered blocking state [ 3582.440704][T26405] br0: port 2(vx0) entered disabled state [ 3582.441047][T26405] vx0: entered allmulticast mode [ 3582.442363][T26405] vx0: entered promiscuous mode [ 3582.443341][T26405] br0: port 2(vx0) entered blocking state [ 3582.443648][T26405] br0: port 2(vx0) entered forwarding state [ 3584.525643][T26418] br0: port 1(swp1) entered blocking state [ 3584.526006][T26418] br0: port 1(swp1) entered disabled state [ 3584.526353][T26418] swp1: entered allmulticast mode [ 3584.527688][T26418] swp1: entered promiscuous mode [ 3584.529692][T26418] br0: port 1(swp1) entered blocking state [ 3584.530021][T26418] br0: port 1(swp1) entered forwarding state [ 3584.858454][T26420] br0: port 2(vx0) entered blocking state [ 3584.858793][T26420] br0: port 2(vx0) entered disabled state [ 3584.859137][T26420] vx0: entered allmulticast mode [ 3584.860469][T26420] vx0: entered promiscuous mode [ 3584.861165][T26420] br0: port 2(vx0) entered blocking state [ 3584.861473][T26420] 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 ] [ 3594.323396][T16328] 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 ] [ 3596.737641][T23554] br0: port 1(swp1) entered blocking state [ 3596.738014][T23554] 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 ] [ 3598.635385][T23554] 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 ] [ 3600.876909][T17002] br0: port 1(swp1) entered blocking state [ 3600.877260][T17002] 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 ] [ 3605.272969][T16328] 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 ] [ 3607.634010][ T11] vx0: left allmulticast mode [ 3607.634301][ T11] vx0: left promiscuous mode [ 3607.634743][ T11] br0: port 2(vx0) entered disabled state [ 3607.646665][ T11] swp1: left allmulticast mode [ 3607.646959][ T11] swp1: left promiscuous mode [ 3607.647363][ T11] br0: port 1(swp1) entered disabled state [ 3608.141096][ T11] vx0: left allmulticast mode [ 3608.141386][ T11] vx0: left promiscuous mode [ 3608.141779][ T11] br0: port 2(vx0) entered disabled state [ 3608.148754][ T11] swp1: left allmulticast mode [ 3608.149042][ T11] swp1: left promiscuous mode [ 3608.149418][ T11] br0: port 1(swp1) entered disabled state [ 3612.661385][T26636] veth0: renamed from veth1 [ 3614.271615][T26653] br0: port 1(swp1) entered blocking state [ 3614.272510][T26653] br0: port 1(swp1) entered disabled state [ 3614.272880][T26653] swp1: entered allmulticast mode [ 3614.274261][T26653] swp1: entered promiscuous mode [ 3614.275658][T26653] br0: port 1(swp1) entered blocking state [ 3614.275996][T26653] br0: port 1(swp1) entered forwarding state [ 3614.586490][T26655] br0: port 2(vx0) entered blocking state [ 3614.586824][T26655] br0: port 2(vx0) entered disabled state [ 3614.587174][T26655] vx0: entered allmulticast mode [ 3614.588512][T26655] vx0: entered promiscuous mode [ 3614.594482][T26655] br0: port 2(vx0) entered blocking state [ 3614.594800][T26655] br0: port 2(vx0) entered forwarding state [ 3616.665914][T26668] br0: port 1(swp1) entered blocking state [ 3616.666269][T26668] br0: port 1(swp1) entered disabled state [ 3616.666620][T26668] swp1: entered allmulticast mode [ 3616.668645][T26668] swp1: entered promiscuous mode [ 3616.670014][T26668] br0: port 1(swp1) entered blocking state [ 3616.670331][T26668] br0: port 1(swp1) entered forwarding state [ 3616.991737][T26670] br0: port 2(vx0) entered blocking state [ 3616.992090][T26670] br0: port 2(vx0) entered disabled state [ 3616.992422][T26670] vx0: entered allmulticast mode [ 3616.993734][T26670] vx0: entered promiscuous mode [ 3616.994322][T26670] br0: port 2(vx0) entered blocking state [ 3616.994624][T26670] 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 ] [ 3625.448287][T16328] 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 ] [ 3636.040289][ T11] vx0: left allmulticast mode [ 3636.040580][ T11] vx0: left promiscuous mode [ 3636.040985][ T11] br0: port 2(vx0) entered disabled state [ 3636.051092][ T11] swp1: left allmulticast mode [ 3636.051371][ T11] swp1: left promiscuous mode [ 3636.051757][ T11] br0: port 1(swp1) entered disabled state [ 3636.484091][ T11] vx0: left allmulticast mode [ 3636.484379][ T11] vx0: left promiscuous mode [ 3636.484802][ T11] br0: port 2(vx0) entered disabled state [ 3636.491028][ T11] swp1: left allmulticast mode [ 3636.491300][ T11] swp1: left promiscuous mode [ 3636.491691][ T11] br0: port 1(swp1) entered disabled state [ 3641.110163][T26861] veth0: renamed from veth1 [ 3642.704936][T26878] br0: port 1(swp1) entered blocking state [ 3642.705279][T26878] br0: port 1(swp1) entered disabled state [ 3642.705627][T26878] swp1: entered allmulticast mode [ 3642.707305][T26878] swp1: entered promiscuous mode [ 3642.708690][T26878] br0: port 1(swp1) entered blocking state [ 3642.709030][T26878] br0: port 1(swp1) entered forwarding state [ 3643.040515][T26880] br0: port 2(vx0) entered blocking state [ 3643.040882][T26880] br0: port 2(vx0) entered disabled state [ 3643.041217][T26880] vx0: entered allmulticast mode [ 3643.042546][T26880] vx0: entered promiscuous mode [ 3643.043261][T26880] br0: port 2(vx0) entered blocking state [ 3643.043578][T26880] br0: port 2(vx0) entered forwarding state [ 3645.200784][T26893] br0: port 1(swp1) entered blocking state [ 3645.201138][T26893] br0: port 1(swp1) entered disabled state [ 3645.201488][T26893] swp1: entered allmulticast mode [ 3645.202808][T26893] swp1: entered promiscuous mode [ 3645.204174][T26893] br0: port 1(swp1) entered blocking state [ 3645.204490][T26893] br0: port 1(swp1) entered forwarding state [ 3645.528666][T26895] br0: port 2(vx0) entered blocking state [ 3645.529738][T26895] br0: port 2(vx0) entered disabled state [ 3645.530083][T26895] vx0: entered allmulticast mode [ 3645.531410][T26895] vx0: entered promiscuous mode [ 3645.532124][T26895] br0: port 2(vx0) entered blocking state [ 3645.532428][T26895] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 3653.647986][T17002] br0: port 1(swp1) entered disabled state [ 3654.682003][T16992] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 3661.985189][ T11] vx0: left allmulticast mode [ 3661.985482][ T11] vx0: left promiscuous mode [ 3661.985901][ T11] br0: port 2(vx0) entered disabled state [ 3662.004814][ T11] swp1: left allmulticast mode [ 3662.005159][ T11] swp1: left promiscuous mode [ 3662.005551][ T11] br0: port 1(swp1) entered disabled state [ 3662.552167][ T11] vx0: left allmulticast mode [ 3662.552457][ T11] vx0: left promiscuous mode [ 3662.552864][ T11] br0: port 2(vx0) entered disabled state [ 3662.563755][ T11] swp1: left allmulticast mode [ 3662.564044][ T11] swp1: left promiscuous mode [ 3662.564423][ T11] br0: port 1(swp1) entered disabled state [ 3667.148625][T26988] veth0: renamed from veth1 [ 3668.762925][T27005] br0: port 1(swp1) entered blocking state [ 3668.763287][T27005] br0: port 1(swp1) entered disabled state [ 3668.763644][T27005] swp1: entered allmulticast mode [ 3668.765741][T27005] swp1: entered promiscuous mode [ 3668.767151][T27005] br0: port 1(swp1) entered blocking state [ 3668.767471][T27005] br0: port 1(swp1) entered forwarding state [ 3669.094155][T27007] br0: port 2(vx0) entered blocking state [ 3669.094493][T27007] br0: port 2(vx0) entered disabled state [ 3669.094818][T27007] vx0: entered allmulticast mode [ 3669.096181][T27007] vx0: entered promiscuous mode [ 3669.103584][T27007] br0: port 2(vx0) entered blocking state [ 3669.103923][T27007] br0: port 2(vx0) entered forwarding state [ 3671.210359][T27020] br0: port 1(swp1) entered blocking state [ 3671.210709][T27020] br0: port 1(swp1) entered disabled state [ 3671.211076][T27020] swp1: entered allmulticast mode [ 3671.212423][T27020] swp1: entered promiscuous mode [ 3671.213846][T27020] br0: port 1(swp1) entered blocking state [ 3671.214173][T27020] br0: port 1(swp1) entered forwarding state [ 3671.539355][T27022] br0: port 2(vx0) entered blocking state [ 3671.539693][T27022] br0: port 2(vx0) entered disabled state [ 3671.540033][T27022] vx0: entered allmulticast mode [ 3671.541355][T27022] vx0: entered promiscuous mode [ 3671.541956][T27022] br0: port 2(vx0) entered blocking state [ 3671.542265][T27022] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 3678.255181][T23454] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 3708.551508][ T11] vx0: left allmulticast mode [ 3708.551948][ T11] vx0: left promiscuous mode [ 3708.552528][ T11] br0: port 2(vx0) entered disabled state [ 3708.572342][ T11] swp1: left allmulticast mode [ 3708.572621][ T11] swp1: left promiscuous mode [ 3708.573028][ T11] br0: port 1(swp1) entered disabled state [ 3709.011094][ T11] vx0: left allmulticast mode [ 3709.011388][ T11] vx0: left promiscuous mode [ 3709.011778][ T11] br0: port 2(vx0) entered disabled state [ 3709.027944][ T11] swp1: left allmulticast mode [ 3709.028223][ T11] swp1: left promiscuous mode [ 3709.028600][ T11] 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-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-3/tools/testing/selftests' xx__-> echo $? 0 xx__->