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.58 [+0.58] # 0.58 [+0.00] Single path route test # 1.77 [+1.19] Start point # 1.89 [+0.11] TEST: IPv4 fibmatch [ OK ] # 2.00 [+0.12] TEST: IPv6 fibmatch [ OK ] # 2.15 [+0.15] Nexthop device deleted # 2.26 [+0.11] TEST: IPv4 fibmatch - no route [ OK ] # 2.37 [+0.11] TEST: IPv6 fibmatch - no route [ OK ] # 3.06 [+0.70] # 3.07 [+0.00] Multipath route test # 5.26 [+2.19] Start point # 5.37 [+0.11] TEST: IPv4 fibmatch [ OK ] # 5.48 [+0.11] TEST: IPv6 fibmatch [ OK ] # 5.61 [+0.13] One nexthop device deleted # 5.73 [+0.12] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.83 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 6.00 [+0.17] Second nexthop device deleted # 6.11 [+0.11] TEST: IPv6 - no route [ OK ] # 6.82 [+0.71] # 6.82 [+0.00] Single path, admin down # 8.35 [+1.53] Start point # 8.47 [+0.12] TEST: IPv4 fibmatch [ OK ] # 8.57 [+0.10] TEST: IPv6 fibmatch [ OK ] # 8.68 [+0.11] Route deleted on down # 8.80 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.91 [+0.11] TEST: IPv6 fibmatch [ OK ] # 9.47 [+0.56] # 9.47 [+0.00] Admin down multipath # 11.66 [+2.19] Verify start point # 11.78 [+0.12] TEST: IPv4 fibmatch [ OK ] # 11.91 [+0.13] TEST: IPv6 fibmatch [ OK ] # 12.02 [+0.11] One device down, one up # 12.13 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.25 [+0.13] TEST: IPv6 fibmatch on down device [ OK ] # 12.36 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.47 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 12.59 [+0.13] TEST: IPv4 flags on down device [ OK ] # 12.72 [+0.12] TEST: IPv6 flags on down device [ OK ] # 12.85 [+0.13] TEST: IPv4 flags on up device [ OK ] # 12.98 [+0.13] TEST: IPv6 flags on up device [ OK ] # 13.20 [+0.22] Other device down and up # 13.30 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 13.42 [+0.12] TEST: IPv6 fibmatch on down device [ OK ] # 13.54 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 13.63 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 13.77 [+0.14] TEST: IPv4 flags on down device [ OK ] # 13.91 [+0.13] TEST: IPv6 flags on down device [ OK ] # 14.05 [+0.14] TEST: IPv4 flags on up device [ OK ] # 14.19 [+0.14] TEST: IPv6 flags on up device [ OK ] # 14.30 [+0.12] Both devices down # 14.40 [+0.10] TEST: IPv4 fibmatch [ OK ] # 14.52 [+0.12] TEST: IPv6 fibmatch [ OK ] # 15.27 [+0.75] # 15.28 [+0.00] Local carrier tests - single path # 16.93 [+1.65] Start point # 17.03 [+0.10] TEST: IPv4 fibmatch [ OK ] # 17.15 [+0.12] TEST: IPv6 fibmatch [ OK ] # 17.25 [+0.10] TEST: IPv4 - no linkdown flag [ OK ] # 17.38 [+0.12] TEST: IPv6 - no linkdown flag [ OK ] # 18.56 [+1.18] Carrier off on nexthop # 18.66 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.79 [+0.13] TEST: IPv6 fibmatch [ OK ] # 18.90 [+0.11] TEST: IPv4 - linkdown flag set [ OK ] # 19.03 [+0.13] TEST: IPv6 - linkdown flag set [ OK ] # 19.24 [+0.21] Route to local address with carrier down # 19.36 [+0.11] TEST: IPv4 fibmatch [ OK ] # 19.48 [+0.12] TEST: IPv6 fibmatch [ OK ] # 19.59 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 19.72 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 20.30 [+0.57] # 20.30 [+0.00] Single path route carrier test # 21.91 [+1.62] Start point # 22.03 [+0.11] TEST: IPv4 fibmatch [ OK ] # 22.14 [+0.11] TEST: IPv6 fibmatch [ OK ] # 22.27 [+0.14] TEST: IPv4 no linkdown flag [ OK ] # 22.41 [+0.13] TEST: IPv6 no linkdown flag [ OK ] # 23.59 [+1.18] Carrier down # 23.70 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.81 [+0.11] TEST: IPv6 fibmatch [ OK ] # 23.92 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 24.03 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 24.24 [+0.21] Second address added with carrier down # 24.36 [+0.12] TEST: IPv4 fibmatch [ OK ] # 24.47 [+0.11] TEST: IPv6 fibmatch [ OK ] # 24.58 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 24.71 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 29.91 [+5.21] # 29.92 [+0.00] IPv4 nexthop tests # 29.92 [+0.00] <<< write me >>> # 30.24 [+0.32] # 30.24 [+0.00] IPv6 nexthop tests # 30.35 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 30.48 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 30.59 [+0.11] TEST: Gateway is linklocal address [ OK ] # 30.72 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 30.84 [+0.12] TEST: Gateway can not be local unicast address [ OK ] # 30.96 [+0.12] TEST: Gateway can not be local unicast address, with device [ OK ] # 31.11 [+0.14] TEST: Gateway can not be a local linklocal address [ OK ] # 31.22 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 31.35 [+0.12] TEST: Gateway can be local address in a VRF, with device [ OK ] # 31.47 [+0.12] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 31.60 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 31.72 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 31.85 [+0.13] TEST: VRF route, gateway can not be a local address [ OK ] # 31.99 [+0.14] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 33.23 [+1.24] # 33.23 [+0.00] FIB rule with suppress_prefixlength # 35.57 [+2.33] TEST: FIB rule suppress test [ OK ] # 37.68 [+2.12] # 37.68 [+0.00] Fib6 info length calculation in route notify test # 42.40 [+4.72] TEST: ipv6 route add notify [ OK ] # 44.53 [+2.13] # 44.53 [+0.00] Fib4 info length calculation in route notify test # 49.18 [+4.65] TEST: ipv4 route add notify [ OK ] # 54.99 [+5.81] # 54.99 [+0.00] IPv6 route add / append tests # 55.48 [+0.48] TEST: Attempt to add duplicate route - gw [ OK ] # 55.98 [+0.50] TEST: Attempt to add duplicate route - dev only [ OK ] # 56.47 [+0.49] TEST: Attempt to add duplicate route - reject route [ OK ] # 57.07 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 57.59 [+0.51] TEST: Add multipath route [ OK ] # 58.06 [+0.48] TEST: Attempt to add duplicate multipath route [ OK ] # 58.68 [+0.62] TEST: Route add with different metrics [ OK ] # 58.96 [+0.28] TEST: Route delete with metric [ OK ] # 58.97 [+0.00] # 58.97 [+0.00] IPv6 route replace tests # 59.58 [+0.62] TEST: Single path with single path [ OK ] # 60.21 [+0.63] TEST: Single path with multipath [ OK ] # 60.84 [+0.63] TEST: Single path with single path via multipath attribute [ OK ] # 61.45 [+0.61] TEST: Invalid nexthop [ OK ] # 61.93 [+0.48] TEST: Single path - replace of non-existent route [ OK ] # 62.56 [+0.63] TEST: Multipath with multipath [ OK ] # 63.18 [+0.63] TEST: Multipath with single path [ OK ] # 63.77 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 64.41 [+0.64] TEST: Multipath with dev-only [ OK ] # 65.05 [+0.64] TEST: Multipath - invalid first nexthop [ OK ] # 65.70 [+0.65] TEST: Multipath - invalid second nexthop [ OK ] # 66.19 [+0.50] TEST: Multipath - replace of non-existent route [ OK ] # 66.19 [+0.00] # 66.19 [+0.00] IPv6 route with dsfield tests # 66.44 [+0.25] TEST: Reject route with dsfield [ OK ] # 74.57 [+8.13] # 74.57 [+0.00] IPv4 route add / append tests # 75.07 [+0.50] TEST: Attempt to add duplicate route - gw [ OK ] # 75.55 [+0.47] TEST: Attempt to add duplicate route - dev only [ OK ] # 76.04 [+0.49] TEST: Attempt to add duplicate route - reject route [ OK ] # 76.62 [+0.58] TEST: Add new nexthop for existing prefix [ OK ] # 77.22 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 77.85 [+0.63] TEST: Append nexthop to existing route - dev only [ OK ] # 78.46 [+0.61] TEST: Append nexthop to existing route - reject route [ OK ] # 78.96 [+0.51] TEST: Append nexthop to existing reject route - gw [ OK ] # 79.47 [+0.51] TEST: Append nexthop to existing reject route - dev only [ OK ] # 79.95 [+0.48] TEST: add multipath route [ OK ] # 80.43 [+0.48] TEST: Attempt to add duplicate multipath route [ OK ] # 81.01 [+0.58] TEST: Route add with different metrics [ OK ] # 81.26 [+0.26] TEST: Route delete with metric [ OK ] # 81.27 [+0.01] # 81.27 [+0.00] IPv4 route replace tests # 81.86 [+0.59] TEST: Single path with single path [ OK ] # 82.47 [+0.60] TEST: Single path with multipath [ OK ] # 83.09 [+0.62] TEST: Single path with reject route [ OK ] # 83.69 [+0.60] TEST: Single path with single path via multipath attribute [ OK ] # 84.28 [+0.59] TEST: Invalid nexthop [ OK ] # 84.77 [+0.49] TEST: Single path - replace of non-existent route [ OK ] # 85.38 [+0.60] TEST: Multipath with multipath [ OK ] # 85.97 [+0.60] TEST: Multipath with single path [ OK ] # 86.58 [+0.60] TEST: Multipath with single path via multipath attribute [ OK ] # 87.20 [+0.62] TEST: Multipath with reject route [ OK ] # 87.80 [+0.60] TEST: Multipath - invalid first nexthop [ OK ] # 88.43 [+0.62] TEST: Multipath - invalid second nexthop [ OK ] # 88.92 [+0.49] TEST: Multipath - replace of non-existent route [ OK ] # 90.84 [+1.92] TEST: Cached route removed from VRF port device [ OK ] # 90.84 [+0.00] # 90.84 [+0.00] IPv4 route with dsfield tests # 91.09 [+0.25] TEST: Reject route with dsfield 0x01 [ OK ] # 91.21 [+0.12] TEST: Reject route with dsfield 0x02 [ OK ] # 91.35 [+0.14] TEST: Reject route with dsfield 0x03 [ OK ] # 91.71 [+0.36] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 91.82 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 91.94 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 92.05 [+0.11] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 92.17 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 92.31 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 92.42 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 92.52 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 92.64 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 92.75 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 92.85 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 92.95 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 95.21 [+2.26] # 95.21 [+0.00] IPv6 prefix route tests # 97.76 [+2.55] TEST: Default metric [ OK ] # 98.14 [+0.38] TEST: User specified metric on first device [ OK ] # 98.56 [+0.42] TEST: User specified metric on second device [ OK ] # 98.81 [+0.25] TEST: Delete of address on first device [ OK ] # 99.06 [+0.26] TEST: Modify metric of address [ OK ] # 99.47 [+0.41] TEST: Prefix route removed on link down [ OK ] # 99.74 [+0.27] TEST: Prefix route with metric on link up [ OK ] # 100.14 [+0.40] TEST: Set metric with peer route on local side [ OK ] # 100.27 [+0.13] TEST: Set metric with peer route on peer side [ OK ] # 100.53 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 100.67 [+0.15] TEST: Modify metric and peer address on peer side [ OK ] # 101.94 [+1.27] # 101.94 [+0.00] IPv4 prefix route tests # 104.47 [+2.53] TEST: Default metric [ OK ] # 104.86 [+0.39] TEST: User specified metric on first device [ OK ] # 105.23 [+0.38] TEST: User specified metric on second device [ OK ] # 105.48 [+0.25] TEST: Delete of address on first device [ OK ] # 105.73 [+0.25] TEST: Modify metric of address [ OK ] # 105.97 [+0.24] TEST: Prefix route removed on link down [ OK ] # 106.22 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 106.71 [+0.49] TEST: Modify metric of .0/24 address [ OK ] # 107.09 [+0.37] TEST: Set metric of address with peer route [ OK ] # 107.34 [+0.26] TEST: Modify metric and peer address for peer route [ OK ] # 108.58 [+1.24] # 108.58 [+0.00] IPv6 routes with metrics # 114.98 [+6.40] TEST: Single path route with mtu metric [ OK ] # 115.44 [+0.46] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 115.94 [+0.50] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 116.17 [+0.24] TEST: MTU of second leg [ OK ] # 116.46 [+0.29] TEST: Multipath route with mtu metric [ OK ] # 116.76 [+0.30] TEST: Using route with mtu metric [ OK ] # 116.97 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 119.16 [+2.19] # 119.16 [+0.00] IPv4 route add / append tests # 125.29 [+6.14] TEST: Single path route with mtu metric [ OK ] # 125.55 [+0.26] TEST: Multipath route with mtu metric [ OK ] # 125.87 [+0.32] TEST: Using route with mtu metric [ OK ] # 126.08 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 128.13 [+2.05] # 128.13 [+0.00] IPv4 route with IPv6 gateway tests # 136.25 [+8.12] TEST: Single path route with IPv6 gateway [ OK ] # 136.58 [+0.33] TEST: Single path route with IPv6 gateway - ping [ OK ] # 136.70 [+0.12] TEST: Single path route delete [ OK ] # 136.93 [+0.23] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 137.18 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 137.31 [+0.14] TEST: Multipath route delete exact match [ OK ] # 137.44 [+0.13] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 137.69 [+0.25] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 137.81 [+0.12] TEST: Multipath route delete exact match [ OK ] # 140.02 [+2.21] # 140.02 [+0.00] IPv4 rp_filter tests # 147.89 [+7.87] TEST: rp_filter passes local packets [ OK ] # 148.09 [+0.20] TEST: rp_filter passes loopback packets [ OK ] # 149.09 [+1.01] # 149.09 [+0.00] IPv4 delete address route tests # 153.03 [+3.94] Regular FIB info # 153.27 [+0.24] TEST: Route removed from VRF when source address deleted [ OK ] # 153.38 [+0.11] TEST: Route in default VRF not removed [ OK ] # 153.82 [+0.44] TEST: Route removed in default VRF when source address deleted [ OK ] # 153.94 [+0.12] TEST: Route in VRF is not removed by address delete [ OK ] # 153.95 [+0.00] Identical FIB info with different table ID # 154.16 [+0.21] TEST: Route removed from VRF when source address deleted [ OK ] # 154.29 [+0.13] TEST: Route in default VRF not removed [ OK ] # 154.74 [+0.46] TEST: Route removed in default VRF when source address deleted [ OK ] # 154.86 [+0.12] TEST: Route in VRF is not removed by address delete [ OK ] # 154.87 [+0.00] Table ID 0 # 155.09 [+0.23] TEST: Route removed in default VRF when source address deleted [ OK ] # 156.42 [+1.33] # 156.42 [+0.00] IPv6 delete address route tests # 162.94 [+6.52] Single device using src address # 163.20 [+0.26] TEST: Prefsrc removed when src address removed on other device [ OK ] # 163.20 [+0.00] Two devices with the same source address # 163.45 [+0.25] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 163.69 [+0.24] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 163.69 [+0.00] VRF with single device using src address # 163.89 [+0.21] TEST: Prefsrc removed when src address removed on other device [ OK ] # 163.90 [+0.00] VRF with two devices using src address # 164.10 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 164.36 [+0.26] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 164.36 [+0.00] src address and nexthop dev in same VRF # 164.59 [+0.23] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 164.70 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 165.15 [+0.45] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 165.29 [+0.13] TEST: Prefsrc in default VRF removed [ OK ] # 165.29 [+0.00] src address and nexthop device in different VRF # 165.50 [+0.21] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 165.62 [+0.12] TEST: Prefsrc not removed in default VRF [ OK ] # 165.97 [+0.35] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 166.08 [+0.12] TEST: Prefsrc removed in default VRF [ OK ] # 166.09 [+0.00] Table ID 0 # 166.33 [+0.24] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 166.33 [+0.00] Link local source route # 166.57 [+0.24] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 166.82 [+0.25] TEST: Prefsrc removed when delete ll addr [ OK ] # 166.97 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 167.30 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 169.30 [+2.00] # 169.30 [+0.00] IPv4 mangling tests # 179.15 [+9.85] TEST: Connection with correct parameters [ OK ] # 179.40 [+0.26] TEST: Connection with incorrect parameters [ OK ] # 180.58 [+1.18] TEST: Connection with correct parameters - mangling [ OK ] # 181.55 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 181.63 [+0.08] TEST: Connection check - server side [ OK ] # 184.22 [+2.59] # 184.22 [+0.00] IPv6 mangling tests # 193.54 [+9.32] TEST: Connection with correct parameters [ OK ] # 193.81 [+0.27] TEST: Connection with incorrect parameters [ OK ] # 194.78 [+0.97] TEST: Connection with correct parameters - mangling [ OK ] # 195.78 [+1.01] TEST: Connection with correct parameters - no mangling [ OK ] # 195.88 [+0.10] TEST: Connection check - server side [ OK ] # 198.48 [+2.60] # 198.48 [+0.00] IPv4 broadcast neighbour tests # 201.51 [+3.04] TEST: Resolved neighbour for broadcast address [ OK ] # 201.63 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 201.77 [+0.13] TEST: Unresolved neighbour for broadcast address [ OK ] # 201.89 [+0.12] TEST: Unresolved neighbour for network broadcast address [ OK ] # 204.44 [+2.55] # 204.44 [+0.00] Fib6 garbage collection test # 218.21 [+13.76] TEST: ipv6 route garbage collection [ OK ] # 232.19 [+13.98] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 246.14 [+13.95] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 260.30 [+14.16] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 275.11 [+14.81] TEST: ipv6 route garbage collection (RA message) [ OK ] # 276.06 [+0.95] # 276.06 [+0.00] IPv4 multipath list receive tests # 295.63 [+19.58] TEST: Multipath route hit ratio (1.00) [ OK ] # 297.87 [+2.24] # 297.87 [+0.00] IPv6 multipath list receive tests # 316.63 [+18.75] TEST: Multipath route hit ratio (1.00) [ OK ] # 318.91 [+2.29] # 318.91 [+0.00] Tests passed: 229 # 318.91 [+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__->