make -C tools/testing/selftests TARGETS="net" TEST_PROGS=fib_tests.sh TESTT_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: fib_tests.sh # 0.33 [+0.33] # 0.33 [+0.00] Single path route test # 1.10 [+0.77] Start point # 1.17 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.24 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.36 [+0.12] Nexthop device deleted # 1.44 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.50 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.95 [+0.45] # 1.95 [+0.00] Multipath route test # 3.36 [+1.41] Start point # 3.44 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.51 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.62 [+0.11] One nexthop device deleted # 3.69 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.77 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 3.88 [+0.11] Second nexthop device deleted # 3.96 [+0.07] TEST: IPv6 - no route [ OK ] # 4.41 [+0.45] # 4.41 [+0.00] Single path, admin down # 5.38 [+0.97] Start point # 5.46 [+0.08] TEST: IPv4 fibmatch [ OK ] # 5.53 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.60 [+0.07] Route deleted on down # 5.67 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.73 [+0.07] TEST: IPv6 fibmatch [ OK ] # 6.12 [+0.39] # 6.12 [+0.00] Admin down multipath # 7.54 [+1.42] Verify start point # 7.61 [+0.07] TEST: IPv4 fibmatch [ OK ] # 7.68 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.76 [+0.07] One device down, one up # 7.82 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 7.89 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 7.96 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.03 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.11 [+0.08] TEST: IPv4 flags on down device [ OK ] # 8.20 [+0.09] TEST: IPv6 flags on down device [ OK ] # 8.28 [+0.08] TEST: IPv4 flags on up device [ OK ] # 8.36 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.50 [+0.14] Other device down and up # 8.57 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.65 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 8.73 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 8.81 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.89 [+0.08] TEST: IPv4 flags on down device [ OK ] # 8.97 [+0.08] TEST: IPv6 flags on down device [ OK ] # 9.04 [+0.07] TEST: IPv4 flags on up device [ OK ] # 9.12 [+0.08] TEST: IPv6 flags on up device [ OK ] # 9.19 [+0.07] Both devices down # 9.26 [+0.07] TEST: IPv4 fibmatch [ OK ] # 9.33 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.83 [+0.50] # 9.83 [+0.00] Local carrier tests - single path # 10.85 [+1.02] Start point # 10.92 [+0.07] TEST: IPv4 fibmatch [ OK ] # 11.00 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.08 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 11.15 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 12.26 [+1.11] Carrier off on nexthop # 12.34 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.42 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.48 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.56 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 12.70 [+0.14] Route to local address with carrier down # 12.77 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.84 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.91 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 12.98 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 13.38 [+0.40] # 13.38 [+0.00] Single path route carrier test # 14.42 [+1.04] Start point # 14.48 [+0.06] TEST: IPv4 fibmatch [ OK ] # 14.55 [+0.07] TEST: IPv6 fibmatch [ OK ] # 14.62 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 14.71 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 15.81 [+1.10] Carrier down # 15.89 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.96 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.04 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 16.12 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 16.25 [+0.14] Second address added with carrier down # 16.32 [+0.06] TEST: IPv4 fibmatch [ OK ] # 16.40 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.47 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 16.56 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 20.29 [+3.73] # 20.29 [+0.00] IPv4 nexthop tests # 20.29 [+0.00] <<< write me >>> # 20.49 [+0.21] # 20.49 [+0.00] IPv6 nexthop tests # 20.58 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 20.66 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.73 [+0.07] TEST: Gateway is linklocal address [ OK ] # 20.82 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 20.90 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 20.97 [+0.08] TEST: Gateway can not be local unicast address, with device [ OK ] # 21.05 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 21.14 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 21.22 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 21.29 [+0.07] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 21.37 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 21.46 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 21.53 [+0.07] TEST: VRF route, gateway can not be a local address [ OK ] # 21.61 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 22.43 [+0.82] # 22.43 [+0.00] FIB rule with suppress_prefixlength # 23.92 [+1.49] TEST: FIB rule suppress test [ OK ] # 25.26 [+1.34] # 25.26 [+0.00] Fib6 info length calculation in route notify test # 28.94 [+3.68] TEST: ipv6 route add notify [ OK ] # 30.30 [+1.36] # 30.30 [+0.00] Fib4 info length calculation in route notify test # 33.99 [+3.69] TEST: ipv4 route add notify [ OK ] # 37.78 [+3.79] # 37.78 [+0.00] IPv6 route add / append tests # 38.11 [+0.33] TEST: Attempt to add duplicate route - gw [ OK ] # 38.41 [+0.30] TEST: Attempt to add duplicate route - dev only [ OK ] # 38.72 [+0.31] TEST: Attempt to add duplicate route - reject route [ OK ] # 39.12 [+0.40] TEST: Append nexthop to existing route - gw [ OK ] # 39.44 [+0.32] TEST: Add multipath route [ OK ] # 39.74 [+0.30] TEST: Attempt to add duplicate multipath route [ OK ] # 40.12 [+0.38] TEST: Route add with different metrics [ OK ] # 40.29 [+0.17] TEST: Route delete with metric [ OK ] # 40.29 [+0.00] # 40.29 [+0.00] IPv6 route replace tests # 40.67 [+0.38] TEST: Single path with single path [ OK ] # 41.08 [+0.40] TEST: Single path with multipath [ OK ] # 41.48 [+0.40] TEST: Single path with single path via multipath attribute [ OK ] # 41.85 [+0.37] TEST: Invalid nexthop [ OK ] # 42.16 [+0.31] TEST: Single path - replace of non-existent route [ OK ] # 42.55 [+0.39] TEST: Multipath with multipath [ OK ] # 42.94 [+0.38] TEST: Multipath with single path [ OK ] # 43.32 [+0.38] TEST: Multipath with single path via multipath attribute [ OK ] # 43.73 [+0.41] TEST: Multipath with dev-only [ OK ] # 44.12 [+0.39] TEST: Multipath - invalid first nexthop [ OK ] # 44.52 [+0.40] TEST: Multipath - invalid second nexthop [ OK ] # 44.83 [+0.31] TEST: Multipath - replace of non-existent route [ OK ] # 44.83 [+0.00] # 44.83 [+0.00] IPv6 route with dsfield tests # 44.99 [+0.16] TEST: Reject route with dsfield [ OK ] # 50.30 [+5.32] # 50.30 [+0.00] IPv4 route add / append tests # 50.62 [+0.32] TEST: Attempt to add duplicate route - gw [ OK ] # 50.94 [+0.32] TEST: Attempt to add duplicate route - dev only [ OK ] # 51.25 [+0.31] TEST: Attempt to add duplicate route - reject route [ OK ] # 51.65 [+0.40] TEST: Add new nexthop for existing prefix [ OK ] # 52.07 [+0.42] TEST: Append nexthop to existing route - gw [ OK ] # 52.46 [+0.39] TEST: Append nexthop to existing route - dev only [ OK ] # 52.87 [+0.41] TEST: Append nexthop to existing route - reject route [ OK ] # 53.18 [+0.31] TEST: Append nexthop to existing reject route - gw [ OK ] # 53.51 [+0.32] TEST: Append nexthop to existing reject route - dev only [ OK ] # 53.82 [+0.31] TEST: add multipath route [ OK ] # 54.13 [+0.31] TEST: Attempt to add duplicate multipath route [ OK ] # 54.52 [+0.38] TEST: Route add with different metrics [ OK ] # 54.67 [+0.15] TEST: Route delete with metric [ OK ] # 54.67 [+0.00] # 54.67 [+0.00] IPv4 route replace tests # 55.07 [+0.40] TEST: Single path with single path [ OK ] # 55.45 [+0.38] TEST: Single path with multipath [ OK ] # 55.84 [+0.39] TEST: Single path with reject route [ OK ] # 56.24 [+0.40] TEST: Single path with single path via multipath attribute [ OK ] # 56.63 [+0.39] TEST: Invalid nexthop [ OK ] # 56.93 [+0.30] TEST: Single path - replace of non-existent route [ OK ] # 57.32 [+0.39] TEST: Multipath with multipath [ OK ] # 57.69 [+0.37] TEST: Multipath with single path [ OK ] # 58.09 [+0.39] TEST: Multipath with single path via multipath attribute [ OK ] # 58.47 [+0.38] TEST: Multipath with reject route [ OK ] # 58.84 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 59.23 [+0.38] TEST: Multipath - invalid second nexthop [ OK ] # 59.54 [+0.31] TEST: Multipath - replace of non-existent route [ OK ] # 60.78 [+1.25] TEST: Cached route removed from VRF port device [ OK ] # 60.79 [+0.00] # 60.79 [+0.00] IPv4 route with dsfield tests # 60.94 [+0.16] TEST: Reject route with dsfield 0x01 [ OK ] # 61.04 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 61.11 [+0.07] TEST: Reject route with dsfield 0x03 [ OK ] # 61.35 [+0.23] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 61.42 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 61.51 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 61.59 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 61.65 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 61.74 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 61.83 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 61.90 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 61.98 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 62.05 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 62.13 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 62.19 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 63.74 [+1.54] # 63.74 [+0.00] IPv6 prefix route tests # 65.36 [+1.62] TEST: Default metric [ OK ] # 65.61 [+0.25] TEST: User specified metric on first device [ OK ] # 65.86 [+0.25] TEST: User specified metric on second device [ OK ] # 66.03 [+0.17] TEST: Delete of address on first device [ OK ] # 66.18 [+0.15] TEST: Modify metric of address [ OK ] # 66.43 [+0.25] TEST: Prefix route removed on link down [ OK ] # 66.60 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 66.84 [+0.24] TEST: Set metric with peer route on local side [ OK ] # 66.92 [+0.08] TEST: Set metric with peer route on peer side [ OK ] # 67.08 [+0.16] TEST: Modify metric and peer address on local side [ OK ] # 67.16 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 68.04 [+0.89] # 68.04 [+0.00] IPv4 prefix route tests # 69.62 [+1.58] TEST: Default metric [ OK ] # 69.87 [+0.25] TEST: User specified metric on first device [ OK ] # 70.10 [+0.22] TEST: User specified metric on second device [ OK ] # 70.26 [+0.16] TEST: Delete of address on first device [ OK ] # 70.42 [+0.16] TEST: Modify metric of address [ OK ] # 70.57 [+0.15] TEST: Prefix route removed on link down [ OK ] # 70.74 [+0.17] TEST: Prefix route with metric on link up [ OK ] # 71.05 [+0.31] TEST: Modify metric of .0/24 address [ OK ] # 71.30 [+0.25] TEST: Set metric of address with peer route [ OK ] # 71.46 [+0.16] TEST: Modify metric and peer address for peer route [ OK ] # 72.28 [+0.82] # 72.28 [+0.00] IPv6 routes with metrics # 76.12 [+3.83] TEST: Single path route with mtu metric [ OK ] # 76.36 [+0.25] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 76.60 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 76.77 [+0.16] TEST: MTU of second leg [ OK ] # 76.93 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 77.11 [+0.18] TEST: Using route with mtu metric [ OK ] # 77.24 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 78.73 [+1.49] # 78.73 [+0.00] IPv4 route add / append tests # 82.60 [+3.87] TEST: Single path route with mtu metric [ OK ] # 82.76 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 82.95 [+0.19] TEST: Using route with mtu metric [ OK ] # 83.09 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 84.61 [+1.52] # 84.61 [+0.00] IPv4 route with IPv6 gateway tests # 90.41 [+5.80] TEST: Single path route with IPv6 gateway [ OK ] # 90.62 [+0.21] TEST: Single path route with IPv6 gateway - ping [ OK ] # 90.70 [+0.08] TEST: Single path route delete [ OK ] # 90.85 [+0.15] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 91.01 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 91.09 [+0.09] TEST: Multipath route delete exact match [ OK ] # 91.18 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 91.33 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 91.41 [+0.08] TEST: Multipath route delete exact match [ OK ] # 92.93 [+1.51] # 92.93 [+0.00] IPv4 rp_filter tests # 97.92 [+4.99] TEST: rp_filter passes local packets [ OK ] # 98.04 [+0.12] TEST: rp_filter passes loopback packets [ OK ] # 98.69 [+0.66] # 98.69 [+0.00] IPv4 delete address route tests # 101.02 [+2.32] Regular FIB info # 101.17 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 101.24 [+0.07] TEST: Route in default VRF not removed [ OK ] # 101.53 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 101.59 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 101.59 [+0.00] Identical FIB info with different table ID # 101.74 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 101.82 [+0.08] TEST: Route in default VRF not removed [ OK ] # 102.10 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 102.17 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 102.17 [+0.00] Table ID 0 # 102.30 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 103.13 [+0.83] # 103.13 [+0.00] IPv6 delete address route tests # 107.14 [+4.01] Single device using src address # 107.29 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 107.29 [+0.00] Two devices with the same source address # 107.44 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 107.58 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 107.58 [+0.00] VRF with single device using src address # 107.72 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 107.73 [+0.00] VRF with two devices using src address # 107.87 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 108.00 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 108.00 [+0.00] src address and nexthop dev in same VRF # 108.15 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 108.22 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 108.51 [+0.29] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 108.57 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 108.58 [+0.00] src address and nexthop device in different VRF # 108.72 [+0.14] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 108.80 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 109.01 [+0.22] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 109.09 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 109.09 [+0.00] Table ID 0 # 109.24 [+0.14] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 109.24 [+0.00] Link local source route # 109.38 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 109.53 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 109.62 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 109.83 [+0.21] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 111.18 [+1.35] # 111.18 [+0.00] IPv4 mangling tests # 118.01 [+6.84] TEST: Connection with correct parameters [ OK ] # 118.16 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 119.06 [+0.90] TEST: Connection with correct parameters - mangling [ OK ] # 119.87 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 119.92 [+0.05] TEST: Connection check - server side [ OK ] # 121.72 [+1.80] # 121.72 [+0.00] IPv6 mangling tests # 128.47 [+6.75] TEST: Connection with correct parameters [ OK ] # 128.64 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 129.43 [+0.80] TEST: Connection with correct parameters - mangling [ OK ] # 130.24 [+0.80] TEST: Connection with correct parameters - no mangling [ OK ] # 130.30 [+0.06] TEST: Connection check - server side [ OK ] # 131.99 [+1.70] # 131.99 [+0.00] IPv4 broadcast neighbour tests # 133.97 [+1.98] TEST: Resolved neighbour for broadcast address [ OK ] # 134.05 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 134.13 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 134.21 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 135.82 [+1.62] # 135.82 [+0.00] Fib6 garbage collection test # 148.89 [+13.07] TEST: ipv6 route garbage collection [ OK ] # 162.21 [+13.33] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 175.48 [+13.27] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 188.87 [+13.39] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 202.96 [+14.09] TEST: ipv6 route garbage collection (RA message) [ OK ] # 203.61 [+0.64] # 203.61 [+0.00] IPv4 multipath list receive tests # 215.54 [+11.94] TEST: Multipath route hit ratio (1.00) [ OK ] # 217.11 [+1.56] # 217.11 [+0.00] IPv6 multipath list receive tests # 228.84 [+11.73] TEST: Multipath route hit ratio (1.00) [ OK ] # 230.42 [+1.58] # 230.42 [+0.00] Tests passed: 229 # 230.42 [+0.00] Tests failed: 0 ok 1 selftests: net: fib_tests.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__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->