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.41 [+0.41] # 0.41 [+0.00] Single path route test # 1.30 [+0.89] Start point # 1.39 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.47 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.59 [+0.12] Nexthop device deleted # 1.67 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 1.75 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 2.26 [+0.51] # 2.26 [+0.00] Multipath route test # 3.82 [+1.56] Start point # 3.89 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.97 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.10 [+0.13] One nexthop device deleted # 4.17 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.24 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 4.33 [+0.10] Second nexthop device deleted # 4.42 [+0.09] TEST: IPv6 - no route [ OK ] # 4.94 [+0.52] # 4.94 [+0.00] Single path, admin down # 6.10 [+1.15] Start point # 6.18 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.26 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.34 [+0.08] Route deleted on down # 6.43 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.50 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.96 [+0.45] # 6.96 [+0.00] Admin down multipath # 8.61 [+1.65] Verify start point # 8.70 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.83 [+0.13] TEST: IPv6 fibmatch [ OK ] # 8.92 [+0.09] One device down, one up # 9.00 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.09 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 9.20 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 9.29 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 9.40 [+0.11] TEST: IPv4 flags on down device [ OK ] # 9.54 [+0.15] TEST: IPv6 flags on down device [ OK ] # 9.66 [+0.11] TEST: IPv4 flags on up device [ OK ] # 9.75 [+0.09] TEST: IPv6 flags on up device [ OK ] # 9.94 [+0.19] Other device down and up # 10.03 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.11 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.20 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 10.29 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.41 [+0.12] TEST: IPv4 flags on down device [ OK ] # 10.51 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.61 [+0.10] TEST: IPv4 flags on up device [ OK ] # 10.71 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.81 [+0.09] Both devices down # 10.89 [+0.09] TEST: IPv4 fibmatch [ OK ] # 10.98 [+0.09] TEST: IPv6 fibmatch [ OK ] # 11.60 [+0.61] # 11.60 [+0.00] Local carrier tests - single path # 13.46 [+1.87] Start point # 13.55 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.65 [+0.10] TEST: IPv6 fibmatch [ OK ] # 13.77 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 13.91 [+0.13] TEST: IPv6 - no linkdown flag [ OK ] # 15.05 [+1.14] Carrier off on nexthop # 15.20 [+0.15] TEST: IPv4 fibmatch [ OK ] # 15.30 [+0.10] TEST: IPv6 fibmatch [ OK ] # 15.43 [+0.13] TEST: IPv4 - linkdown flag set [ OK ] # 15.52 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 15.76 [+0.24] Route to local address with carrier down # 15.87 [+0.11] TEST: IPv4 fibmatch [ OK ] # 15.98 [+0.11] TEST: IPv6 fibmatch [ OK ] # 16.06 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 16.17 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 16.74 [+0.57] # 16.74 [+0.00] Single path route carrier test # 18.28 [+1.53] Start point # 18.39 [+0.12] TEST: IPv4 fibmatch [ OK ] # 18.50 [+0.11] TEST: IPv6 fibmatch [ OK ] # 18.62 [+0.12] TEST: IPv4 no linkdown flag [ OK ] # 18.75 [+0.13] TEST: IPv6 no linkdown flag [ OK ] # 19.93 [+1.18] Carrier down # 20.06 [+0.13] TEST: IPv4 fibmatch [ OK ] # 20.18 [+0.12] TEST: IPv6 fibmatch [ OK ] # 20.31 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 20.42 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 20.66 [+0.24] Second address added with carrier down # 20.79 [+0.13] TEST: IPv4 fibmatch [ OK ] # 20.88 [+0.09] TEST: IPv6 fibmatch [ OK ] # 20.98 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 21.12 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 26.59 [+5.48] # 26.59 [+0.00] IPv4 nexthop tests # 26.59 [+0.00] <<< write me >>> # 26.90 [+0.30] # 26.90 [+0.00] IPv6 nexthop tests # 27.03 [+0.13] TEST: Directly connected nexthop, unicast address [ OK ] # 27.14 [+0.12] TEST: Directly connected nexthop, unicast address with device [ OK ] # 27.29 [+0.14] TEST: Gateway is linklocal address [ OK ] # 27.39 [+0.11] TEST: Gateway is linklocal address, no device [ OK ] # 27.51 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 27.67 [+0.16] TEST: Gateway can not be local unicast address, with device [ OK ] # 27.82 [+0.15] TEST: Gateway can not be a local linklocal address [ OK ] # 27.94 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 28.07 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 28.17 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 28.30 [+0.13] TEST: Redirect to VRF lookup [ OK ] # 28.44 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 28.56 [+0.12] TEST: VRF route, gateway can not be a local address [ OK ] # 28.70 [+0.14] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 29.94 [+1.24] # 29.94 [+0.00] FIB rule with suppress_prefixlength # 32.25 [+2.31] TEST: FIB rule suppress test [ OK ] # 34.02 [+1.77] # 34.02 [+0.00] Fib6 info length calculation in route notify test # 38.41 [+4.38] TEST: ipv6 route add notify [ OK ] # 40.40 [+1.99] # 40.40 [+0.00] Fib4 info length calculation in route notify test # 44.81 [+4.42] TEST: ipv4 route add notify [ OK ] # 50.52 [+5.71] # 50.52 [+0.00] IPv6 route add / append tests # 51.03 [+0.50] TEST: Attempt to add duplicate route - gw [ OK ] # 51.55 [+0.52] TEST: Attempt to add duplicate route - dev only [ OK ] # 52.04 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 52.65 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 53.12 [+0.47] TEST: Add multipath route [ OK ] # 53.64 [+0.52] TEST: Attempt to add duplicate multipath route [ OK ] # 54.25 [+0.61] TEST: Route add with different metrics [ OK ] # 54.56 [+0.31] TEST: Route delete with metric [ OK ] # 54.57 [+0.00] # 54.57 [+0.00] IPv6 route replace tests # 55.18 [+0.61] TEST: Single path with single path [ OK ] # 55.76 [+0.59] TEST: Single path with multipath [ OK ] # 56.33 [+0.57] TEST: Single path with single path via multipath attribute [ OK ] # 56.89 [+0.56] TEST: Invalid nexthop [ OK ] # 57.38 [+0.49] TEST: Single path - replace of non-existent route [ OK ] # 57.96 [+0.58] TEST: Multipath with multipath [ OK ] # 58.60 [+0.64] TEST: Multipath with single path [ OK ] # 59.23 [+0.63] TEST: Multipath with single path via multipath attribute [ OK ] # 59.84 [+0.60] TEST: Multipath with dev-only [ OK ] # 60.48 [+0.64] TEST: Multipath - invalid first nexthop [ OK ] # 61.16 [+0.68] TEST: Multipath - invalid second nexthop [ OK ] # 61.64 [+0.48] TEST: Multipath - replace of non-existent route [ OK ] # 61.64 [+0.00] # 61.65 [+0.00] IPv6 route with dsfield tests # 61.93 [+0.28] TEST: Reject route with dsfield [ OK ] # 69.35 [+7.42] # 69.35 [+0.00] IPv4 route add / append tests # 69.87 [+0.52] TEST: Attempt to add duplicate route - gw [ OK ] # 70.36 [+0.49] TEST: Attempt to add duplicate route - dev only [ OK ] # 70.77 [+0.41] TEST: Attempt to add duplicate route - reject route [ OK ] # 71.43 [+0.66] TEST: Add new nexthop for existing prefix [ OK ] # 71.93 [+0.50] TEST: Append nexthop to existing route - gw [ OK ] # 72.52 [+0.59] TEST: Append nexthop to existing route - dev only [ OK ] # 73.13 [+0.61] TEST: Append nexthop to existing route - reject route [ OK ] # 73.56 [+0.43] TEST: Append nexthop to existing reject route - gw [ OK ] # 74.06 [+0.51] TEST: Append nexthop to existing reject route - dev only [ OK ] # 74.53 [+0.47] TEST: add multipath route [ OK ] # 75.04 [+0.51] TEST: Attempt to add duplicate multipath route [ OK ] # 75.70 [+0.66] TEST: Route add with different metrics [ OK ] # 75.95 [+0.25] TEST: Route delete with metric [ OK ] # 75.95 [+0.00] # 75.95 [+0.00] IPv4 route replace tests # 76.52 [+0.57] TEST: Single path with single path [ OK ] # 77.10 [+0.58] TEST: Single path with multipath [ OK ] # 77.67 [+0.57] TEST: Single path with reject route [ OK ] # 78.23 [+0.56] TEST: Single path with single path via multipath attribute [ OK ] # 78.80 [+0.57] TEST: Invalid nexthop [ OK ] # 79.25 [+0.44] TEST: Single path - replace of non-existent route [ OK ] # 79.88 [+0.64] TEST: Multipath with multipath [ OK ] # 80.39 [+0.50] TEST: Multipath with single path [ OK ] # 80.91 [+0.52] TEST: Multipath with single path via multipath attribute [ OK ] # 81.45 [+0.54] TEST: Multipath with reject route [ OK ] # 82.01 [+0.57] TEST: Multipath - invalid first nexthop [ OK ] # 82.57 [+0.55] TEST: Multipath - invalid second nexthop [ OK ] # 83.04 [+0.47] TEST: Multipath - replace of non-existent route [ OK ] # 84.78 [+1.74] TEST: Cached route removed from VRF port device [ OK ] # 84.78 [+0.00] # 84.78 [+0.00] IPv4 route with dsfield tests # 85.01 [+0.23] TEST: Reject route with dsfield 0x01 [ OK ] # 85.12 [+0.11] TEST: Reject route with dsfield 0x02 [ OK ] # 85.25 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 85.60 [+0.34] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 85.72 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 85.84 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 85.94 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 86.06 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 86.19 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 86.30 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 86.42 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 86.54 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 86.68 [+0.14] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 86.79 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 86.89 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 89.10 [+2.20] # 89.10 [+0.00] IPv6 prefix route tests # 91.64 [+2.54] TEST: Default metric [ OK ] # 92.02 [+0.38] TEST: User specified metric on first device [ OK ] # 92.45 [+0.43] TEST: User specified metric on second device [ OK ] # 92.66 [+0.22] TEST: Delete of address on first device [ OK ] # 92.89 [+0.22] TEST: Modify metric of address [ OK ] # 93.23 [+0.34] TEST: Prefix route removed on link down [ OK ] # 93.43 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 93.78 [+0.35] TEST: Set metric with peer route on local side [ OK ] # 93.89 [+0.11] TEST: Set metric with peer route on peer side [ OK ] # 94.09 [+0.20] TEST: Modify metric and peer address on local side [ OK ] # 94.18 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 95.22 [+1.04] # 95.22 [+0.00] IPv4 prefix route tests # 97.25 [+2.03] TEST: Default metric [ OK ] # 97.56 [+0.31] TEST: User specified metric on first device [ OK ] # 97.88 [+0.32] TEST: User specified metric on second device [ OK ] # 98.12 [+0.24] TEST: Delete of address on first device [ OK ] # 98.36 [+0.24] TEST: Modify metric of address [ OK ] # 98.57 [+0.20] TEST: Prefix route removed on link down [ OK ] # 98.79 [+0.22] TEST: Prefix route with metric on link up [ OK ] # 99.20 [+0.41] TEST: Modify metric of .0/24 address [ OK ] # 99.51 [+0.31] TEST: Set metric of address with peer route [ OK ] # 99.71 [+0.20] TEST: Modify metric and peer address for peer route [ OK ] # 100.73 [+1.02] # 100.73 [+0.00] IPv6 routes with metrics # 105.26 [+4.53] TEST: Single path route with mtu metric [ OK ] # 105.55 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 105.83 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 106.03 [+0.20] TEST: MTU of second leg [ OK ] # 106.22 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 106.45 [+0.23] TEST: Using route with mtu metric [ OK ] # 106.64 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 108.36 [+1.72] # 108.36 [+0.00] IPv4 route add / append tests # 112.97 [+4.61] TEST: Single path route with mtu metric [ OK ] # 113.16 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 113.43 [+0.27] TEST: Using route with mtu metric [ OK ] # 113.59 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 115.32 [+1.73] # 115.32 [+0.00] IPv4 route with IPv6 gateway tests # 121.82 [+6.50] TEST: Single path route with IPv6 gateway [ OK ] # 122.04 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 122.13 [+0.09] TEST: Single path route delete [ OK ] # 122.31 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 122.48 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 122.57 [+0.09] TEST: Multipath route delete exact match [ OK ] # 122.66 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 122.85 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 122.95 [+0.10] TEST: Multipath route delete exact match [ OK ] # 124.62 [+1.67] # 124.62 [+0.00] IPv4 rp_filter tests # 130.50 [+5.88] TEST: rp_filter passes local packets [ OK ] # 130.64 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 131.41 [+0.76] # 131.41 [+0.00] IPv4 delete address route tests # 134.13 [+2.72] Regular FIB info # 134.29 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 134.38 [+0.09] TEST: Route in default VRF not removed [ OK ] # 134.70 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 134.79 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 134.79 [+0.00] Identical FIB info with different table ID # 134.95 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 135.03 [+0.08] TEST: Route in default VRF not removed [ OK ] # 135.35 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 135.43 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 135.44 [+0.00] Table ID 0 # 135.58 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 136.52 [+0.94] # 136.52 [+0.00] IPv6 delete address route tests # 141.04 [+4.52] Single device using src address # 141.22 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 141.22 [+0.00] Two devices with the same source address # 141.40 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 141.56 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 141.57 [+0.00] VRF with single device using src address # 141.74 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 141.74 [+0.00] VRF with two devices using src address # 141.91 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 142.07 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 142.07 [+0.00] src address and nexthop dev in same VRF # 142.24 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 142.38 [+0.14] TEST: Prefsrc in default VRF not removed [ OK ] # 142.71 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 142.80 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 142.80 [+0.00] src address and nexthop device in different VRF # 142.98 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 143.08 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 143.33 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 143.42 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 143.42 [+0.00] Table ID 0 # 143.59 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 143.59 [+0.00] Link local source route # 143.78 [+0.18] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 143.94 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 144.03 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 144.28 [+0.26] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 145.79 [+1.51] # 145.79 [+0.00] IPv4 mangling tests # 153.11 [+7.32] TEST: Connection with correct parameters [ OK ] # 153.28 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 154.19 [+0.92] TEST: Connection with correct parameters - mangling [ OK ] # 155.02 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 155.10 [+0.07] TEST: Connection check - server side [ OK ] # 157.07 [+1.97] # 157.07 [+0.00] IPv6 mangling tests # 164.38 [+7.31] TEST: Connection with correct parameters [ OK ] # 164.58 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 165.43 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 166.29 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 166.35 [+0.06] TEST: Connection check - server side [ OK ] # 168.25 [+1.90] # 168.25 [+0.00] IPv4 broadcast neighbour tests # 170.43 [+2.18] TEST: Resolved neighbour for broadcast address [ OK ] # 170.51 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 170.61 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 170.69 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 172.49 [+1.80] # 172.50 [+0.00] Fib6 garbage collection test # 185.67 [+13.18] TEST: ipv6 route garbage collection [ OK ] # 199.04 [+13.37] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 212.42 [+13.38] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 226.09 [+13.67] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 241.13 [+15.05] TEST: ipv6 route garbage collection (RA message) [ OK ] # 241.92 [+0.79] # 241.92 [+0.00] IPv4 multipath list receive tests # 256.09 [+14.16] TEST: Multipath route hit ratio (1.00) [ OK ] # 257.91 [+1.82] # 257.91 [+0.00] IPv6 multipath list receive tests # 273.00 [+15.09] TEST: Multipath route hit ratio (1.00) [ OK ] # 274.77 [+1.77] # 274.77 [+0.00] Tests passed: 229 # 274.77 [+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__->