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 [ 481.419159] veth0: renamed from veth1 [ 481.560497] br0: port 1(swp1) entered blocking state [ 481.560939] br0: port 1(swp1) entered disabled state [ 481.561355] swp1: entered allmulticast mode [ 481.561828] swp1: entered promiscuous mode [ 481.562247] br0: port 1(swp1) entered blocking state [ 481.562648] br0: port 1(swp1) entered forwarding state [ 481.587917] br0: port 2(vx0) entered blocking state [ 481.588219] br0: port 2(vx0) entered disabled state [ 481.588497] vx0: entered allmulticast mode [ 481.588810] vx0: entered promiscuous mode [ 481.589057] br0: port 2(vx0) entered blocking state [ 481.589322] br0: port 2(vx0) entered forwarding state [ 481.746966] br0: port 1(swp1) entered blocking state [ 481.747275] br0: port 1(swp1) entered disabled state [ 481.747559] swp1: entered allmulticast mode [ 481.747866] swp1: entered promiscuous mode [ 481.748143] br0: port 1(swp1) entered blocking state [ 481.748432] br0: port 1(swp1) entered forwarding state [ 481.771292] br0: port 2(vx0) entered blocking state [ 481.771590] br0: port 2(vx0) entered disabled state [ 481.771866] vx0: entered allmulticast mode [ 481.772154] vx0: entered promiscuous mode [ 481.772394] br0: port 2(vx0) entered blocking state [ 481.772661] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 486.874301] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 487.274325] 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 ] [ 488.637617] br0: port 1(swp1) entered blocking state [ 488.638056] 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 ] # TEST: swp1 carrier off [ OK ] [ 489.659908] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of swp1 [ OK ] # TEST: Forwarding out of vx0 [ OK ] [ 490.345064] br0: port 1(swp1) entered blocking state [ 490.345395] 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 ] [ 492.049873] 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 ] [ 493.455946] vx0: left allmulticast mode [ 493.456355] vx0: left promiscuous mode [ 493.456811] br0: port 2(vx0) entered disabled state [ 493.466955] swp1: left allmulticast mode [ 493.467295] swp1: left promiscuous mode [ 493.467775] br0: port 1(swp1) entered disabled state [ 493.594960] vx0: left allmulticast mode [ 493.595208] vx0: left promiscuous mode [ 493.595428] br0: port 2(vx0) entered disabled state [ 493.606004] swp1: left allmulticast mode [ 493.606462] swp1: left promiscuous mode [ 493.606969] br0: port 1(swp1) entered disabled state [ 493.802013] veth0: renamed from veth1 [ 493.927610] br0: port 1(swp1) entered blocking state [ 493.928106] br0: port 1(swp1) entered disabled state [ 493.928536] swp1: entered allmulticast mode [ 493.928984] swp1: entered promiscuous mode [ 493.929389] br0: port 1(swp1) entered blocking state [ 493.929794] br0: port 1(swp1) entered forwarding state [ 493.951776] br0: port 2(vx0) entered blocking state [ 493.952105] br0: port 2(vx0) entered disabled state [ 493.952381] vx0: entered allmulticast mode [ 493.952689] vx0: entered promiscuous mode [ 493.952953] br0: port 2(vx0) entered blocking state [ 493.953325] br0: port 2(vx0) entered forwarding state [ 494.093922] br0: port 1(swp1) entered blocking state [ 494.094344] br0: port 1(swp1) entered disabled state [ 494.094743] swp1: entered allmulticast mode [ 494.095272] swp1: entered promiscuous mode [ 494.095685] br0: port 1(swp1) entered blocking state [ 494.096090] br0: port 1(swp1) entered forwarding state [ 494.117714] br0: port 2(vx0) entered blocking state [ 494.118025] br0: port 2(vx0) entered disabled state [ 494.118294] vx0: entered allmulticast mode [ 494.118597] vx0: entered promiscuous mode [ 494.118838] br0: port 2(vx0) entered blocking state [ 494.119104] 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 ] [ 499.705669] 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 ] [ 501.358405] br0: port 1(swp1) entered blocking state [ 501.358731] 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 ] # TEST: swp1 carrier off [ OK ] [ 502.395921] br0: port 1(swp1) entered disabled state # 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 ] [ 503.361597] br0: port 1(swp1) entered blocking state [ 503.362033] 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 ] [ 505.622872] 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 ] [ 507.327015] vx0: left allmulticast mode [ 507.327366] vx0: left promiscuous mode [ 507.327691] br0: port 2(vx0) entered disabled state [ 507.334966] swp1: left allmulticast mode [ 507.335416] swp1: left promiscuous mode [ 507.335843] br0: port 1(swp1) entered disabled state [ 507.494009] vx0: left allmulticast mode [ 507.494433] vx0: left promiscuous mode [ 507.494843] br0: port 2(vx0) entered disabled state [ 507.517943] swp1: left allmulticast mode [ 507.518301] swp1: left promiscuous mode [ 507.518593] br0: port 1(swp1) entered disabled state [ 507.662030] veth0: renamed from veth1 [ 507.798484] br0: port 1(swp1) entered blocking state [ 507.798947] br0: port 1(swp1) entered disabled state [ 507.799372] swp1: entered allmulticast mode [ 507.799854] swp1: entered promiscuous mode [ 507.800287] br0: port 1(swp1) entered blocking state [ 507.800692] br0: port 1(swp1) entered forwarding state [ 507.829025] br0: port 2(vx0) entered blocking state [ 507.829459] br0: port 2(vx0) entered disabled state [ 507.829879] vx0: entered allmulticast mode [ 507.830333] vx0: entered promiscuous mode [ 507.830689] br0: port 2(vx0) entered blocking state [ 507.831096] br0: port 2(vx0) entered forwarding state [ 507.994429] br0: port 1(swp1) entered blocking state [ 507.994767] br0: port 1(swp1) entered disabled state [ 507.995113] swp1: entered allmulticast mode [ 507.995449] swp1: entered promiscuous mode [ 507.995759] br0: port 1(swp1) entered blocking state [ 507.996068] br0: port 1(swp1) entered forwarding state [ 508.021969] br0: port 2(vx0) entered blocking state [ 508.022275] br0: port 2(vx0) entered disabled state [ 508.022545] vx0: entered allmulticast mode [ 508.022845] vx0: entered promiscuous mode [ 508.023121] br0: port 2(vx0) entered blocking state [ 508.023388] 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 ] [ 513.324980] 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 ] [ 517.104948] vx0: left allmulticast mode [ 517.105447] vx0: left promiscuous mode [ 517.105671] br0: port 2(vx0) entered disabled state [ 517.112903] swp1: left allmulticast mode [ 517.113271] swp1: left promiscuous mode [ 517.113641] br0: port 1(swp1) entered disabled state [ 517.255959] vx0: left allmulticast mode [ 517.256310] vx0: left promiscuous mode [ 517.256706] br0: port 2(vx0) entered disabled state [ 517.268943] swp1: left allmulticast mode [ 517.269192] swp1: left promiscuous mode [ 517.269412] br0: port 1(swp1) entered disabled state [ 517.458033] veth0: renamed from veth1 [ 517.571006] br0: port 1(swp1) entered blocking state [ 517.571360] br0: port 1(swp1) entered disabled state [ 517.571670] swp1: entered allmulticast mode [ 517.572025] swp1: entered promiscuous mode [ 517.572324] br0: port 1(swp1) entered blocking state [ 517.572613] br0: port 1(swp1) entered forwarding state [ 517.593567] br0: port 2(vx0) entered blocking state [ 517.593874] br0: port 2(vx0) entered disabled state [ 517.594143] vx0: entered allmulticast mode [ 517.594466] vx0: entered promiscuous mode [ 517.594700] br0: port 2(vx0) entered blocking state [ 517.594982] br0: port 2(vx0) entered forwarding state [ 517.731729] br0: port 1(swp1) entered blocking state [ 517.732169] br0: port 1(swp1) entered disabled state [ 517.732559] swp1: entered allmulticast mode [ 517.732977] swp1: entered promiscuous mode [ 517.733339] br0: port 1(swp1) entered blocking state [ 517.733691] br0: port 1(swp1) entered forwarding state [ 517.755298] br0: port 2(vx0) entered blocking state [ 517.755615] br0: port 2(vx0) entered disabled state [ 517.755926] vx0: entered allmulticast mode [ 517.756213] vx0: entered promiscuous mode [ 517.756454] br0: port 2(vx0) entered blocking state [ 517.756730] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 523.039170] br0: port 1(swp1) entered disabled state [ 524.091889] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 530.127931] vx0: left allmulticast mode [ 530.128387] vx0: left promiscuous mode [ 530.128745] br0: port 2(vx0) entered disabled state [ 530.143967] swp1: left allmulticast mode [ 530.144497] swp1: left promiscuous mode [ 530.144933] br0: port 1(swp1) entered disabled state [ 530.259016] vx0: left allmulticast mode [ 530.259525] vx0: left promiscuous mode [ 530.260032] br0: port 2(vx0) entered disabled state [ 530.275964] swp1: left allmulticast mode [ 530.276416] swp1: left promiscuous mode [ 530.276748] br0: port 1(swp1) entered disabled state [ 530.480019] veth0: renamed from veth1 [ 530.586301] br0: port 1(swp1) entered blocking state [ 530.586618] br0: port 1(swp1) entered disabled state [ 530.586909] swp1: entered allmulticast mode [ 530.587216] swp1: entered promiscuous mode [ 530.587522] br0: port 1(swp1) entered blocking state [ 530.587813] br0: port 1(swp1) entered forwarding state [ 530.607708] br0: port 2(vx0) entered blocking state [ 530.608062] br0: port 2(vx0) entered disabled state [ 530.608372] vx0: entered allmulticast mode [ 530.608665] vx0: entered promiscuous mode [ 530.608911] br0: port 2(vx0) entered blocking state [ 530.609175] br0: port 2(vx0) entered forwarding state [ 530.740327] br0: port 1(swp1) entered blocking state [ 530.740632] br0: port 1(swp1) entered disabled state [ 530.740921] swp1: entered allmulticast mode [ 530.741219] swp1: entered promiscuous mode [ 530.741497] br0: port 1(swp1) entered blocking state [ 530.741819] br0: port 1(swp1) entered forwarding state [ 530.762739] br0: port 2(vx0) entered blocking state [ 530.763059] br0: port 2(vx0) entered disabled state [ 530.763327] vx0: entered allmulticast mode [ 530.763615] vx0: entered promiscuous mode [ 530.763866] br0: port 2(vx0) entered blocking state [ 530.764130] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 535.886476] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 565.964963] vx0: left allmulticast mode [ 565.965362] vx0: left promiscuous mode [ 565.965734] br0: port 2(vx0) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 565.972935] swp1: left allmulticast mode [ 565.973394] swp1: left promiscuous mode [ 565.973724] 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__->