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 [ 797.299136] veth0: renamed from veth1 [ 797.454760] br0: port 1(swp1) entered blocking state [ 797.455066] br0: port 1(swp1) entered disabled state [ 797.455344] swp1: entered allmulticast mode [ 797.455658] swp1: entered promiscuous mode [ 797.455933] br0: port 1(swp1) entered blocking state [ 797.456199] br0: port 1(swp1) entered forwarding state [ 797.485545] br0: port 2(vx0) entered blocking state [ 797.485946] br0: port 2(vx0) entered disabled state [ 797.486305] vx0: entered allmulticast mode [ 797.486737] vx0: entered promiscuous mode [ 797.487085] br0: port 2(vx0) entered blocking state [ 797.487441] br0: port 2(vx0) entered forwarding state [ 797.684997] br0: port 1(swp1) entered blocking state [ 797.685319] br0: port 1(swp1) entered disabled state [ 797.685675] swp1: entered allmulticast mode [ 797.685977] swp1: entered promiscuous mode [ 797.686255] br0: port 1(swp1) entered blocking state [ 797.686529] br0: port 1(swp1) entered forwarding state [ 797.717131] br0: port 2(vx0) entered blocking state [ 797.717430] br0: port 2(vx0) entered disabled state [ 797.717708] vx0: entered allmulticast mode [ 797.717991] vx0: entered promiscuous mode [ 797.718224] br0: port 2(vx0) entered blocking state [ 797.718491] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 803.202785] 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 ] [ 803.572962] br0: port 1(swp1) entered blocking state [ 803.573260] 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 ] # TEST: No forwarding out of swp1 [ OK ] [ 804.204695] br0: port 1(swp1) entered disabled state # TEST: Forwarding out of vx0 [ OK ] [ 804.290699] br0: port 1(swp1) entered blocking state [ 804.291013] 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 ] # TEST: swp1 carrier off [ OK ] # TEST: No forwarding out of swp1 [FAIL] [ 805.213209] br0: port 1(swp1) entered disabled state # TEST: No forwarding out of vx0 [ OK ] [ 805.499714] vx0: left allmulticast mode [ 805.500089] vx0: left promiscuous mode [ 805.500442] br0: port 2(vx0) entered disabled state [ 805.511678] swp1: left allmulticast mode [ 805.512095] swp1: left promiscuous mode [ 805.512507] br0: port 1(swp1) entered disabled state [ 805.718717] vx0: left allmulticast mode [ 805.719145] vx0: left promiscuous mode [ 805.719616] br0: port 2(vx0) entered disabled state [ 805.730731] swp1: left allmulticast mode [ 805.731294] swp1: left promiscuous mode [ 805.731829] br0: port 1(swp1) entered disabled state [ 805.846907] veth0: renamed from veth1 [ 805.983778] br0: port 1(swp1) entered blocking state [ 805.984075] br0: port 1(swp1) entered disabled state [ 805.984370] swp1: entered allmulticast mode [ 805.984769] swp1: entered promiscuous mode [ 805.985049] br0: port 1(swp1) entered blocking state [ 805.985312] br0: port 1(swp1) entered forwarding state [ 806.012533] br0: port 2(vx0) entered blocking state [ 806.012823] br0: port 2(vx0) entered disabled state [ 806.013083] vx0: entered allmulticast mode [ 806.013382] vx0: entered promiscuous mode [ 806.013634] br0: port 2(vx0) entered blocking state [ 806.013892] br0: port 2(vx0) entered forwarding state [ 806.180709] br0: port 1(swp1) entered blocking state [ 806.181011] br0: port 1(swp1) entered disabled state [ 806.181287] swp1: entered allmulticast mode [ 806.181595] swp1: entered promiscuous mode [ 806.181875] br0: port 1(swp1) entered blocking state [ 806.182143] br0: port 1(swp1) entered forwarding state [ 806.207152] br0: port 2(vx0) entered blocking state [ 806.207546] br0: port 2(vx0) entered disabled state [ 806.207891] vx0: entered allmulticast mode [ 806.208270] vx0: entered promiscuous mode [ 806.208626] br0: port 2(vx0) entered blocking state [ 806.208965] 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 ] [ 811.844020] 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 ] [ 812.500139] br0: port 1(swp1) entered blocking state [ 812.500585] 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 ] [ 812.898330] 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 ] [ 813.564223] br0: port 1(swp1) entered blocking state [ 813.564534] 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 ] [ 814.848958] 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 ] [ 815.612716] vx0: left allmulticast mode [ 815.613196] vx0: left promiscuous mode [ 815.613496] br0: port 2(vx0) entered disabled state [ 815.621697] swp1: left allmulticast mode [ 815.622178] swp1: left promiscuous mode [ 815.622482] br0: port 1(swp1) entered disabled state [ 815.814660] vx0: left allmulticast mode [ 815.815049] vx0: left promiscuous mode [ 815.815262] br0: port 2(vx0) entered disabled state [ 815.825642] swp1: left allmulticast mode [ 815.825881] swp1: left promiscuous mode [ 815.826095] br0: port 1(swp1) entered disabled state [ 815.953772] veth0: renamed from veth1 [ 816.093465] br0: port 1(swp1) entered blocking state [ 816.093779] br0: port 1(swp1) entered disabled state [ 816.094061] swp1: entered allmulticast mode [ 816.094374] swp1: entered promiscuous mode [ 816.094661] br0: port 1(swp1) entered blocking state [ 816.094940] br0: port 1(swp1) entered forwarding state [ 816.119454] br0: port 2(vx0) entered blocking state [ 816.119765] br0: port 2(vx0) entered disabled state [ 816.120086] vx0: entered allmulticast mode [ 816.120401] vx0: entered promiscuous mode [ 816.120708] br0: port 2(vx0) entered blocking state [ 816.120970] br0: port 2(vx0) entered forwarding state [ 816.282836] br0: port 1(swp1) entered blocking state [ 816.283147] br0: port 1(swp1) entered disabled state [ 816.283422] swp1: entered allmulticast mode [ 816.283733] swp1: entered promiscuous mode [ 816.284025] br0: port 1(swp1) entered blocking state [ 816.284330] br0: port 1(swp1) entered forwarding state [ 816.315327] br0: port 2(vx0) entered blocking state [ 816.315635] br0: port 2(vx0) entered disabled state [ 816.315901] vx0: entered allmulticast mode [ 816.316185] vx0: entered promiscuous mode [ 816.316417] br0: port 2(vx0) entered blocking state [ 816.316687] 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 ] [ 821.691330] 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 ] [ 824.623740] vx0: left allmulticast mode [ 824.624178] vx0: left promiscuous mode [ 824.624643] br0: port 2(vx0) entered disabled state [ 824.635662] swp1: left allmulticast mode [ 824.635972] swp1: left promiscuous mode [ 824.636295] br0: port 1(swp1) entered disabled state [ 824.802760] vx0: left allmulticast mode [ 824.803045] vx0: left promiscuous mode [ 824.803381] br0: port 2(vx0) entered disabled state [ 824.814682] swp1: left allmulticast mode [ 824.814913] swp1: left promiscuous mode [ 824.815135] br0: port 1(swp1) entered disabled state [ 825.034944] veth0: renamed from veth1 [ 825.166249] br0: port 1(swp1) entered blocking state [ 825.166600] br0: port 1(swp1) entered disabled state [ 825.166895] swp1: entered allmulticast mode [ 825.167189] swp1: entered promiscuous mode [ 825.167460] br0: port 1(swp1) entered blocking state [ 825.167733] br0: port 1(swp1) entered forwarding state [ 825.194005] br0: port 2(vx0) entered blocking state [ 825.194309] br0: port 2(vx0) entered disabled state [ 825.194581] vx0: entered allmulticast mode [ 825.194912] vx0: entered promiscuous mode [ 825.195148] br0: port 2(vx0) entered blocking state [ 825.195401] br0: port 2(vx0) entered forwarding state [ 825.369776] br0: port 1(swp1) entered blocking state [ 825.370139] br0: port 1(swp1) entered disabled state [ 825.370491] swp1: entered allmulticast mode [ 825.370861] swp1: entered promiscuous mode [ 825.371215] br0: port 1(swp1) entered blocking state [ 825.371536] br0: port 1(swp1) entered forwarding state [ 825.396862] br0: port 2(vx0) entered blocking state [ 825.397144] br0: port 2(vx0) entered disabled state [ 825.397413] vx0: entered allmulticast mode [ 825.397837] vx0: entered promiscuous mode [ 825.398083] br0: port 2(vx0) entered blocking state [ 825.398342] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 830.739729] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] [ 831.740700] br0: port 1(swp1) entered disabled state # TEST: Ping after disabling backup nexthop ID [ OK ] [ 836.902739] vx0: left allmulticast mode [ 836.903212] vx0: left promiscuous mode [ 836.903638] br0: port 2(vx0) entered disabled state [ 836.910664] swp1: left allmulticast mode [ 836.911062] swp1: left promiscuous mode [ 836.911430] br0: port 1(swp1) entered disabled state [ 837.092718] vx0: left allmulticast mode [ 837.093339] vx0: left promiscuous mode [ 837.093884] br0: port 2(vx0) entered disabled state [ 837.100703] swp1: left allmulticast mode [ 837.101252] swp1: left promiscuous mode [ 837.101768] br0: port 1(swp1) entered disabled state [ 837.297760] veth0: renamed from veth1 [ 837.468733] br0: port 1(swp1) entered blocking state [ 837.469176] br0: port 1(swp1) entered disabled state [ 837.469610] swp1: entered allmulticast mode [ 837.470080] swp1: entered promiscuous mode [ 837.470504] br0: port 1(swp1) entered blocking state [ 837.470907] br0: port 1(swp1) entered forwarding state [ 837.503447] br0: port 2(vx0) entered blocking state [ 837.503766] br0: port 2(vx0) entered disabled state [ 837.504031] vx0: entered allmulticast mode [ 837.504317] vx0: entered promiscuous mode [ 837.504574] br0: port 2(vx0) entered blocking state [ 837.504834] br0: port 2(vx0) entered forwarding state [ 837.697838] br0: port 1(swp1) entered blocking state [ 837.698140] br0: port 1(swp1) entered disabled state [ 837.698424] swp1: entered allmulticast mode [ 837.698741] swp1: entered promiscuous mode [ 837.699020] br0: port 1(swp1) entered blocking state [ 837.699285] br0: port 1(swp1) entered forwarding state [ 837.731594] br0: port 2(vx0) entered blocking state [ 837.731898] br0: port 2(vx0) entered disabled state [ 837.732178] vx0: entered allmulticast mode [ 837.732486] vx0: entered promiscuous mode [ 837.732733] br0: port 2(vx0) entered blocking state [ 837.732992] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 842.914017] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] # # Tests passed: 82 # Tests failed: 1 [ 873.060745] vx0: left allmulticast mode [ 873.061356] vx0: left promiscuous mode [ 873.061837] br0: port 2(vx0) entered disabled state [ 873.072721] swp1: left allmulticast mode [ 873.073210] swp1: left promiscuous mode [ 873.073696] br0: port 1(swp1) entered disabled state not ok 1 selftests: net: test_bridge_backup_port.sh # exit=1 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__->