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 7200 # selftests: net: test_bridge_backup_port.sh [ 3562.338663][T20901] veth0: renamed from veth1 [ 3563.945301][T20917] br0: port 1(swp1) entered blocking state [ 3563.945661][T20917] br0: port 1(swp1) entered disabled state [ 3563.946008][T20917] swp1: entered allmulticast mode [ 3563.947419][T20917] swp1: entered promiscuous mode [ 3563.948886][T20917] br0: port 1(swp1) entered blocking state [ 3563.949216][T20917] br0: port 1(swp1) entered forwarding state [ 3564.267791][T20919] br0: port 2(vx0) entered blocking state [ 3564.268143][T20919] br0: port 2(vx0) entered disabled state [ 3564.268464][T20919] vx0: entered allmulticast mode [ 3564.269886][T20919] vx0: entered promiscuous mode [ 3564.270463][T20919] br0: port 2(vx0) entered blocking state [ 3564.270783][T20919] br0: port 2(vx0) entered forwarding state [ 3566.352683][T20932] br0: port 1(swp1) entered blocking state [ 3566.353028][T20932] br0: port 1(swp1) entered disabled state [ 3566.353377][T20932] swp1: entered allmulticast mode [ 3566.354765][T20932] swp1: entered promiscuous mode [ 3566.356173][T20932] br0: port 1(swp1) entered blocking state [ 3566.356487][T20932] br0: port 1(swp1) entered forwarding state [ 3566.697044][T20934] br0: port 2(vx0) entered blocking state [ 3566.697384][T20934] br0: port 2(vx0) entered disabled state [ 3566.697721][T20934] vx0: entered allmulticast mode [ 3566.699090][T20934] vx0: entered promiscuous mode [ 3566.699794][T20934] br0: port 2(vx0) entered blocking state [ 3566.700097][T20934] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 3574.482736][T18210] 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 ] [ 3576.014521][ T23] br0: port 1(swp1) entered blocking state [ 3576.014898][ T23] 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 ] [ 3577.943121][ T23] 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 ] [ 3579.507738][ T23] br0: port 1(swp1) entered blocking state [ 3579.508091][ T23] 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 ] [ 3582.545474][T18210] 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 ] [ 3584.152468][ T11] vx0: left allmulticast mode [ 3584.152801][ T11] vx0: left promiscuous mode [ 3584.153202][ T11] br0: port 2(vx0) entered disabled state [ 3584.154911][ T11] swp1: left allmulticast mode [ 3584.155175][ T11] swp1: left promiscuous mode [ 3584.155545][ T11] br0: port 1(swp1) entered disabled state [ 3584.659185][ T11] vx0: left allmulticast mode [ 3584.659474][ T11] vx0: left promiscuous mode [ 3584.659884][ T11] br0: port 2(vx0) entered disabled state [ 3584.661401][ T11] swp1: left allmulticast mode [ 3584.661691][ T11] swp1: left promiscuous mode [ 3584.662070][ T11] br0: port 1(swp1) entered disabled state [ 3589.268400][T21090] veth0: renamed from veth1 [ 3590.899332][T21106] br0: port 1(swp1) entered blocking state [ 3590.900386][T21106] br0: port 1(swp1) entered disabled state [ 3590.900743][T21106] swp1: entered allmulticast mode [ 3590.902144][T21106] swp1: entered promiscuous mode [ 3590.903550][T21106] br0: port 1(swp1) entered blocking state [ 3590.903884][T21106] br0: port 1(swp1) entered forwarding state [ 3591.220775][T21108] br0: port 2(vx0) entered blocking state [ 3591.221115][T21108] br0: port 2(vx0) entered disabled state [ 3591.221443][T21108] vx0: entered allmulticast mode [ 3591.222848][T21108] vx0: entered promiscuous mode [ 3591.223425][T21108] br0: port 2(vx0) entered blocking state [ 3591.223741][T21108] br0: port 2(vx0) entered forwarding state [ 3593.361541][T21121] br0: port 1(swp1) entered blocking state [ 3593.361904][T21121] br0: port 1(swp1) entered disabled state [ 3593.362253][T21121] swp1: entered allmulticast mode [ 3593.363663][T21121] swp1: entered promiscuous mode [ 3593.365059][T21121] br0: port 1(swp1) entered blocking state [ 3593.365369][T21121] br0: port 1(swp1) entered forwarding state [ 3593.705436][T21123] br0: port 2(vx0) entered blocking state [ 3593.705796][T21123] br0: port 2(vx0) entered disabled state [ 3593.706120][T21123] vx0: entered allmulticast mode [ 3593.707498][T21123] vx0: entered promiscuous mode [ 3593.708088][T21123] br0: port 2(vx0) entered blocking state [ 3593.708398][T21123] 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 ] [ 3603.178113][T15424] 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 ] [ 3605.478416][T18210] br0: port 1(swp1) entered blocking state [ 3605.478794][T18210] 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 ] [ 3607.394721][T18210] 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 ] [ 3609.748128][T15426] br0: port 1(swp1) entered blocking state [ 3609.748485][T15426] 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 ] [ 3614.334794][T18210] 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 ] [ 3616.768929][ T11] vx0: left allmulticast mode [ 3616.769222][ T11] vx0: left promiscuous mode [ 3616.769628][ T11] br0: port 2(vx0) entered disabled state [ 3616.773144][ T11] swp1: left allmulticast mode [ 3616.773413][ T11] swp1: left promiscuous mode [ 3616.773798][ T11] br0: port 1(swp1) entered disabled state [ 3617.227433][ T11] vx0: left allmulticast mode [ 3617.227755][ T11] vx0: left promiscuous mode [ 3617.228164][ T11] br0: port 2(vx0) entered disabled state [ 3617.229853][ T11] swp1: left allmulticast mode [ 3617.230121][ T11] swp1: left promiscuous mode [ 3617.230492][ T11] br0: port 1(swp1) entered disabled state [ 3621.811047][T21339] veth0: renamed from veth1 [ 3623.364015][T21356] br0: port 1(swp1) entered blocking state [ 3623.364371][T21356] br0: port 1(swp1) entered disabled state [ 3623.365013][T21356] swp1: entered allmulticast mode [ 3623.366424][T21356] swp1: entered promiscuous mode [ 3623.367850][T21356] br0: port 1(swp1) entered blocking state [ 3623.368166][T21356] br0: port 1(swp1) entered forwarding state [ 3623.686188][T21358] br0: port 2(vx0) entered blocking state [ 3623.686529][T21358] br0: port 2(vx0) entered disabled state [ 3623.686881][T21358] vx0: entered allmulticast mode [ 3623.688278][T21358] vx0: entered promiscuous mode [ 3623.689027][T21358] br0: port 2(vx0) entered blocking state [ 3623.689334][T21358] br0: port 2(vx0) entered forwarding state [ 3625.791579][T21371] br0: port 1(swp1) entered blocking state [ 3625.791957][T21371] br0: port 1(swp1) entered disabled state [ 3625.792308][T21371] swp1: entered allmulticast mode [ 3625.793704][T21371] swp1: entered promiscuous mode [ 3625.796136][T21371] br0: port 1(swp1) entered blocking state [ 3625.796458][T21371] br0: port 1(swp1) entered forwarding state [ 3626.138302][T21373] br0: port 2(vx0) entered blocking state [ 3626.138930][T21373] br0: port 2(vx0) entered disabled state [ 3626.139258][T21373] vx0: entered allmulticast mode [ 3626.140665][T21373] vx0: entered promiscuous mode [ 3626.141238][T21373] br0: port 2(vx0) entered blocking state [ 3626.141546][T21373] 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 ] [ 3634.865728][T15426] 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 ] [ 3645.952792][ T11] vx0: left allmulticast mode [ 3645.953081][ T11] vx0: left promiscuous mode [ 3645.953477][ T11] br0: port 2(vx0) entered disabled state [ 3645.955166][ T11] swp1: left allmulticast mode [ 3645.955448][ T11] swp1: left promiscuous mode [ 3645.955894][ T11] br0: port 1(swp1) entered disabled state [ 3646.410670][ T11] vx0: left allmulticast mode [ 3646.410955][ T11] vx0: left promiscuous mode [ 3646.411365][ T11] br0: port 2(vx0) entered disabled state [ 3646.413081][ T11] swp1: left allmulticast mode [ 3646.413349][ T11] swp1: left promiscuous mode [ 3646.413823][ T11] br0: port 1(swp1) entered disabled state [ 3650.960652][T21564] veth0: renamed from veth1 [ 3652.548070][T21581] br0: port 1(swp1) entered blocking state [ 3652.548409][T21581] br0: port 1(swp1) entered disabled state [ 3652.548792][T21581] swp1: entered allmulticast mode [ 3652.550234][T21581] swp1: entered promiscuous mode [ 3652.551704][T21581] br0: port 1(swp1) entered blocking state [ 3652.552024][T21581] br0: port 1(swp1) entered forwarding state [ 3652.885469][T21583] br0: port 2(vx0) entered blocking state [ 3652.885817][T21583] br0: port 2(vx0) entered disabled state [ 3652.886146][T21583] vx0: entered allmulticast mode [ 3652.887526][T21583] vx0: entered promiscuous mode [ 3652.888112][T21583] br0: port 2(vx0) entered blocking state [ 3652.888422][T21583] br0: port 2(vx0) entered forwarding state [ 3655.034342][T21596] br0: port 1(swp1) entered blocking state [ 3655.034701][T21596] br0: port 1(swp1) entered disabled state [ 3655.035064][T21596] swp1: entered allmulticast mode [ 3655.036463][T21596] swp1: entered promiscuous mode [ 3655.038442][T21596] br0: port 1(swp1) entered blocking state [ 3655.038774][T21596] br0: port 1(swp1) entered forwarding state [ 3655.373703][T21598] br0: port 2(vx0) entered blocking state [ 3655.374039][T21598] br0: port 2(vx0) entered disabled state [ 3655.374361][T21598] vx0: entered allmulticast mode [ 3655.375735][T21598] vx0: entered promiscuous mode [ 3655.376427][T21598] br0: port 2(vx0) entered blocking state [ 3655.376763][T21598] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 3663.506678][T18210] br0: port 1(swp1) entered disabled state [ 3664.528762][T15424] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 3671.601916][ T11] vx0: left allmulticast mode [ 3671.602203][ T11] vx0: left promiscuous mode [ 3671.602635][ T11] br0: port 2(vx0) entered disabled state [ 3671.604432][ T11] swp1: left allmulticast mode [ 3671.604717][ T11] swp1: left promiscuous mode [ 3671.605089][ T11] br0: port 1(swp1) entered disabled state [ 3672.055472][ T11] vx0: left allmulticast mode [ 3672.055787][ T11] vx0: left promiscuous mode [ 3672.056188][ T11] br0: port 2(vx0) entered disabled state [ 3672.057776][ T11] swp1: left allmulticast mode [ 3672.058044][ T11] swp1: left promiscuous mode [ 3672.058447][ T11] br0: port 1(swp1) entered disabled state [ 3676.537386][T21687] veth0: renamed from veth1 [ 3678.230421][T21704] br0: port 1(swp1) entered blocking state [ 3678.231531][T21704] br0: port 1(swp1) entered disabled state [ 3678.231899][T21704] swp1: entered allmulticast mode [ 3678.233340][T21704] swp1: entered promiscuous mode [ 3678.235328][T21704] br0: port 1(swp1) entered blocking state [ 3678.235675][T21704] br0: port 1(swp1) entered forwarding state [ 3678.576591][T21706] br0: port 2(vx0) entered blocking state [ 3678.576949][T21706] br0: port 2(vx0) entered disabled state [ 3678.577277][T21706] vx0: entered allmulticast mode [ 3678.578785][T21706] vx0: entered promiscuous mode [ 3678.579379][T21706] br0: port 2(vx0) entered blocking state [ 3678.579695][T21706] br0: port 2(vx0) entered forwarding state [ 3680.737500][T21719] br0: port 1(swp1) entered blocking state [ 3680.737886][T21719] br0: port 1(swp1) entered disabled state [ 3680.738235][T21719] swp1: entered allmulticast mode [ 3680.739718][T21719] swp1: entered promiscuous mode [ 3680.742141][T21719] br0: port 1(swp1) entered blocking state [ 3680.742458][T21719] br0: port 1(swp1) entered forwarding state [ 3681.066834][T21721] br0: port 2(vx0) entered blocking state [ 3681.067171][T21721] br0: port 2(vx0) entered disabled state [ 3681.067495][T21721] vx0: entered allmulticast mode [ 3681.068903][T21721] vx0: entered promiscuous mode [ 3681.069478][T21721] br0: port 2(vx0) entered blocking state [ 3681.069801][T21721] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 3687.931687][T11009] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 3718.223157][ T11] vx0: left allmulticast mode [ 3718.223462][ T11] vx0: left promiscuous mode [ 3718.223888][ T11] br0: port 2(vx0) entered disabled state [ 3718.225713][ T11] swp1: left allmulticast mode [ 3718.225984][ T11] swp1: left promiscuous mode [ 3718.226349][ T11] br0: port 1(swp1) entered disabled state [ 3718.695437][ T11] vx0: left allmulticast mode [ 3718.695764][ T11] vx0: left promiscuous mode [ 3718.696166][ T11] br0: port 2(vx0) entered disabled state [ 3718.697822][ T11] swp1: left allmulticast mode [ 3718.698085][ T11] swp1: left promiscuous mode [ 3718.698462][ 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__->