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 # timeout set to 6000 # selftests: net: test_bridge_backup_port.sh [ 2420.792415][T27248] veth0: renamed from veth1 [ 2421.748930][T27266] br0: port 1(swp1) entered blocking state [ 2421.749308][T27266] br0: port 1(swp1) entered disabled state [ 2421.749677][T27266] swp1: entered allmulticast mode [ 2421.750950][T27266] swp1: entered promiscuous mode [ 2421.752548][T27266] br0: port 1(swp1) entered blocking state [ 2421.752881][T27266] br0: port 1(swp1) entered forwarding state [ 2421.951026][T27268] br0: port 2(vx0) entered blocking state [ 2421.951396][T27268] br0: port 2(vx0) entered disabled state [ 2421.951749][T27268] vx0: entered allmulticast mode [ 2421.952992][T27268] vx0: entered promiscuous mode [ 2421.953541][T27268] br0: port 2(vx0) entered blocking state [ 2421.953861][T27268] br0: port 2(vx0) entered forwarding state [ 2423.166829][T27281] br0: port 1(swp1) entered blocking state [ 2423.167211][T27281] br0: port 1(swp1) entered disabled state [ 2423.167569][T27281] swp1: entered allmulticast mode [ 2423.168792][T27281] swp1: entered promiscuous mode [ 2423.170836][T27281] br0: port 1(swp1) entered blocking state [ 2423.171179][T27281] br0: port 1(swp1) entered forwarding state [ 2423.358237][T27283] br0: port 2(vx0) entered blocking state [ 2423.358591][T27283] br0: port 2(vx0) entered disabled state [ 2423.358929][T27283] vx0: entered allmulticast mode [ 2423.360133][T27283] vx0: entered promiscuous mode [ 2423.360643][T27283] br0: port 2(vx0) entered blocking state [ 2423.360957][T27283] br0: port 2(vx0) entered forwarding state # # Backup port # ----------- [ 2429.153364][T27294] GACT probability NOT on # TEST: Forwarding out of swp1 [ OK ] # TEST: No forwarding out of vx0 [ OK ] [ 2430.424301][ T7511] 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 ] [ 2431.266378][T25435] br0: port 1(swp1) entered blocking state [ 2431.266745][T25435] 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 ] [ 2432.317037][T25435] 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 ] [ 2433.177515][T22076] br0: port 1(swp1) entered blocking state [ 2433.177876][T22076] 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 ] [ 2434.967288][T14857] 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 ] [ 2435.877147][ T71] vx0: left allmulticast mode [ 2435.877463][ T71] vx0: left promiscuous mode [ 2435.877833][ T71] br0: port 2(vx0) entered disabled state [ 2435.889623][ T71] swp1: left allmulticast mode [ 2435.889907][ T71] swp1: left promiscuous mode [ 2435.890266][ T71] br0: port 1(swp1) entered disabled state [ 2436.139669][ T71] vx0: left allmulticast mode [ 2436.139963][ T71] vx0: left promiscuous mode [ 2436.140334][ T71] br0: port 2(vx0) entered disabled state [ 2436.152205][ T71] swp1: left allmulticast mode [ 2436.152485][ T71] swp1: left promiscuous mode [ 2436.152829][ T71] br0: port 1(swp1) entered disabled state [ 2438.617316][T27422] veth0: renamed from veth1 [ 2439.571218][T27438] br0: port 1(swp1) entered blocking state [ 2439.571576][T27438] br0: port 1(swp1) entered disabled state [ 2439.571947][T27438] swp1: entered allmulticast mode [ 2439.573639][T27438] swp1: entered promiscuous mode [ 2439.577148][T27438] br0: port 1(swp1) entered blocking state [ 2439.577484][T27438] br0: port 1(swp1) entered forwarding state [ 2439.758645][T27440] br0: port 2(vx0) entered blocking state [ 2439.758996][T27440] br0: port 2(vx0) entered disabled state [ 2439.759895][T27440] vx0: entered allmulticast mode [ 2439.761145][T27440] vx0: entered promiscuous mode [ 2439.761677][T27440] br0: port 2(vx0) entered blocking state [ 2439.761997][T27440] br0: port 2(vx0) entered forwarding state [ 2440.971977][T27453] br0: port 1(swp1) entered blocking state [ 2440.973143][T27453] br0: port 1(swp1) entered disabled state [ 2440.973676][T27453] swp1: entered allmulticast mode [ 2440.974911][T27453] swp1: entered promiscuous mode [ 2440.976130][T27453] br0: port 1(swp1) entered blocking state [ 2440.976456][T27453] br0: port 1(swp1) entered forwarding state [ 2441.169993][T27455] br0: port 2(vx0) entered blocking state [ 2441.170963][T27455] br0: port 2(vx0) entered disabled state [ 2441.171315][T27455] vx0: entered allmulticast mode [ 2441.172561][T27455] vx0: entered promiscuous mode [ 2441.173077][T27455] br0: port 2(vx0) entered blocking state [ 2441.173407][T27455] 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 ] [ 2448.872036][T10579] 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 ] [ 2450.245179][T22076] br0: port 1(swp1) entered blocking state [ 2450.245537][T22076] 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 ] [ 2451.272603][T14857] 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 ] [ 2452.621479][T22076] br0: port 1(swp1) entered blocking state [ 2452.621854][T22076] 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 ] [ 2455.419296][T25454] 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 ] [ 2456.853829][ T71] vx0: left allmulticast mode [ 2456.854167][ T71] vx0: left promiscuous mode [ 2456.854542][ T71] br0: port 2(vx0) entered disabled state [ 2456.862317][ T71] swp1: left allmulticast mode [ 2456.862600][ T71] swp1: left promiscuous mode [ 2456.862941][ T71] br0: port 1(swp1) entered disabled state [ 2457.089993][ T71] vx0: left allmulticast mode [ 2457.090343][ T71] vx0: left promiscuous mode [ 2457.090710][ T71] br0: port 2(vx0) entered disabled state [ 2457.101146][ T71] swp1: left allmulticast mode [ 2457.101429][ T71] swp1: left promiscuous mode [ 2457.101779][ T71] br0: port 1(swp1) entered disabled state [ 2459.539948][T27650] veth0: renamed from veth1 [ 2460.500095][T27668] br0: port 1(swp1) entered blocking state [ 2460.500467][T27668] br0: port 1(swp1) entered disabled state [ 2460.500822][T27668] swp1: entered allmulticast mode [ 2460.502911][T27668] swp1: entered promiscuous mode [ 2460.504142][T27668] br0: port 1(swp1) entered blocking state [ 2460.504474][T27668] br0: port 1(swp1) entered forwarding state [ 2460.701456][T27670] br0: port 2(vx0) entered blocking state [ 2460.701805][T27670] br0: port 2(vx0) entered disabled state [ 2460.702207][T27670] vx0: entered allmulticast mode [ 2460.703718][T27670] vx0: entered promiscuous mode [ 2460.704260][T27670] br0: port 2(vx0) entered blocking state [ 2460.704578][T27670] br0: port 2(vx0) entered forwarding state [ 2461.937681][T27683] br0: port 1(swp1) entered blocking state [ 2461.938036][T27683] br0: port 1(swp1) entered disabled state [ 2461.938935][T27683] swp1: entered allmulticast mode [ 2461.940198][T27683] swp1: entered promiscuous mode [ 2461.941400][T27683] br0: port 1(swp1) entered blocking state [ 2461.941731][T27683] br0: port 1(swp1) entered forwarding state [ 2462.136961][T27685] br0: port 2(vx0) entered blocking state [ 2462.137329][T27685] br0: port 2(vx0) entered disabled state [ 2462.137674][T27685] vx0: entered allmulticast mode [ 2462.138951][T27685] vx0: entered promiscuous mode [ 2462.139623][T27685] br0: port 2(vx0) entered blocking state [ 2462.139942][T27685] 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 ] [ 2469.367233][T14857] 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 ] [ 2476.481170][ T71] vx0: left allmulticast mode [ 2476.481484][ T71] vx0: left promiscuous mode [ 2476.481837][ T71] br0: port 2(vx0) entered disabled state [ 2476.494179][ T71] swp1: left allmulticast mode [ 2476.494462][ T71] swp1: left promiscuous mode [ 2476.494812][ T71] br0: port 1(swp1) entered disabled state [ 2476.732008][ T71] vx0: left allmulticast mode [ 2476.732360][ T71] vx0: left promiscuous mode [ 2476.732738][ T71] br0: port 2(vx0) entered disabled state [ 2476.744023][ T71] swp1: left allmulticast mode [ 2476.744323][ T71] swp1: left promiscuous mode [ 2476.744667][ T71] br0: port 1(swp1) entered disabled state [ 2479.217889][T27872] veth0: renamed from veth1 [ 2480.184826][T27889] br0: port 1(swp1) entered blocking state [ 2480.185206][T27889] br0: port 1(swp1) entered disabled state [ 2480.185565][T27889] swp1: entered allmulticast mode [ 2480.186823][T27889] swp1: entered promiscuous mode [ 2480.188025][T27889] br0: port 1(swp1) entered blocking state [ 2480.188366][T27889] br0: port 1(swp1) entered forwarding state [ 2480.381138][T27891] br0: port 2(vx0) entered blocking state [ 2480.381493][T27891] br0: port 2(vx0) entered disabled state [ 2480.381828][T27891] vx0: entered allmulticast mode [ 2480.383056][T27891] vx0: entered promiscuous mode [ 2480.383706][T27891] br0: port 2(vx0) entered blocking state [ 2480.384021][T27891] br0: port 2(vx0) entered forwarding state [ 2481.584051][T27904] br0: port 1(swp1) entered blocking state [ 2481.585426][T27904] br0: port 1(swp1) entered disabled state [ 2481.586275][T27904] swp1: entered allmulticast mode [ 2481.587606][T27904] swp1: entered promiscuous mode [ 2481.588842][T27904] br0: port 1(swp1) entered blocking state [ 2481.589187][T27904] br0: port 1(swp1) entered forwarding state [ 2481.788704][T27906] br0: port 2(vx0) entered blocking state [ 2481.789060][T27906] br0: port 2(vx0) entered disabled state [ 2481.789418][T27906] vx0: entered allmulticast mode [ 2481.790813][T27906] vx0: entered promiscuous mode [ 2481.791398][T27906] br0: port 2(vx0) entered blocking state [ 2481.791725][T27906] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - ping # ------------------------ [ 2488.666443][T10579] br0: port 1(swp1) entered disabled state [ 2489.669376][T22076] br0: port 1(swp1) entered disabled state # TEST: Ping with backup nexthop ID [ OK ] # TEST: Ping after disabling backup nexthop ID [ OK ] [ 2495.395030][ T71] vx0: left allmulticast mode [ 2495.395372][ T71] vx0: left promiscuous mode [ 2495.395743][ T71] br0: port 2(vx0) entered disabled state [ 2495.407045][ T71] swp1: left allmulticast mode [ 2495.407360][ T71] swp1: left promiscuous mode [ 2495.407710][ T71] br0: port 1(swp1) entered disabled state [ 2495.655993][ T71] vx0: left allmulticast mode [ 2495.656337][ T71] vx0: left promiscuous mode [ 2495.656708][ T71] br0: port 2(vx0) entered disabled state [ 2495.671068][ T71] swp1: left allmulticast mode [ 2495.671400][ T71] swp1: left promiscuous mode [ 2495.671764][ T71] br0: port 1(swp1) entered disabled state [ 2498.089016][T27983] veth0: renamed from veth1 [ 2499.040653][T28000] br0: port 1(swp1) entered blocking state [ 2499.041017][T28000] br0: port 1(swp1) entered disabled state [ 2499.042230][T28000] swp1: entered allmulticast mode [ 2499.043625][T28000] swp1: entered promiscuous mode [ 2499.044837][T28000] br0: port 1(swp1) entered blocking state [ 2499.045177][T28000] br0: port 1(swp1) entered forwarding state [ 2499.229828][T28002] br0: port 2(vx0) entered blocking state [ 2499.230186][T28002] br0: port 2(vx0) entered disabled state [ 2499.230531][T28002] vx0: entered allmulticast mode [ 2499.231752][T28002] vx0: entered promiscuous mode [ 2499.232283][T28002] br0: port 2(vx0) entered blocking state [ 2499.232606][T28002] br0: port 2(vx0) entered forwarding state [ 2500.443569][T28015] br0: port 1(swp1) entered blocking state [ 2500.443928][T28015] br0: port 1(swp1) entered disabled state [ 2500.444299][T28015] swp1: entered allmulticast mode [ 2500.445535][T28015] swp1: entered promiscuous mode [ 2500.446720][T28015] br0: port 1(swp1) entered blocking state [ 2500.447038][T28015] br0: port 1(swp1) entered forwarding state [ 2500.640959][T28017] br0: port 2(vx0) entered blocking state [ 2500.641337][T28017] br0: port 2(vx0) entered disabled state [ 2500.641841][T28017] vx0: entered allmulticast mode [ 2500.643079][T28017] vx0: entered promiscuous mode [ 2500.643615][T28017] br0: port 2(vx0) entered blocking state [ 2500.643934][T28017] br0: port 2(vx0) entered forwarding state # # Backup nexthop ID - torture test # -------------------------------- [ 2506.680630][T22076] br0: port 1(swp1) entered disabled state # TEST: Torture test [ OK ] [ 2536.928055][ T71] vx0: left allmulticast mode [ 2536.928374][ T71] vx0: left promiscuous mode [ 2536.928734][ T71] br0: port 2(vx0) entered disabled state [ 2536.941136][ T71] swp1: left allmulticast mode [ 2536.941422][ T71] swp1: left promiscuous mode [ 2536.941764][ T71] br0: port 1(swp1) entered disabled state [ 2537.177073][ T71] vx0: left allmulticast mode [ 2537.177391][ T71] vx0: left promiscuous mode [ 2537.177742][ T71] br0: port 2(vx0) entered disabled state [ 2537.196404][ T71] swp1: left allmulticast mode [ 2537.196714][ T71] swp1: left promiscuous mode [ 2537.197151][ T71] 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__->