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 [ 693.806949] veth0: renamed from veth1 [ 693.965747] br0: port 1(swp1) entered blocking state [ 693.966168] br0: port 1(swp1) entered disabled state [ 693.966570] swp1: entered allmulticast mode [ 693.967033] swp1: entered promiscuous mode [ 693.967460] br0: port 1(swp1) entered blocking state [ 693.967860] br0: port 1(swp1) entered forwarding state [ 694.000738] br0: port 2(vx0) entered blocking state [ 694.001150] br0: port 2(vx0) entered disabled state [ 694.001536] vx0: entered allmulticast mode [ 694.001977] vx0: entered promiscuous mode [ 694.002341] br0: port 2(vx0) entered blocking state [ 694.002736] br0: port 2(vx0) entered forwarding state [ 694.205984] br0: port 1(swp1) entered blocking state [ 694.206369] br0: port 1(swp1) entered disabled state [ 694.206748] swp1: entered allmulticast mode [ 694.207147] swp1: entered promiscuous mode [ 694.207511] br0: port 1(swp1) entered blocking state [ 694.207830] br0: port 1(swp1) entered forwarding state [ 694.237973] br0: port 2(vx0) entered blocking state [ 694.238254] br0: port 2(vx0) entered disabled state [ 694.238521] vx0: entered allmulticast mode [ 694.238811] vx0: entered promiscuous mode [ 694.239062] br0: port 2(vx0) entered blocking state [ 694.239317] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 699.742813] 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 ] [ 700.147455] br0: port 1(swp1) entered blocking state [ 700.147757] 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 ] [ 700.742700] 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 ] [ 701.163179] br0: port 1(swp1) entered blocking state [ 701.163475] 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 ] [ 701.934216] 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 ] [ 702.375867] vx0: left allmulticast mode [ 702.376286] vx0: left promiscuous mode [ 702.376602] br0: port 2(vx0) entered disabled state [ 702.377029] swp1: left allmulticast mode [ 702.377242] swp1: left promiscuous mode [ 702.377456] br0: port 1(swp1) entered disabled state [ 702.439797] vx0: left allmulticast mode [ 702.440232] vx0: left promiscuous mode [ 702.440574] br0: port 2(vx0) entered disabled state [ 702.441178] swp1: left allmulticast mode [ 702.441560] swp1: left promiscuous mode [ 702.441912] br0: port 1(swp1) entered disabled state [ 702.834836] veth0: renamed from veth1 [ 702.983249] br0: port 1(swp1) entered blocking state [ 702.983547] br0: port 1(swp1) entered disabled state [ 702.983829] swp1: entered allmulticast mode [ 702.984158] swp1: entered promiscuous mode [ 702.984432] br0: port 1(swp1) entered blocking state [ 702.984700] br0: port 1(swp1) entered forwarding state [ 703.015368] br0: port 2(vx0) entered blocking state [ 703.015790] br0: port 2(vx0) entered disabled state [ 703.016114] vx0: entered allmulticast mode [ 703.016401] vx0: entered promiscuous mode [ 703.016689] br0: port 2(vx0) entered blocking state [ 703.016958] br0: port 2(vx0) entered forwarding state [ 703.201512] br0: port 1(swp1) entered blocking state [ 703.201868] br0: port 1(swp1) entered disabled state [ 703.202193] swp1: entered allmulticast mode [ 703.202601] swp1: entered promiscuous mode [ 703.202986] br0: port 1(swp1) entered blocking state [ 703.203365] br0: port 1(swp1) entered forwarding state [ 703.230085] br0: port 2(vx0) entered blocking state [ 703.230380] br0: port 2(vx0) entered disabled state [ 703.230652] vx0: entered allmulticast mode [ 703.231056] vx0: entered promiscuous mode [ 703.231357] br0: port 2(vx0) entered blocking state [ 703.231731] 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 ] [ 708.858466] 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 ] [ 709.580382] br0: port 1(swp1) entered blocking state [ 709.580730] 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 ] [ 710.030805] 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 ] [ 710.715096] br0: port 1(swp1) entered blocking state [ 710.715391] 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 ] [ 712.057612] 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 ] [ 712.739495] vx0: left allmulticast mode [ 712.739738] vx0: left promiscuous mode [ 712.739991] br0: port 2(vx0) entered disabled state [ 712.740425] swp1: left allmulticast mode [ 712.740647] swp1: left promiscuous mode [ 712.740861] br0: port 1(swp1) entered disabled state [ 712.828825] vx0: left allmulticast mode [ 712.829298] vx0: left promiscuous mode [ 712.829758] br0: port 2(vx0) entered disabled state [ 712.830407] swp1: left allmulticast mode [ 712.830854] swp1: left promiscuous mode [ 712.831278] br0: port 1(swp1) entered disabled state [ 713.161847] veth0: renamed from veth1 [ 713.295341] br0: port 1(swp1) entered blocking state [ 713.295646] br0: port 1(swp1) entered disabled state [ 713.295918] swp1: entered allmulticast mode [ 713.296227] swp1: entered promiscuous mode [ 713.296498] br0: port 1(swp1) entered blocking state [ 713.296767] br0: port 1(swp1) entered forwarding state [ 713.321931] br0: port 2(vx0) entered blocking state [ 713.322226] br0: port 2(vx0) entered disabled state [ 713.322513] vx0: entered allmulticast mode [ 713.322825] vx0: entered promiscuous mode [ 713.323065] br0: port 2(vx0) entered blocking state [ 713.323354] br0: port 2(vx0) entered forwarding state [ 713.486496] br0: port 1(swp1) entered blocking state [ 713.486843] br0: port 1(swp1) entered disabled state [ 713.487146] swp1: entered allmulticast mode [ 713.487436] swp1: entered promiscuous mode [ 713.487715] br0: port 1(swp1) entered blocking state [ 713.487978] br0: port 1(swp1) entered forwarding state [ 713.513631] br0: port 2(vx0) entered blocking state [ 713.513933] br0: port 2(vx0) entered disabled state [ 713.514207] vx0: entered allmulticast mode [ 713.514491] vx0: entered promiscuous mode [ 713.514742] br0: port 2(vx0) entered blocking state [ 713.514999] 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 ] [ 718.832695] 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 ] [ 721.668300] vx0: left allmulticast mode [ 721.668536] vx0: left promiscuous mode [ 721.668801] br0: port 2(vx0) entered disabled state [ 721.669658] swp1: left allmulticast mode [ 721.669908] swp1: left promiscuous mode [ 721.670123] br0: port 1(swp1) entered disabled state [ 721.745055] vx0: left allmulticast mode [ 721.745403] vx0: left promiscuous mode [ 721.745772] br0: port 2(vx0) entered disabled state [ 721.746312] swp1: left allmulticast mode [ 721.746646] swp1: left promiscuous mode [ 721.747011] br0: port 1(swp1) entered disabled state [ 722.108808] veth0: renamed from veth1 [ 722.248623] br0: port 1(swp1) entered blocking state [ 722.248919] br0: port 1(swp1) entered disabled state [ 722.249189] swp1: entered allmulticast mode [ 722.249479] swp1: entered promiscuous mode [ 722.249756] br0: port 1(swp1) entered blocking state [ 722.250018] br0: port 1(swp1) entered forwarding state [ 722.279100] br0: port 2(vx0) entered blocking state [ 722.279519] br0: port 2(vx0) entered disabled state [ 722.279986] vx0: entered allmulticast mode [ 722.280414] vx0: entered promiscuous mode [ 722.280816] br0: port 2(vx0) entered blocking state [ 722.281201] br0: port 2(vx0) entered forwarding state [ 722.458769] br0: port 1(swp1) entered blocking state [ 722.459191] br0: port 1(swp1) entered disabled state [ 722.459599] swp1: entered allmulticast mode [ 722.460042] swp1: entered promiscuous mode [ 722.460316] br0: port 1(swp1) entered blocking state [ 722.460576] br0: port 1(swp1) entered forwarding state [ 722.488714] br0: port 2(vx0) entered blocking state [ 722.489009] br0: port 2(vx0) entered disabled state [ 722.489281] vx0: entered allmulticast mode [ 722.489562] vx0: entered promiscuous mode [ 722.489851] br0: port 2(vx0) entered blocking state [ 722.490110] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 727.836552] br0: port 1(swp1) entered disabled state [ 728.895676] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 734.975526] vx0: left allmulticast mode [ 734.975808] vx0: left promiscuous mode [ 734.976071] br0: port 2(vx0) entered disabled state [ 734.976522] swp1: left allmulticast mode [ 734.976777] swp1: left promiscuous mode [ 734.977032] br0: port 1(swp1) entered disabled state [ 735.042824] vx0: left allmulticast mode [ 735.043068] vx0: left promiscuous mode [ 735.043339] br0: port 2(vx0) entered disabled state [ 735.043816] swp1: left allmulticast mode [ 735.044075] swp1: left promiscuous mode [ 735.044334] br0: port 1(swp1) entered disabled state [ 735.422808] veth0: renamed from veth1 [ 735.547493] br0: port 1(swp1) entered blocking state [ 735.547894] br0: port 1(swp1) entered disabled state [ 735.548263] swp1: entered allmulticast mode [ 735.548669] swp1: entered promiscuous mode [ 735.549031] br0: port 1(swp1) entered blocking state [ 735.549385] br0: port 1(swp1) entered forwarding state [ 735.573884] br0: port 2(vx0) entered blocking state [ 735.574177] br0: port 2(vx0) entered disabled state [ 735.574455] vx0: entered allmulticast mode [ 735.574765] vx0: entered promiscuous mode [ 735.575013] br0: port 2(vx0) entered blocking state [ 735.575289] br0: port 2(vx0) entered forwarding state [ 735.749890] br0: port 1(swp1) entered blocking state [ 735.750281] br0: port 1(swp1) entered disabled state [ 735.750626] swp1: entered allmulticast mode [ 735.751015] swp1: entered promiscuous mode [ 735.751362] br0: port 1(swp1) entered blocking state [ 735.751717] br0: port 1(swp1) entered forwarding state [ 735.777779] br0: port 2(vx0) entered blocking state [ 735.778185] br0: port 2(vx0) entered disabled state [ 735.778562] vx0: entered allmulticast mode [ 735.779120] vx0: entered promiscuous mode [ 735.779471] br0: port 2(vx0) entered blocking state [ 735.779855] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 740.931075] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 770.962960] vx0: left allmulticast mode [ 770.963242] vx0: left promiscuous mode [ 770.963500] br0: port 2(vx0) entered disabled state [ 770.964013] swp1: left allmulticast mode [ 770.964254] swp1: left promiscuous mode [ 770.964546] br0: port 1(swp1) entered disabled state # # Tests passed: 83 # Tests failed: 0 [ 771.041844] vx0: left allmulticast mode [ 771.042223] vx0: left promiscuous mode [ 771.042520] br0: port 2(vx0) entered disabled state [ 771.042961] swp1: left allmulticast mode [ 771.043175] swp1: left promiscuous mode [ 771.043403] 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__->