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.36 [+0.36] # 0.36 [+0.00] Single path route test # 1.19 [+0.83] Start point # 1.27 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.36 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.49 [+0.13] Nexthop device deleted # 1.56 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.65 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.15 [+0.50] # 2.15 [+0.00] Multipath route test # 3.68 [+1.53] Start point # 3.75 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.83 [+0.08] TEST: IPv6 fibmatch [ OK ] # 3.96 [+0.13] One nexthop device deleted # 4.04 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.15 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 4.29 [+0.14] Second nexthop device deleted # 4.37 [+0.08] TEST: IPv6 - no route [ OK ] # 4.89 [+0.52] # 4.89 [+0.00] Single path, admin down # 6.50 [+1.62] Start point # 6.65 [+0.15] TEST: IPv4 fibmatch [ OK ] # 6.80 [+0.15] TEST: IPv6 fibmatch [ OK ] # 6.94 [+0.14] Route deleted on down # 7.07 [+0.13] TEST: IPv4 fibmatch [ OK ] # 7.23 [+0.16] TEST: IPv6 fibmatch [ OK ] # 7.96 [+0.74] # 7.96 [+0.00] Admin down multipath # 10.88 [+2.92] Verify start point # 11.02 [+0.14] TEST: IPv4 fibmatch [ OK ] # 11.18 [+0.16] TEST: IPv6 fibmatch [ OK ] # 11.34 [+0.16] One device down, one up # 11.45 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 11.61 [+0.16] TEST: IPv6 fibmatch on down device [ OK ] # 11.72 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 11.88 [+0.16] TEST: IPv6 fibmatch on up device [ OK ] # 12.02 [+0.14] TEST: IPv4 flags on down device [ OK ] # 12.18 [+0.16] TEST: IPv6 flags on down device [ OK ] # 12.31 [+0.13] TEST: IPv4 flags on up device [ OK ] # 12.42 [+0.11] TEST: IPv6 flags on up device [ OK ] # 12.60 [+0.18] Other device down and up # 12.69 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.78 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 12.86 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 12.95 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 13.04 [+0.09] TEST: IPv4 flags on down device [ OK ] # 13.13 [+0.09] TEST: IPv6 flags on down device [ OK ] # 13.22 [+0.08] TEST: IPv4 flags on up device [ OK ] # 13.31 [+0.09] TEST: IPv6 flags on up device [ OK ] # 13.40 [+0.09] Both devices down # 13.48 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.57 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.12 [+0.54] # 14.12 [+0.00] Local carrier tests - single path # 15.31 [+1.20] Start point # 15.40 [+0.09] TEST: IPv4 fibmatch [ OK ] # 15.50 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.59 [+0.10] TEST: IPv4 - no linkdown flag [ OK ] # 15.68 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 16.81 [+1.13] Carrier off on nexthop # 16.90 [+0.09] TEST: IPv4 fibmatch [ OK ] # 16.98 [+0.08] TEST: IPv6 fibmatch [ OK ] # 17.06 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 17.15 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 17.31 [+0.16] Route to local address with carrier down # 17.39 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.48 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.57 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 17.65 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 18.07 [+0.42] # 18.07 [+0.00] Single path route carrier test # 19.24 [+1.17] Start point # 19.33 [+0.09] TEST: IPv4 fibmatch [ OK ] # 19.42 [+0.09] TEST: IPv6 fibmatch [ OK ] # 19.50 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 19.57 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 20.76 [+1.19] Carrier down # 20.92 [+0.16] TEST: IPv4 fibmatch [ OK ] # 21.03 [+0.11] TEST: IPv6 fibmatch [ OK ] # 21.16 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 21.29 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 21.60 [+0.31] Second address added with carrier down # 21.74 [+0.14] TEST: IPv4 fibmatch [ OK ] # 21.87 [+0.13] TEST: IPv6 fibmatch [ OK ] # 21.99 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 22.12 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 26.55 [+4.42] # 26.55 [+0.00] IPv4 nexthop tests # 26.55 [+0.00] <<< write me >>> # 26.92 [+0.37] # 26.92 [+0.00] IPv6 nexthop tests # 27.05 [+0.13] TEST: Directly connected nexthop, unicast address [ OK ] # 27.22 [+0.18] TEST: Directly connected nexthop, unicast address with device [ OK ] # 27.39 [+0.16] TEST: Gateway is linklocal address [ OK ] # 27.56 [+0.17] TEST: Gateway is linklocal address, no device [ OK ] # 27.73 [+0.18] TEST: Gateway can not be local unicast address [ OK ] # 27.89 [+0.16] TEST: Gateway can not be local unicast address, with device [ OK ] # 28.06 [+0.17] TEST: Gateway can not be a local linklocal address [ OK ] # 28.20 [+0.14] TEST: Gateway can be local address in a VRF [ OK ] # 28.33 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 28.48 [+0.15] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 28.61 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 28.80 [+0.19] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 28.94 [+0.14] TEST: VRF route, gateway can not be a local address [ OK ] # 29.10 [+0.16] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 30.26 [+1.16] # 30.26 [+0.00] FIB rule with suppress_prefixlength # 32.00 [+1.74] TEST: FIB rule suppress test [ OK ] # 33.58 [+1.57] # 33.58 [+0.00] Fib6 info length calculation in route notify test # 38.02 [+4.44] TEST: ipv6 route add notify [ OK ] # 40.45 [+2.43] # 40.45 [+0.00] Fib4 info length calculation in route notify test # 45.84 [+5.39] TEST: ipv4 route add notify [ OK ] # 50.52 [+4.68] # 50.52 [+0.00] IPv6 route add / append tests # 50.89 [+0.37] TEST: Attempt to add duplicate route - gw [ OK ] # 51.25 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 51.61 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 52.12 [+0.51] TEST: Append nexthop to existing route - gw [ OK ] # 52.50 [+0.38] TEST: Add multipath route [ OK ] # 52.88 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 53.34 [+0.47] TEST: Route add with different metrics [ OK ] # 53.55 [+0.21] TEST: Route delete with metric [ OK ] # 53.55 [+0.00] # 53.55 [+0.00] IPv6 route replace tests # 54.03 [+0.47] TEST: Single path with single path [ OK ] # 54.49 [+0.47] TEST: Single path with multipath [ OK ] # 54.97 [+0.47] TEST: Single path with single path via multipath attribute [ OK ] # 55.43 [+0.47] TEST: Invalid nexthop [ OK ] # 55.78 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 56.25 [+0.47] TEST: Multipath with multipath [ OK ] # 56.70 [+0.45] TEST: Multipath with single path [ OK ] # 57.19 [+0.49] TEST: Multipath with single path via multipath attribute [ OK ] # 57.65 [+0.46] TEST: Multipath with dev-only [ OK ] # 58.10 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 58.57 [+0.47] TEST: Multipath - invalid second nexthop [ OK ] # 58.91 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 58.92 [+0.00] # 58.92 [+0.00] IPv6 route with dsfield tests # 59.09 [+0.17] TEST: Reject route with dsfield [ OK ] # 66.36 [+7.27] # 66.36 [+0.00] IPv4 route add / append tests # 66.74 [+0.38] TEST: Attempt to add duplicate route - gw [ OK ] # 67.10 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 67.51 [+0.41] TEST: Attempt to add duplicate route - reject route [ OK ] # 67.95 [+0.44] TEST: Add new nexthop for existing prefix [ OK ] # 68.40 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 68.88 [+0.47] TEST: Append nexthop to existing route - dev only [ OK ] # 69.43 [+0.55] TEST: Append nexthop to existing route - reject route [ OK ] # 69.96 [+0.53] TEST: Append nexthop to existing reject route - gw [ OK ] # 70.44 [+0.48] TEST: Append nexthop to existing reject route - dev only [ OK ] # 70.88 [+0.44] TEST: add multipath route [ OK ] # 71.31 [+0.43] TEST: Attempt to add duplicate multipath route [ OK ] # 71.86 [+0.56] TEST: Route add with different metrics [ OK ] # 72.14 [+0.28] TEST: Route delete with metric [ OK ] # 72.14 [+0.00] # 72.14 [+0.00] IPv4 route replace tests # 72.67 [+0.53] TEST: Single path with single path [ OK ] # 73.28 [+0.61] TEST: Single path with multipath [ OK ] # 73.95 [+0.67] TEST: Single path with reject route [ OK ] # 74.59 [+0.64] TEST: Single path with single path via multipath attribute [ OK ] # 75.08 [+0.49] TEST: Invalid nexthop [ OK ] # 75.47 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 75.93 [+0.46] TEST: Multipath with multipath [ OK ] # 76.38 [+0.46] TEST: Multipath with single path [ OK ] # 76.82 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 77.29 [+0.47] TEST: Multipath with reject route [ OK ] # 77.84 [+0.56] TEST: Multipath - invalid first nexthop [ OK ] # 78.43 [+0.58] TEST: Multipath - invalid second nexthop [ OK ] # 78.90 [+0.48] TEST: Multipath - replace of non-existent route [ OK ] # 80.56 [+1.66] TEST: Cached route removed from VRF port device [ OK ] # 80.56 [+0.00] # 80.56 [+0.00] IPv4 route with dsfield tests # 80.76 [+0.20] TEST: Reject route with dsfield 0x01 [ OK ] # 80.85 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 80.94 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 81.22 [+0.28] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 81.31 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 81.39 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 81.49 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 81.59 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 81.69 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 81.78 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 81.86 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 81.98 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 82.09 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 82.17 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 82.29 [+0.12] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 84.58 [+2.28] # 84.58 [+0.00] IPv6 prefix route tests # 86.44 [+1.86] TEST: Default metric [ OK ] # 86.74 [+0.30] TEST: User specified metric on first device [ OK ] # 87.04 [+0.30] TEST: User specified metric on second device [ OK ] # 87.24 [+0.20] TEST: Delete of address on first device [ OK ] # 87.60 [+0.36] TEST: Modify metric of address [ OK ] # 88.00 [+0.40] TEST: Prefix route removed on link down [ OK ] # 88.22 [+0.22] TEST: Prefix route with metric on link up [ OK ] # 88.55 [+0.33] TEST: Set metric with peer route on local side [ OK ] # 88.68 [+0.13] TEST: Set metric with peer route on peer side [ OK ] # 88.93 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 89.05 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 90.31 [+1.27] # 90.31 [+0.00] IPv4 prefix route tests # 92.80 [+2.49] TEST: Default metric [ OK ] # 93.15 [+0.35] TEST: User specified metric on first device [ OK ] # 93.53 [+0.38] TEST: User specified metric on second device [ OK ] # 93.82 [+0.29] TEST: Delete of address on first device [ OK ] # 94.11 [+0.29] TEST: Modify metric of address [ OK ] # 94.40 [+0.28] TEST: Prefix route removed on link down [ OK ] # 94.69 [+0.29] TEST: Prefix route with metric on link up [ OK ] # 95.25 [+0.56] TEST: Modify metric of .0/24 address [ OK ] # 95.70 [+0.45] TEST: Set metric of address with peer route [ OK ] # 95.92 [+0.23] TEST: Modify metric and peer address for peer route [ OK ] # 96.99 [+1.07] # 96.99 [+0.00] IPv6 routes with metrics # 101.62 [+4.63] TEST: Single path route with mtu metric [ OK ] # 101.91 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 102.22 [+0.31] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 102.43 [+0.21] TEST: MTU of second leg [ OK ] # 102.62 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 102.84 [+0.23] TEST: Using route with mtu metric [ OK ] # 103.00 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 104.71 [+1.70] # 104.71 [+0.00] IPv4 route add / append tests # 110.70 [+5.99] TEST: Single path route with mtu metric [ OK ] # 110.88 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 111.11 [+0.22] TEST: Using route with mtu metric [ OK ] # 111.27 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 113.15 [+1.88] # 113.15 [+0.00] IPv4 route with IPv6 gateway tests # 120.72 [+7.57] TEST: Single path route with IPv6 gateway [ OK ] # 121.10 [+0.38] TEST: Single path route with IPv6 gateway - ping [ OK ] # 121.26 [+0.16] TEST: Single path route delete [ OK ] # 121.51 [+0.25] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 121.79 [+0.27] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 121.93 [+0.14] TEST: Multipath route delete exact match [ OK ] # 122.07 [+0.14] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 122.36 [+0.29] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 122.52 [+0.15] TEST: Multipath route delete exact match [ OK ] # 124.71 [+2.20] # 124.71 [+0.00] IPv4 rp_filter tests # 130.70 [+5.98] TEST: rp_filter passes local packets [ OK ] # 130.84 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 131.64 [+0.80] # 131.64 [+0.00] IPv4 delete address route tests # 134.82 [+3.18] Regular FIB info # 135.05 [+0.23] TEST: Route removed from VRF when source address deleted [ OK ] # 135.17 [+0.12] TEST: Route in default VRF not removed [ OK ] # 135.58 [+0.41] TEST: Route removed in default VRF when source address deleted [ OK ] # 135.69 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 135.69 [+0.00] Identical FIB info with different table ID # 135.89 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 135.99 [+0.10] TEST: Route in default VRF not removed [ OK ] # 136.32 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 136.41 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 136.41 [+0.00] Table ID 0 # 136.57 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 137.59 [+1.02] # 137.59 [+0.00] IPv6 delete address route tests # 142.86 [+5.26] Single device using src address # 143.04 [+0.19] TEST: Prefsrc removed when src address removed on other device [ OK ] # 143.05 [+0.00] Two devices with the same source address # 143.24 [+0.19] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 143.42 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 143.42 [+0.00] VRF with single device using src address # 143.58 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 143.59 [+0.00] VRF with two devices using src address # 143.77 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 143.95 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 143.95 [+0.00] src address and nexthop dev in same VRF # 144.12 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 144.21 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 144.52 [+0.31] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 144.60 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 144.60 [+0.00] src address and nexthop device in different VRF # 144.78 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 144.89 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 145.14 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 145.24 [+0.10] TEST: Prefsrc removed in default VRF [ OK ] # 145.24 [+0.00] Table ID 0 # 145.42 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 145.42 [+0.00] Link local source route # 145.58 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 145.74 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 145.83 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 146.11 [+0.28] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 147.81 [+1.70] # 147.81 [+0.00] IPv4 mangling tests # 156.20 [+8.39] TEST: Connection with correct parameters [ OK ] # 156.42 [+0.22] TEST: Connection with incorrect parameters [ OK ] # 157.54 [+1.12] TEST: Connection with correct parameters - mangling [ OK ] # 158.43 [+0.89] TEST: Connection with correct parameters - no mangling [ OK ] # 158.51 [+0.08] TEST: Connection check - server side [ OK ] # 160.52 [+2.01] # 160.52 [+0.00] IPv6 mangling tests # 168.57 [+8.05] TEST: Connection with correct parameters [ OK ] # 168.81 [+0.24] TEST: Connection with incorrect parameters [ OK ] # 169.74 [+0.93] TEST: Connection with correct parameters - mangling [ OK ] # 170.71 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 170.77 [+0.07] TEST: Connection check - server side [ OK ] # 173.39 [+2.61] # 173.39 [+0.00] IPv4 broadcast neighbour tests # 176.54 [+3.16] TEST: Resolved neighbour for broadcast address [ OK ] # 176.66 [+0.11] TEST: Resolved neighbour for network broadcast address [ OK ] # 176.76 [+0.10] TEST: Unresolved neighbour for broadcast address [ OK ] # 176.86 [+0.11] TEST: Unresolved neighbour for network broadcast address [ OK ] # 178.81 [+1.95] # 178.81 [+0.00] Fib6 garbage collection test # 192.06 [+13.25] TEST: ipv6 route garbage collection [ OK ] # 206.11 [+14.05] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 219.93 [+13.82] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 233.57 [+13.64] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 248.15 [+14.58] TEST: ipv6 route garbage collection (RA message) [ OK ] # 249.03 [+0.89] # 249.03 [+0.00] IPv4 multipath list receive tests # 264.19 [+15.16] TEST: Multipath route hit ratio (1.00) [ OK ] # 266.46 [+2.27] # 266.46 [+0.00] IPv6 multipath list receive tests # 282.63 [+16.17] TEST: Multipath route hit ratio (1.00) [ OK ] # 284.56 [+1.93] # 284.56 [+0.00] Tests passed: 229 # 284.56 [+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__->