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.37 [+0.37] # 0.37 [+0.00] Single path route test # 1.24 [+0.87] Start point # 1.32 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.40 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.52 [+0.12] Nexthop device deleted # 1.61 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 1.69 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.20 [+0.52] # 2.21 [+0.00] Multipath route test # 3.82 [+1.61] Start point # 3.91 [+0.09] TEST: IPv4 fibmatch [ OK ] # 3.99 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.11 [+0.12] One nexthop device deleted # 4.19 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.27 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.39 [+0.12] Second nexthop device deleted # 4.48 [+0.09] TEST: IPv6 - no route [ OK ] # 4.99 [+0.51] # 4.99 [+0.00] Single path, admin down # 6.09 [+1.10] Start point # 6.17 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.25 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.32 [+0.08] Route deleted on down # 6.40 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.49 [+0.09] TEST: IPv6 fibmatch [ OK ] # 7.10 [+0.61] # 7.10 [+0.00] Admin down multipath # 8.88 [+1.78] Verify start point # 8.97 [+0.10] TEST: IPv4 fibmatch [ OK ] # 9.07 [+0.09] TEST: IPv6 fibmatch [ OK ] # 9.17 [+0.10] One device down, one up # 9.26 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 9.36 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 9.45 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 9.54 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 9.62 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.73 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.83 [+0.10] TEST: IPv4 flags on up device [ OK ] # 9.93 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.11 [+0.18] Other device down and up # 10.18 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 10.28 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 10.38 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 10.46 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.55 [+0.09] TEST: IPv4 flags on down device [ OK ] # 10.65 [+0.09] TEST: IPv6 flags on down device [ OK ] # 10.75 [+0.10] TEST: IPv4 flags on up device [ OK ] # 10.83 [+0.08] TEST: IPv6 flags on up device [ OK ] # 10.91 [+0.07] Both devices down # 10.99 [+0.09] TEST: IPv4 fibmatch [ OK ] # 11.07 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.64 [+0.57] # 11.64 [+0.00] Local carrier tests - single path # 12.81 [+1.17] Start point # 12.89 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.98 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.06 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 13.16 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 14.31 [+1.15] Carrier off on nexthop # 14.40 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.49 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.57 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 14.66 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 14.84 [+0.18] Route to local address with carrier down # 14.93 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.02 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.10 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 15.21 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 15.69 [+0.48] # 15.69 [+0.00] Single path route carrier test # 16.90 [+1.21] Start point # 16.99 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.07 [+0.08] TEST: IPv6 fibmatch [ OK ] # 17.14 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 17.23 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 18.35 [+1.12] Carrier down # 18.44 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.50 [+0.06] TEST: IPv6 fibmatch [ OK ] # 18.59 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.66 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 18.82 [+0.16] Second address added with carrier down # 18.89 [+0.07] TEST: IPv4 fibmatch [ OK ] # 18.97 [+0.08] TEST: IPv6 fibmatch [ OK ] # 19.04 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 19.14 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 23.89 [+4.75] # 23.89 [+0.00] IPv4 nexthop tests # 23.89 [+0.00] <<< write me >>> # 24.19 [+0.30] # 24.19 [+0.00] IPv6 nexthop tests # 24.29 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 24.40 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 24.51 [+0.11] TEST: Gateway is linklocal address [ OK ] # 24.61 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 24.71 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 24.86 [+0.14] TEST: Gateway can not be local unicast address, with device [ OK ] # 24.95 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 25.07 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 25.17 [+0.10] TEST: Gateway can be local address in a VRF, with device [ OK ] # 25.28 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 25.38 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 25.49 [+0.11] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 25.59 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 25.69 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 26.88 [+1.19] # 26.88 [+0.00] FIB rule with suppress_prefixlength # 29.50 [+2.63] TEST: FIB rule suppress test [ OK ] # 31.87 [+2.37] # 31.87 [+0.00] Fib6 info length calculation in route notify test # 36.71 [+4.83] TEST: ipv6 route add notify [ OK ] # 38.76 [+2.05] # 38.76 [+0.00] Fib4 info length calculation in route notify test # 43.32 [+4.56] TEST: ipv4 route add notify [ OK ] # 48.91 [+5.59] # 48.91 [+0.00] IPv6 route add / append tests # 49.42 [+0.50] TEST: Attempt to add duplicate route - gw [ OK ] # 49.91 [+0.49] TEST: Attempt to add duplicate route - dev only [ OK ] # 50.41 [+0.51] TEST: Attempt to add duplicate route - reject route [ OK ] # 50.96 [+0.55] TEST: Append nexthop to existing route - gw [ OK ] # 51.41 [+0.45] TEST: Add multipath route [ OK ] # 51.82 [+0.41] TEST: Attempt to add duplicate multipath route [ OK ] # 52.36 [+0.54] TEST: Route add with different metrics [ OK ] # 52.58 [+0.22] TEST: Route delete with metric [ OK ] # 52.58 [+0.00] # 52.58 [+0.00] IPv6 route replace tests # 53.12 [+0.53] TEST: Single path with single path [ OK ] # 53.67 [+0.55] TEST: Single path with multipath [ OK ] # 54.19 [+0.53] TEST: Single path with single path via multipath attribute [ OK ] # 54.70 [+0.50] TEST: Invalid nexthop [ OK ] # 55.11 [+0.42] TEST: Single path - replace of non-existent route [ OK ] # 55.64 [+0.53] TEST: Multipath with multipath [ OK ] # 56.17 [+0.53] TEST: Multipath with single path [ OK ] # 56.73 [+0.56] TEST: Multipath with single path via multipath attribute [ OK ] # 57.31 [+0.58] TEST: Multipath with dev-only [ OK ] # 57.93 [+0.63] TEST: Multipath - invalid first nexthop [ OK ] # 58.54 [+0.61] TEST: Multipath - invalid second nexthop [ OK ] # 59.04 [+0.50] TEST: Multipath - replace of non-existent route [ OK ] # 59.04 [+0.00] # 59.04 [+0.00] IPv6 route with dsfield tests # 59.31 [+0.27] TEST: Reject route with dsfield [ OK ] # 67.38 [+8.06] # 67.38 [+0.00] IPv4 route add / append tests # 67.80 [+0.42] TEST: Attempt to add duplicate route - gw [ OK ] # 68.23 [+0.44] TEST: Attempt to add duplicate route - dev only [ OK ] # 68.65 [+0.42] TEST: Attempt to add duplicate route - reject route [ OK ] # 69.21 [+0.56] TEST: Add new nexthop for existing prefix [ OK ] # 69.85 [+0.64] TEST: Append nexthop to existing route - gw [ OK ] # 70.44 [+0.59] TEST: Append nexthop to existing route - dev only [ OK ] # 71.09 [+0.65] TEST: Append nexthop to existing route - reject route [ OK ] # 71.60 [+0.51] TEST: Append nexthop to existing reject route - gw [ OK ] # 72.15 [+0.55] TEST: Append nexthop to existing reject route - dev only [ OK ] # 72.62 [+0.47] TEST: add multipath route [ OK ] # 73.09 [+0.47] TEST: Attempt to add duplicate multipath route [ OK ] # 73.68 [+0.60] TEST: Route add with different metrics [ OK ] # 73.89 [+0.20] TEST: Route delete with metric [ OK ] # 73.89 [+0.00] # 73.89 [+0.00] IPv4 route replace tests # 74.40 [+0.50] TEST: Single path with single path [ OK ] # 74.92 [+0.52] TEST: Single path with multipath [ OK ] # 75.46 [+0.55] TEST: Single path with reject route [ OK ] # 75.98 [+0.52] TEST: Single path with single path via multipath attribute [ OK ] # 76.59 [+0.61] TEST: Invalid nexthop [ OK ] # 77.05 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 77.64 [+0.59] TEST: Multipath with multipath [ OK ] # 78.21 [+0.57] TEST: Multipath with single path [ OK ] # 78.75 [+0.54] TEST: Multipath with single path via multipath attribute [ OK ] # 79.29 [+0.54] TEST: Multipath with reject route [ OK ] # 79.85 [+0.57] TEST: Multipath - invalid first nexthop [ OK ] # 80.44 [+0.58] TEST: Multipath - invalid second nexthop [ OK ] # 80.89 [+0.45] TEST: Multipath - replace of non-existent route [ OK ] # 82.74 [+1.85] TEST: Cached route removed from VRF port device [ OK ] # 82.74 [+0.00] # 82.74 [+0.00] IPv4 route with dsfield tests # 82.98 [+0.24] TEST: Reject route with dsfield 0x01 [ OK ] # 83.08 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 83.22 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 83.52 [+0.31] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 83.61 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 83.76 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 83.87 [+0.11] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 83.98 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 84.08 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 84.19 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 84.29 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 84.40 [+0.11] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 84.50 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 84.60 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 84.71 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 86.87 [+2.16] # 86.87 [+0.00] IPv6 prefix route tests # 89.20 [+2.33] TEST: Default metric [ OK ] # 89.60 [+0.40] TEST: User specified metric on first device [ OK ] # 90.01 [+0.41] TEST: User specified metric on second device [ OK ] # 90.28 [+0.27] TEST: Delete of address on first device [ OK ] # 90.53 [+0.25] TEST: Modify metric of address [ OK ] # 90.91 [+0.38] TEST: Prefix route removed on link down [ OK ] # 91.14 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 91.49 [+0.34] TEST: Set metric with peer route on local side [ OK ] # 91.61 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 91.86 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 91.98 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 93.19 [+1.21] # 93.19 [+0.00] IPv4 prefix route tests # 95.63 [+2.44] TEST: Default metric [ OK ] # 95.97 [+0.35] TEST: User specified metric on first device [ OK ] # 96.31 [+0.34] TEST: User specified metric on second device [ OK ] # 96.55 [+0.24] TEST: Delete of address on first device [ OK ] # 96.80 [+0.25] TEST: Modify metric of address [ OK ] # 97.08 [+0.28] TEST: Prefix route removed on link down [ OK ] # 97.34 [+0.26] TEST: Prefix route with metric on link up [ OK ] # 97.86 [+0.52] TEST: Modify metric of .0/24 address [ OK ] # 98.26 [+0.40] TEST: Set metric of address with peer route [ OK ] # 98.52 [+0.26] TEST: Modify metric and peer address for peer route [ OK ] # 99.70 [+1.18] # 99.70 [+0.00] IPv6 routes with metrics # 105.42 [+5.72] TEST: Single path route with mtu metric [ OK ] # 105.79 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 106.19 [+0.40] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 106.41 [+0.22] TEST: MTU of second leg [ OK ] # 106.66 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 106.94 [+0.28] TEST: Using route with mtu metric [ OK ] # 107.14 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 109.39 [+2.25] # 109.39 [+0.00] IPv4 route add / append tests # 114.43 [+5.05] TEST: Single path route with mtu metric [ OK ] # 114.65 [+0.22] TEST: Multipath route with mtu metric [ OK ] # 114.89 [+0.24] TEST: Using route with mtu metric [ OK ] # 115.07 [+0.18] TEST: Invalid metric (fails metric_convert) [ OK ] # 117.00 [+1.92] # 117.00 [+0.00] IPv4 route with IPv6 gateway tests # 123.62 [+6.62] TEST: Single path route with IPv6 gateway [ OK ] # 123.86 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 123.95 [+0.09] TEST: Single path route delete [ OK ] # 124.14 [+0.19] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 124.33 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 124.42 [+0.09] TEST: Multipath route delete exact match [ OK ] # 124.53 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 124.73 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 124.81 [+0.09] TEST: Multipath route delete exact match [ OK ] # 126.54 [+1.73] # 126.54 [+0.00] IPv4 rp_filter tests # 132.42 [+5.87] TEST: rp_filter passes local packets [ OK ] # 132.56 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 133.32 [+0.76] # 133.32 [+0.00] IPv4 delete address route tests # 136.09 [+2.77] Regular FIB info # 136.28 [+0.19] TEST: Route removed from VRF when source address deleted [ OK ] # 136.36 [+0.08] TEST: Route in default VRF not removed [ OK ] # 136.71 [+0.35] TEST: Route removed in default VRF when source address deleted [ OK ] # 136.80 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 136.80 [+0.00] Identical FIB info with different table ID # 136.97 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 137.05 [+0.08] TEST: Route in default VRF not removed [ OK ] # 137.37 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 137.47 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 137.47 [+0.01] Table ID 0 # 137.62 [+0.14] TEST: Route removed in default VRF when source address deleted [ OK ] # 138.60 [+0.98] # 138.60 [+0.00] IPv6 delete address route tests # 143.28 [+4.68] Single device using src address # 143.45 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 143.45 [+0.00] Two devices with the same source address # 143.65 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 143.84 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 143.84 [+0.00] VRF with single device using src address # 144.02 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 144.02 [+0.00] VRF with two devices using src address # 144.20 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 144.38 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 144.38 [+0.00] src address and nexthop dev in same VRF # 144.56 [+0.18] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 144.65 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 144.97 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 145.08 [+0.11] TEST: Prefsrc in default VRF removed [ OK ] # 145.08 [+0.00] src address and nexthop device in different VRF # 145.25 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 145.33 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 145.59 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 145.69 [+0.10] TEST: Prefsrc removed in default VRF [ OK ] # 145.69 [+0.00] Table ID 0 # 145.88 [+0.18] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 145.88 [+0.00] Link local source route # 146.05 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 146.24 [+0.19] TEST: Prefsrc removed when delete ll addr [ OK ] # 146.34 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 146.59 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 148.11 [+1.52] # 148.11 [+0.00] IPv4 mangling tests # 155.51 [+7.40] TEST: Connection with correct parameters [ OK ] # 155.68 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 156.60 [+0.92] TEST: Connection with correct parameters - mangling [ OK ] # 157.45 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 157.50 [+0.05] TEST: Connection check - server side [ OK ] # 159.47 [+1.97] # 159.47 [+0.00] IPv6 mangling tests # 166.73 [+7.26] TEST: Connection with correct parameters [ OK ] # 166.92 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 167.75 [+0.84] TEST: Connection with correct parameters - mangling [ OK ] # 168.60 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 168.65 [+0.05] TEST: Connection check - server side [ OK ] # 170.55 [+1.90] # 170.55 [+0.00] IPv4 broadcast neighbour tests # 172.64 [+2.09] TEST: Resolved neighbour for broadcast address [ OK ] # 172.72 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 172.80 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 172.89 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 174.63 [+1.74] # 174.63 [+0.00] Fib6 garbage collection test # 187.77 [+13.14] TEST: ipv6 route garbage collection [ OK ] # 201.12 [+13.36] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 214.51 [+13.38] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 228.00 [+13.49] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 242.26 [+14.26] TEST: ipv6 route garbage collection (RA message) [ OK ] # 243.03 [+0.77] # 243.03 [+0.00] IPv4 multipath list receive tests # 261.52 [+18.49] TEST: Multipath route hit ratio (1.00) [ OK ] # 263.32 [+1.80] # 263.32 [+0.00] IPv6 multipath list receive tests # 277.51 [+14.19] TEST: Multipath route hit ratio (1.00) [ OK ] # 279.82 [+2.30] # 279.82 [+0.00] Tests passed: 229 # 279.82 [+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__->