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.34 [+0.34] # 0.34 [+0.00] Single path route test # 1.10 [+0.76] Start point # 1.16 [+0.06] TEST: IPv4 fibmatch [ OK ] # 1.24 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.33 [+0.09] Nexthop device deleted # 1.41 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.48 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.92 [+0.44] # 1.92 [+0.00] Multipath route test # 3.25 [+1.34] Start point # 3.33 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.39 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.52 [+0.12] One nexthop device deleted # 3.58 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.66 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.74 [+0.09] Second nexthop device deleted # 3.82 [+0.07] TEST: IPv6 - no route [ OK ] # 4.26 [+0.44] # 4.26 [+0.00] Single path, admin down # 5.19 [+0.93] Start point # 5.27 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.34 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.41 [+0.07] Route deleted on down # 5.48 [+0.06] TEST: IPv4 fibmatch [ OK ] # 5.55 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.92 [+0.37] # 5.92 [+0.00] Admin down multipath # 7.25 [+1.33] Verify start point # 7.32 [+0.07] TEST: IPv4 fibmatch [ OK ] # 7.39 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.45 [+0.06] One device down, one up # 7.53 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.59 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 7.66 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 7.72 [+0.06] TEST: IPv6 fibmatch on up device [ OK ] # 7.79 [+0.07] TEST: IPv4 flags on down device [ OK ] # 7.87 [+0.08] TEST: IPv6 flags on down device [ OK ] # 7.94 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.01 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.15 [+0.13] Other device down and up # 8.21 [+0.06] TEST: IPv4 fibmatch on down device [ OK ] # 8.28 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.35 [+0.06] TEST: IPv4 fibmatch on up device [ OK ] # 8.42 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.50 [+0.08] TEST: IPv4 flags on down device [ OK ] # 8.57 [+0.07] TEST: IPv6 flags on down device [ OK ] # 8.65 [+0.08] TEST: IPv4 flags on up device [ OK ] # 8.72 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.78 [+0.07] Both devices down # 8.86 [+0.08] TEST: IPv4 fibmatch [ OK ] # 8.93 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.37 [+0.44] # 9.37 [+0.00] Local carrier tests - single path # 10.39 [+1.02] Start point # 10.46 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.53 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.60 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 10.68 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 11.79 [+1.12] Carrier off on nexthop # 11.88 [+0.08] TEST: IPv4 fibmatch [ OK ] # 11.94 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.01 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.08 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 12.22 [+0.14] Route to local address with carrier down # 12.29 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.36 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.44 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 12.52 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 12.92 [+0.40] # 12.92 [+0.00] Single path route carrier test # 13.91 [+0.99] Start point # 13.98 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.05 [+0.07] TEST: IPv6 fibmatch [ OK ] # 14.13 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 14.20 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 15.32 [+1.11] Carrier down # 15.39 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.46 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.53 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.61 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.75 [+0.13] Second address added with carrier down # 15.82 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.88 [+0.06] TEST: IPv6 fibmatch [ OK ] # 15.96 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 16.03 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 19.72 [+3.69] # 19.72 [+0.00] IPv4 nexthop tests # 19.72 [+0.00] <<< write me >>> # 19.92 [+0.20] # 19.92 [+0.00] IPv6 nexthop tests # 20.00 [+0.07] TEST: Directly connected nexthop, unicast address [ OK ] # 20.08 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.15 [+0.07] TEST: Gateway is linklocal address [ OK ] # 20.24 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 20.32 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 20.40 [+0.08] TEST: Gateway can not be local unicast address, with device [ OK ] # 20.48 [+0.07] TEST: Gateway can not be a local linklocal address [ OK ] # 20.56 [+0.08] TEST: Gateway can be local address in a VRF [ OK ] # 20.63 [+0.07] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.72 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.79 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 20.88 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 20.95 [+0.07] TEST: VRF route, gateway can not be a local address [ OK ] # 21.03 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 21.84 [+0.81] # 21.84 [+0.00] FIB rule with suppress_prefixlength # 23.23 [+1.40] TEST: FIB rule suppress test [ OK ] # 24.51 [+1.28] # 24.51 [+0.00] Fib6 info length calculation in route notify test # 28.13 [+3.62] TEST: ipv6 route add notify [ OK ] # 29.45 [+1.32] # 29.45 [+0.00] Fib4 info length calculation in route notify test # 33.04 [+3.60] TEST: ipv4 route add notify [ OK ] # 36.55 [+3.51] # 36.55 [+0.00] IPv6 route add / append tests # 36.84 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 37.12 [+0.28] TEST: Attempt to add duplicate route - dev only [ OK ] # 37.41 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 37.79 [+0.38] TEST: Append nexthop to existing route - gw [ OK ] # 38.11 [+0.32] TEST: Add multipath route [ OK ] # 38.39 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 38.76 [+0.37] TEST: Route add with different metrics [ OK ] # 38.94 [+0.17] TEST: Route delete with metric [ OK ] # 38.94 [+0.00] # 38.94 [+0.00] IPv6 route replace tests # 39.32 [+0.38] TEST: Single path with single path [ OK ] # 39.71 [+0.39] TEST: Single path with multipath [ OK ] # 40.08 [+0.37] TEST: Single path with single path via multipath attribute [ OK ] # 40.46 [+0.38] TEST: Invalid nexthop [ OK ] # 40.76 [+0.29] TEST: Single path - replace of non-existent route [ OK ] # 41.15 [+0.40] TEST: Multipath with multipath [ OK ] # 41.54 [+0.38] TEST: Multipath with single path [ OK ] # 41.90 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 42.30 [+0.40] TEST: Multipath with dev-only [ OK ] # 42.69 [+0.39] TEST: Multipath - invalid first nexthop [ OK ] # 43.10 [+0.41] TEST: Multipath - invalid second nexthop [ OK ] # 43.40 [+0.30] TEST: Multipath - replace of non-existent route [ OK ] # 43.40 [+0.00] # 43.40 [+0.00] IPv6 route with dsfield tests # 43.56 [+0.16] TEST: Reject route with dsfield [ OK ] # 48.63 [+5.07] # 48.63 [+0.00] IPv4 route add / append tests # 48.93 [+0.29] TEST: Attempt to add duplicate route - gw [ OK ] # 49.21 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 49.52 [+0.30] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.88 [+0.37] TEST: Add new nexthop for existing prefix [ OK ] # 50.26 [+0.38] TEST: Append nexthop to existing route - gw [ OK ] # 50.63 [+0.37] TEST: Append nexthop to existing route - dev only [ OK ] # 51.00 [+0.37] TEST: Append nexthop to existing route - reject route [ OK ] # 51.31 [+0.30] TEST: Append nexthop to existing reject route - gw [ OK ] # 51.62 [+0.32] TEST: Append nexthop to existing reject route - dev only [ OK ] # 51.93 [+0.30] TEST: add multipath route [ OK ] # 52.22 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 52.58 [+0.37] TEST: Route add with different metrics [ OK ] # 52.73 [+0.15] TEST: Route delete with metric [ OK ] # 52.73 [+0.00] # 52.73 [+0.00] IPv4 route replace tests # 53.08 [+0.35] TEST: Single path with single path [ OK ] # 53.45 [+0.36] TEST: Single path with multipath [ OK ] # 53.80 [+0.36] TEST: Single path with reject route [ OK ] # 54.17 [+0.36] TEST: Single path with single path via multipath attribute [ OK ] # 54.53 [+0.37] TEST: Invalid nexthop [ OK ] # 54.81 [+0.28] TEST: Single path - replace of non-existent route [ OK ] # 55.18 [+0.38] TEST: Multipath with multipath [ OK ] # 55.54 [+0.36] TEST: Multipath with single path [ OK ] # 55.91 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 56.28 [+0.37] TEST: Multipath with reject route [ OK ] # 56.65 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 57.00 [+0.36] TEST: Multipath - invalid second nexthop [ OK ] # 57.29 [+0.28] TEST: Multipath - replace of non-existent route [ OK ] # 58.42 [+1.13] TEST: Cached route removed from VRF port device [ OK ] # 58.42 [+0.00] # 58.42 [+0.00] IPv4 route with dsfield tests # 58.57 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 58.64 [+0.07] TEST: Reject route with dsfield 0x02 [ OK ] # 58.72 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 58.95 [+0.23] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 59.03 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 59.10 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 59.18 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 59.25 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 59.33 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 59.40 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 59.48 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 59.54 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 59.61 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 59.70 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 59.78 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 61.24 [+1.47] # 61.24 [+0.00] IPv6 prefix route tests # 62.77 [+1.53] TEST: Default metric [ OK ] # 63.00 [+0.23] TEST: User specified metric on first device [ OK ] # 63.24 [+0.25] TEST: User specified metric on second device [ OK ] # 63.40 [+0.15] TEST: Delete of address on first device [ OK ] # 63.55 [+0.16] TEST: Modify metric of address [ OK ] # 63.81 [+0.26] TEST: Prefix route removed on link down [ OK ] # 63.96 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 64.18 [+0.22] TEST: Set metric with peer route on local side [ OK ] # 64.25 [+0.07] TEST: Set metric with peer route on peer side [ OK ] # 64.40 [+0.15] TEST: Modify metric and peer address on local side [ OK ] # 64.48 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 65.29 [+0.81] # 65.29 [+0.00] IPv4 prefix route tests # 66.75 [+1.46] TEST: Default metric [ OK ] # 66.96 [+0.21] TEST: User specified metric on first device [ OK ] # 67.19 [+0.23] TEST: User specified metric on second device [ OK ] # 67.34 [+0.15] TEST: Delete of address on first device [ OK ] # 67.49 [+0.15] TEST: Modify metric of address [ OK ] # 67.62 [+0.13] TEST: Prefix route removed on link down [ OK ] # 67.78 [+0.15] TEST: Prefix route with metric on link up [ OK ] # 68.07 [+0.29] TEST: Modify metric of .0/24 address [ OK ] # 68.30 [+0.23] TEST: Set metric of address with peer route [ OK ] # 68.44 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 69.22 [+0.78] # 69.22 [+0.00] IPv6 routes with metrics # 72.85 [+3.63] TEST: Single path route with mtu metric [ OK ] # 73.08 [+0.23] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 73.30 [+0.22] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 73.45 [+0.15] TEST: MTU of second leg [ OK ] # 73.62 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 73.81 [+0.19] TEST: Using route with mtu metric [ OK ] # 73.94 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 75.40 [+1.45] # 75.40 [+0.00] IPv4 route add / append tests # 78.99 [+3.59] TEST: Single path route with mtu metric [ OK ] # 79.14 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 79.31 [+0.17] TEST: Using route with mtu metric [ OK ] # 79.43 [+0.12] TEST: Invalid metric (fails metric_convert) [ OK ] # 80.92 [+1.49] # 80.92 [+0.00] IPv4 route with IPv6 gateway tests # 86.53 [+5.61] TEST: Single path route with IPv6 gateway [ OK ] # 86.73 [+0.20] TEST: Single path route with IPv6 gateway - ping [ OK ] # 86.80 [+0.08] TEST: Single path route delete [ OK ] # 86.94 [+0.14] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 87.09 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.17 [+0.08] TEST: Multipath route delete exact match [ OK ] # 87.24 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 87.39 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.47 [+0.07] TEST: Multipath route delete exact match [ OK ] # 88.93 [+1.47] # 88.93 [+0.00] IPv4 rp_filter tests # 93.64 [+4.70] TEST: rp_filter passes local packets [ OK ] # 93.75 [+0.11] TEST: rp_filter passes loopback packets [ OK ] # 94.37 [+0.63] # 94.37 [+0.00] IPv4 delete address route tests # 96.60 [+2.22] Regular FIB info # 96.72 [+0.12] TEST: Route removed from VRF when source address deleted [ OK ] # 96.79 [+0.06] TEST: Route in default VRF not removed [ OK ] # 97.04 [+0.26] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.10 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 97.10 [+0.00] Identical FIB info with different table ID # 97.23 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 97.30 [+0.07] TEST: Route in default VRF not removed [ OK ] # 97.59 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.66 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 97.67 [+0.00] Table ID 0 # 97.79 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.57 [+0.77] # 98.57 [+0.00] IPv6 delete address route tests # 102.33 [+3.76] Single device using src address # 102.47 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 102.47 [+0.00] Two devices with the same source address # 102.62 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 102.75 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 102.75 [+0.00] VRF with single device using src address # 102.88 [+0.13] TEST: Prefsrc removed when src address removed on other device [ OK ] # 102.88 [+0.00] VRF with two devices using src address # 103.01 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.15 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.15 [+0.00] src address and nexthop dev in same VRF # 103.30 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 103.36 [+0.06] TEST: Prefsrc in default VRF not removed [ OK ] # 103.64 [+0.28] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 103.71 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 103.71 [+0.00] src address and nexthop device in different VRF # 103.84 [+0.13] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 103.91 [+0.06] TEST: Prefsrc not removed in default VRF [ OK ] # 104.10 [+0.19] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 104.17 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 104.18 [+0.00] Table ID 0 # 104.32 [+0.15] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 104.33 [+0.00] Link local source route # 104.46 [+0.13] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 104.59 [+0.14] TEST: Prefsrc removed when delete ll addr [ OK ] # 104.67 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 104.88 [+0.21] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 106.17 [+1.29] # 106.17 [+0.00] IPv4 mangling tests # 112.66 [+6.49] TEST: Connection with correct parameters [ OK ] # 112.80 [+0.14] TEST: Connection with incorrect parameters [ OK ] # 113.64 [+0.83] TEST: Connection with correct parameters - mangling [ OK ] # 114.42 [+0.79] TEST: Connection with correct parameters - no mangling [ OK ] # 114.47 [+0.05] TEST: Connection check - server side [ OK ] # 116.06 [+1.59] # 116.06 [+0.00] IPv6 mangling tests # 122.79 [+6.74] TEST: Connection with correct parameters [ OK ] # 122.99 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 123.79 [+0.80] TEST: Connection with correct parameters - mangling [ OK ] # 124.62 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 124.66 [+0.04] TEST: Connection check - server side [ OK ] # 126.34 [+1.68] # 126.34 [+0.00] IPv4 broadcast neighbour tests # 128.26 [+1.92] TEST: Resolved neighbour for broadcast address [ OK ] # 128.35 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 128.44 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 128.53 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 130.43 [+1.90] # 130.43 [+0.00] Fib6 garbage collection test # 143.53 [+13.10] TEST: ipv6 route garbage collection [ OK ] # 156.74 [+13.21] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 169.91 [+13.16] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 183.15 [+13.25] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 197.21 [+14.06] TEST: ipv6 route garbage collection (RA message) [ OK ] # 197.80 [+0.58] # 197.80 [+0.00] IPv4 multipath list receive tests # 209.77 [+11.97] TEST: Multipath route hit ratio (.99) [ OK ] # 211.19 [+1.42] # 211.19 [+0.00] IPv6 multipath list receive tests # 222.58 [+11.38] TEST: Multipath route hit ratio (1.00) [ OK ] # 224.11 [+1.53] # 224.11 [+0.00] Tests passed: 229 # 224.11 [+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__->