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.72 [+0.72] # 0.72 [+0.00] Single path route test # 2.42 [+1.70] Start point # 2.57 [+0.15] TEST: IPv4 fibmatch [ OK ] # 2.71 [+0.14] TEST: IPv6 fibmatch [ OK ] # 2.89 [+0.18] Nexthop device deleted # 3.04 [+0.15] TEST: IPv4 fibmatch - no route [ OK ] # 3.19 [+0.15] TEST: IPv6 fibmatch - no route [ OK ] # 4.13 [+0.94] # 4.13 [+0.00] Multipath route test # 7.09 [+2.96] Start point # 7.23 [+0.15] TEST: IPv4 fibmatch [ OK ] # 7.38 [+0.14] TEST: IPv6 fibmatch [ OK ] # 7.57 [+0.19] One nexthop device deleted # 7.71 [+0.15] TEST: IPv4 - multipath route removed on delete [ OK ] # 7.86 [+0.15] TEST: IPv6 - multipath down to single path [ OK ] # 8.07 [+0.21] Second nexthop device deleted # 8.21 [+0.14] TEST: IPv6 - no route [ OK ] # 9.09 [+0.89] # 9.09 [+0.00] Single path, admin down # 11.17 [+2.07] Start point # 11.31 [+0.15] TEST: IPv4 fibmatch [ OK ] # 11.49 [+0.18] TEST: IPv6 fibmatch [ OK ] # 11.64 [+0.15] Route deleted on down # 11.78 [+0.14] TEST: IPv4 fibmatch [ OK ] # 11.93 [+0.15] TEST: IPv6 fibmatch [ OK ] # 12.67 [+0.74] # 12.67 [+0.00] Admin down multipath # 15.67 [+3.00] Verify start point # 15.82 [+0.15] TEST: IPv4 fibmatch [ OK ] # 15.96 [+0.14] TEST: IPv6 fibmatch [ OK ] # 16.11 [+0.15] One device down, one up # 16.25 [+0.15] TEST: IPv4 fibmatch on down device [ OK ] # 16.41 [+0.16] TEST: IPv6 fibmatch on down device [ OK ] # 16.55 [+0.14] TEST: IPv4 fibmatch on up device [ OK ] # 16.70 [+0.15] TEST: IPv6 fibmatch on up device [ OK ] # 16.82 [+0.13] TEST: IPv4 flags on down device [ OK ] # 16.95 [+0.12] TEST: IPv6 flags on down device [ OK ] # 17.05 [+0.11] TEST: IPv4 flags on up device [ OK ] # 17.16 [+0.11] TEST: IPv6 flags on up device [ OK ] # 17.46 [+0.29] Other device down and up # 17.60 [+0.14] TEST: IPv4 fibmatch on down device [ OK ] # 17.75 [+0.15] TEST: IPv6 fibmatch on down device [ OK ] # 17.90 [+0.15] TEST: IPv4 fibmatch on up device [ OK ] # 18.05 [+0.15] TEST: IPv6 fibmatch on up device [ OK ] # 18.17 [+0.12] TEST: IPv4 flags on down device [ OK ] # 18.30 [+0.13] TEST: IPv6 flags on down device [ OK ] # 18.42 [+0.13] TEST: IPv4 flags on up device [ OK ] # 18.56 [+0.14] TEST: IPv6 flags on up device [ OK ] # 18.75 [+0.19] Both devices down # 18.90 [+0.15] TEST: IPv4 fibmatch [ OK ] # 19.04 [+0.14] TEST: IPv6 fibmatch [ OK ] # 19.96 [+0.92] # 19.96 [+0.00] Local carrier tests - single path # 22.21 [+2.25] Start point # 22.35 [+0.14] TEST: IPv4 fibmatch [ OK ] # 22.51 [+0.16] TEST: IPv6 fibmatch [ OK ] # 22.64 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 22.78 [+0.14] TEST: IPv6 - no linkdown flag [ OK ] # 24.03 [+1.25] Carrier off on nexthop # 24.18 [+0.14] TEST: IPv4 fibmatch [ OK ] # 24.33 [+0.15] TEST: IPv6 fibmatch [ OK ] # 24.47 [+0.14] TEST: IPv4 - linkdown flag set [ OK ] # 24.60 [+0.13] TEST: IPv6 - linkdown flag set [ OK ] # 24.90 [+0.31] Route to local address with carrier down # 25.04 [+0.13] TEST: IPv4 fibmatch [ OK ] # 25.20 [+0.16] TEST: IPv6 fibmatch [ OK ] # 25.32 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 25.45 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 26.19 [+0.74] # 26.19 [+0.00] Single path route carrier test # 28.53 [+2.34] Start point # 28.73 [+0.20] TEST: IPv4 fibmatch [ OK ] # 28.87 [+0.14] TEST: IPv6 fibmatch [ OK ] # 29.02 [+0.15] TEST: IPv4 no linkdown flag [ OK ] # 29.18 [+0.16] TEST: IPv6 no linkdown flag [ OK ] # 30.42 [+1.24] Carrier down # 30.58 [+0.15] TEST: IPv4 fibmatch [ OK ] # 30.73 [+0.15] TEST: IPv6 fibmatch [ OK ] # 30.85 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 30.97 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 31.27 [+0.30] Second address added with carrier down # 31.42 [+0.15] TEST: IPv4 fibmatch [ OK ] # 31.57 [+0.15] TEST: IPv6 fibmatch [ OK ] # 31.69 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 31.82 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 38.53 [+6.70] # 38.53 [+0.00] IPv4 nexthop tests # 38.53 [+0.00] <<< write me >>> # 38.82 [+0.29] # 38.82 [+0.00] IPv6 nexthop tests # 38.99 [+0.17] TEST: Directly connected nexthop, unicast address [ OK ] # 39.14 [+0.15] TEST: Directly connected nexthop, unicast address with device [ OK ] # 39.30 [+0.16] TEST: Gateway is linklocal address [ OK ] # 39.46 [+0.16] TEST: Gateway is linklocal address, no device [ OK ] # 39.62 [+0.16] TEST: Gateway can not be local unicast address [ OK ] # 39.78 [+0.15] TEST: Gateway can not be local unicast address, with device [ OK ] # 39.94 [+0.16] TEST: Gateway can not be a local linklocal address [ OK ] # 40.11 [+0.17] TEST: Gateway can be local address in a VRF [ OK ] # 40.27 [+0.16] TEST: Gateway can be local address in a VRF, with device [ OK ] # 40.42 [+0.16] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 40.58 [+0.16] TEST: Redirect to VRF lookup [ OK ] # 40.73 [+0.14] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 40.89 [+0.16] TEST: VRF route, gateway can not be a local address [ OK ] # 41.04 [+0.15] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 42.49 [+1.45] # 42.49 [+0.00] FIB rule with suppress_prefixlength # 45.63 [+3.14] TEST: FIB rule suppress test [ OK ] # 48.42 [+2.79] # 48.42 [+0.00] Fib6 info length calculation in route notify test # 53.85 [+5.43] TEST: ipv6 route add notify [ OK ] # 56.63 [+2.78] # 56.63 [+0.00] Fib4 info length calculation in route notify test # 62.02 [+5.39] TEST: ipv4 route add notify [ OK ] # 69.83 [+7.81] # 69.83 [+0.00] IPv6 route add / append tests # 70.44 [+0.61] TEST: Attempt to add duplicate route - gw [ OK ] # 71.05 [+0.62] TEST: Attempt to add duplicate route - dev only [ OK ] # 71.66 [+0.60] TEST: Attempt to add duplicate route - reject route [ OK ] # 72.42 [+0.76] TEST: Append nexthop to existing route - gw [ OK ] # 73.01 [+0.60] TEST: Add multipath route [ OK ] # 73.62 [+0.61] TEST: Attempt to add duplicate multipath route [ OK ] # 74.38 [+0.76] TEST: Route add with different metrics [ OK ] # 74.67 [+0.29] TEST: Route delete with metric [ OK ] # 74.68 [+0.00] # 74.68 [+0.00] IPv6 route replace tests # 75.41 [+0.74] TEST: Single path with single path [ OK ] # 76.16 [+0.75] TEST: Single path with multipath [ OK ] # 76.92 [+0.76] TEST: Single path with single path via multipath attribute [ OK ] # 77.66 [+0.74] TEST: Invalid nexthop [ OK ] # 78.26 [+0.60] TEST: Single path - replace of non-existent route [ OK ] # 79.02 [+0.76] TEST: Multipath with multipath [ OK ] # 79.76 [+0.74] TEST: Multipath with single path [ OK ] # 80.50 [+0.74] TEST: Multipath with single path via multipath attribute [ OK ] # 81.25 [+0.75] TEST: Multipath with dev-only [ OK ] # 81.99 [+0.74] TEST: Multipath - invalid first nexthop [ OK ] # 82.73 [+0.74] TEST: Multipath - invalid second nexthop [ OK ] # 83.33 [+0.60] TEST: Multipath - replace of non-existent route [ OK ] # 83.33 [+0.00] # 83.33 [+0.00] IPv6 route with dsfield tests # 83.63 [+0.31] TEST: Reject route with dsfield [ OK ] # 93.98 [+10.35] # 93.98 [+0.00] IPv4 route add / append tests # 94.58 [+0.60] TEST: Attempt to add duplicate route - gw [ OK ] # 95.18 [+0.60] TEST: Attempt to add duplicate route - dev only [ OK ] # 95.78 [+0.60] TEST: Attempt to add duplicate route - reject route [ OK ] # 96.54 [+0.75] TEST: Add new nexthop for existing prefix [ OK ] # 97.30 [+0.76] TEST: Append nexthop to existing route - gw [ OK ] # 98.06 [+0.76] TEST: Append nexthop to existing route - dev only [ OK ] # 98.84 [+0.78] TEST: Append nexthop to existing route - reject route [ OK ] # 99.44 [+0.60] TEST: Append nexthop to existing reject route - gw [ OK ] # 100.08 [+0.64] TEST: Append nexthop to existing reject route - dev only [ OK ] # 100.67 [+0.59] TEST: add multipath route [ OK ] # 101.27 [+0.60] TEST: Attempt to add duplicate multipath route [ OK ] # 102.00 [+0.74] TEST: Route add with different metrics [ OK ] # 102.31 [+0.31] TEST: Route delete with metric [ OK ] # 102.32 [+0.00] # 102.32 [+0.00] IPv4 route replace tests # 103.07 [+0.75] TEST: Single path with single path [ OK ] # 103.82 [+0.75] TEST: Single path with multipath [ OK ] # 104.56 [+0.74] TEST: Single path with reject route [ OK ] # 105.32 [+0.75] TEST: Single path with single path via multipath attribute [ OK ] # 106.07 [+0.75] TEST: Invalid nexthop [ OK ] # 106.71 [+0.64] TEST: Single path - replace of non-existent route [ OK ] # 107.47 [+0.77] TEST: Multipath with multipath [ OK ] # 108.27 [+0.79] TEST: Multipath with single path [ OK ] # 109.02 [+0.76] TEST: Multipath with single path via multipath attribute [ OK ] # 109.84 [+0.81] TEST: Multipath with reject route [ OK ] # 110.63 [+0.79] TEST: Multipath - invalid first nexthop [ OK ] # 111.53 [+0.90] TEST: Multipath - invalid second nexthop [ OK ] # 112.18 [+0.65] TEST: Multipath - replace of non-existent route [ OK ] # 114.50 [+2.31] TEST: Cached route removed from VRF port device [ OK ] # 114.50 [+0.00] # 114.50 [+0.00] IPv4 route with dsfield tests # 114.80 [+0.30] TEST: Reject route with dsfield 0x01 [ OK ] # 114.96 [+0.16] TEST: Reject route with dsfield 0x02 [ OK ] # 115.12 [+0.16] TEST: Reject route with dsfield 0x03 [ OK ] # 115.55 [+0.44] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 115.69 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 115.82 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 115.94 [+0.12] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 116.06 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 116.18 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 116.32 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 116.43 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 116.55 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 116.67 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 116.78 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 116.91 [+0.12] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 119.50 [+2.59] # 119.50 [+0.00] IPv6 prefix route tests # 122.74 [+3.24] TEST: Default metric [ OK ] # 123.18 [+0.45] TEST: User specified metric on first device [ OK ] # 123.67 [+0.48] TEST: User specified metric on second device [ OK ] # 123.94 [+0.27] TEST: Delete of address on first device [ OK ] # 124.22 [+0.28] TEST: Modify metric of address [ OK ] # 124.76 [+0.54] TEST: Prefix route removed on link down [ OK ] # 125.07 [+0.31] TEST: Prefix route with metric on link up [ OK ] # 125.51 [+0.44] TEST: Set metric with peer route on local side [ OK ] # 125.65 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 125.93 [+0.28] TEST: Modify metric and peer address on local side [ OK ] # 126.06 [+0.13] TEST: Modify metric and peer address on peer side [ OK ] # 127.67 [+1.61] # 127.67 [+0.00] IPv4 prefix route tests # 130.93 [+3.27] TEST: Default metric [ OK ] # 131.40 [+0.47] TEST: User specified metric on first device [ OK ] # 131.86 [+0.46] TEST: User specified metric on second device [ OK ] # 132.17 [+0.31] TEST: Delete of address on first device [ OK ] # 132.49 [+0.32] TEST: Modify metric of address [ OK ] # 132.80 [+0.30] TEST: Prefix route removed on link down [ OK ] # 133.12 [+0.32] TEST: Prefix route with metric on link up [ OK ] # 133.75 [+0.64] TEST: Modify metric of .0/24 address [ OK ] # 134.22 [+0.47] TEST: Set metric of address with peer route [ OK ] # 134.52 [+0.30] TEST: Modify metric and peer address for peer route [ OK ] # 136.19 [+1.67] # 136.19 [+0.00] IPv6 routes with metrics # 144.43 [+8.24] TEST: Single path route with mtu metric [ OK ] # 144.88 [+0.45] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 145.33 [+0.44] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 145.60 [+0.28] TEST: MTU of second leg [ OK ] # 145.90 [+0.30] TEST: Multipath route with mtu metric [ OK ] # 146.32 [+0.42] TEST: Using route with mtu metric [ OK ] # 146.57 [+0.25] TEST: Invalid metric (fails metric_convert) [ OK ] # 149.15 [+2.58] # 149.15 [+0.00] IPv4 route add / append tests # 157.31 [+8.17] TEST: Single path route with mtu metric [ OK ] # 157.63 [+0.32] TEST: Multipath route with mtu metric [ OK ] # 158.06 [+0.43] TEST: Using route with mtu metric [ OK ] # 158.32 [+0.26] TEST: Invalid metric (fails metric_convert) [ OK ] # 160.89 [+2.57] # 160.89 [+0.00] IPv4 route with IPv6 gateway tests # 170.99 [+10.09] TEST: Single path route with IPv6 gateway [ OK ] # 171.41 [+0.43] TEST: Single path route with IPv6 gateway - ping [ OK ] # 171.57 [+0.16] TEST: Single path route delete [ OK ] # 171.87 [+0.29] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 172.17 [+0.31] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 172.34 [+0.17] TEST: Multipath route delete exact match [ OK ] # 172.49 [+0.15] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 172.80 [+0.31] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 172.97 [+0.17] TEST: Multipath route delete exact match [ OK ] # 175.55 [+2.58] # 175.55 [+0.00] IPv4 rp_filter tests # 186.34 [+10.79] TEST: rp_filter passes local packets [ OK ] # 186.59 [+0.25] TEST: rp_filter passes loopback packets [ OK ] # 187.88 [+1.29] # 187.88 [+0.00] IPv4 delete address route tests # 192.92 [+5.03] Regular FIB info # 193.19 [+0.28] TEST: Route removed from VRF when source address deleted [ OK ] # 193.34 [+0.15] TEST: Route in default VRF not removed [ OK ] # 193.93 [+0.59] TEST: Route removed in default VRF when source address deleted [ OK ] # 194.06 [+0.13] TEST: Route in VRF is not removed by address delete [ OK ] # 194.07 [+0.00] Identical FIB info with different table ID # 194.33 [+0.26] TEST: Route removed from VRF when source address deleted [ OK ] # 194.44 [+0.11] TEST: Route in default VRF not removed [ OK ] # 194.99 [+0.55] TEST: Route removed in default VRF when source address deleted [ OK ] # 195.13 [+0.14] TEST: Route in VRF is not removed by address delete [ OK ] # 195.13 [+0.00] Table ID 0 # 195.39 [+0.25] TEST: Route removed in default VRF when source address deleted [ OK ] # 197.02 [+1.63] # 197.02 [+0.00] IPv6 delete address route tests # 205.45 [+8.43] Single device using src address # 205.71 [+0.26] TEST: Prefsrc removed when src address removed on other device [ OK ] # 205.71 [+0.00] Two devices with the same source address # 205.98 [+0.26] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 206.23 [+0.25] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 206.23 [+0.00] VRF with single device using src address # 206.50 [+0.27] TEST: Prefsrc removed when src address removed on other device [ OK ] # 206.50 [+0.00] VRF with two devices using src address # 206.77 [+0.27] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 207.03 [+0.27] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 207.04 [+0.00] src address and nexthop dev in same VRF # 207.30 [+0.27] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 207.42 [+0.12] TEST: Prefsrc in default VRF not removed [ OK ] # 207.99 [+0.57] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 208.14 [+0.15] TEST: Prefsrc in default VRF removed [ OK ] # 208.14 [+0.00] src address and nexthop device in different VRF # 208.42 [+0.28] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 208.56 [+0.14] TEST: Prefsrc not removed in default VRF [ OK ] # 208.99 [+0.43] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 209.11 [+0.12] TEST: Prefsrc removed in default VRF [ OK ] # 209.12 [+0.00] Table ID 0 # 209.39 [+0.28] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 209.40 [+0.00] Link local source route # 209.66 [+0.27] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 209.94 [+0.28] TEST: Prefsrc removed when delete ll addr [ OK ] # 210.06 [+0.12] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 210.48 [+0.42] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 213.00 [+2.52] # 213.00 [+0.00] IPv4 mangling tests # 224.52 [+11.52] TEST: Connection with correct parameters [ OK ] # 224.83 [+0.31] TEST: Connection with incorrect parameters [ OK ] # 226.10 [+1.28] TEST: Connection with correct parameters - mangling [ OK ] # 227.21 [+1.11] TEST: Connection with correct parameters - no mangling [ OK ] # 227.33 [+0.12] TEST: Connection check - server side [ OK ] # 230.56 [+3.23] # 230.56 [+0.00] IPv6 mangling tests # 242.31 [+11.76] TEST: Connection with correct parameters [ OK ] # 242.66 [+0.34] TEST: Connection with incorrect parameters [ OK ] # 243.78 [+1.12] TEST: Connection with correct parameters - mangling [ OK ] # 244.95 [+1.17] TEST: Connection with correct parameters - no mangling [ OK ] # 245.06 [+0.11] TEST: Connection check - server side [ OK ] # 248.16 [+3.11] # 248.16 [+0.00] IPv4 broadcast neighbour tests # 252.12 [+3.95] TEST: Resolved neighbour for broadcast address [ OK ] # 252.26 [+0.14] TEST: Resolved neighbour for network broadcast address [ OK ] # 252.43 [+0.17] TEST: Unresolved neighbour for broadcast address [ OK ] # 252.58 [+0.16] TEST: Unresolved neighbour for network broadcast address [ OK ] # 255.93 [+3.34] # 255.93 [+0.00] Fib6 garbage collection test # 270.15 [+14.22] TEST: ipv6 route garbage collection [ OK ] # 284.63 [+14.48] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 299.20 [+14.57] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 314.04 [+14.83] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 329.31 [+15.27] TEST: ipv6 route garbage collection (RA message) [ OK ] # 330.63 [+1.32] # 330.63 [+0.00] IPv4 multipath list receive tests # 353.91 [+23.28] TEST: Multipath route hit ratio (1.00) [ OK ] # 356.81 [+2.90] # 356.81 [+0.00] IPv6 multipath list receive tests # 378.76 [+21.95] TEST: Multipath route hit ratio (1.00) [ OK ] # 381.50 [+2.74] # 381.50 [+0.00] Tests passed: 229 # 381.50 [+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__->