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.38 [+0.38] # 0.38 [+0.00] Single path route test # 1.17 [+0.79] Start point # 1.23 [+0.06] TEST: IPv4 fibmatch [ OK ] # 1.30 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.43 [+0.12] Nexthop device deleted # 1.50 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.58 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.04 [+0.47] # 2.04 [+0.00] Multipath route test # 3.51 [+1.46] Start point # 3.58 [+0.07] TEST: IPv4 fibmatch [ OK ] # 3.64 [+0.06] TEST: IPv6 fibmatch [ OK ] # 3.77 [+0.12] One nexthop device deleted # 3.83 [+0.06] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.90 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 4.01 [+0.11] Second nexthop device deleted # 4.08 [+0.08] TEST: IPv6 - no route [ OK ] # 4.52 [+0.44] # 4.52 [+0.00] Single path, admin down # 5.45 [+0.93] Start point # 5.52 [+0.06] TEST: IPv4 fibmatch [ OK ] # 5.58 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.64 [+0.06] Route deleted on down # 5.72 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.78 [+0.06] TEST: IPv6 fibmatch [ OK ] # 6.12 [+0.35] # 6.12 [+0.00] Admin down multipath # 7.46 [+1.33] Verify start point # 7.53 [+0.07] TEST: IPv4 fibmatch [ OK ] # 7.59 [+0.06] TEST: IPv6 fibmatch [ OK ] # 7.66 [+0.07] One device down, one up # 7.72 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.78 [+0.06] TEST: IPv6 fibmatch on down device [ OK ] # 7.85 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 7.92 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 7.99 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.05 [+0.06] TEST: IPv6 flags on down device [ OK ] # 8.12 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.21 [+0.09] TEST: IPv6 flags on up device [ OK ] # 8.35 [+0.14] Other device down and up # 8.42 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.48 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.55 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.63 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.70 [+0.08] TEST: IPv4 flags on down device [ OK ] # 8.78 [+0.07] TEST: IPv6 flags on down device [ OK ] # 8.87 [+0.09] TEST: IPv4 flags on up device [ OK ] # 8.96 [+0.09] TEST: IPv6 flags on up device [ OK ] # 9.03 [+0.07] Both devices down # 9.09 [+0.06] TEST: IPv4 fibmatch [ OK ] # 9.16 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.63 [+0.47] # 9.63 [+0.00] Local carrier tests - single path # 10.67 [+1.04] Start point # 10.74 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.81 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.90 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 10.97 [+0.07] TEST: IPv6 - no linkdown flag [ OK ] # 12.08 [+1.11] Carrier off on nexthop # 12.16 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.23 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.31 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.38 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 12.52 [+0.14] Route to local address with carrier down # 12.58 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.66 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.73 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 12.81 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 13.19 [+0.39] # 13.19 [+0.00] Single path route carrier test # 14.24 [+1.04] Start point # 14.31 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.37 [+0.07] TEST: IPv6 fibmatch [ OK ] # 14.44 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 14.52 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 15.64 [+1.12] Carrier down # 15.72 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.79 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.86 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.94 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 16.08 [+0.14] Second address added with carrier down # 16.15 [+0.07] TEST: IPv4 fibmatch [ OK ] # 16.22 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.29 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 16.37 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 20.03 [+3.67] # 20.03 [+0.00] IPv4 nexthop tests # 20.04 [+0.00] <<< write me >>> # 20.25 [+0.22] # 20.25 [+0.00] IPv6 nexthop tests # 20.35 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 20.45 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.52 [+0.07] TEST: Gateway is linklocal address [ OK ] # 20.60 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 20.68 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 20.75 [+0.07] TEST: Gateway can not be local unicast address, with device [ OK ] # 20.83 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 20.90 [+0.07] TEST: Gateway can be local address in a VRF [ OK ] # 20.99 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 21.07 [+0.08] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 21.14 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 21.22 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 21.30 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 21.38 [+0.07] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 22.13 [+0.75] # 22.13 [+0.00] FIB rule with suppress_prefixlength # 23.54 [+1.42] TEST: FIB rule suppress test [ OK ] # 24.81 [+1.26] # 24.81 [+0.00] Fib6 info length calculation in route notify test # 28.41 [+3.61] TEST: ipv6 route add notify [ OK ] # 29.71 [+1.30] # 29.71 [+0.00] Fib4 info length calculation in route notify test # 33.30 [+3.58] TEST: ipv4 route add notify [ OK ] # 36.80 [+3.50] # 36.80 [+0.00] IPv6 route add / append tests # 37.08 [+0.28] TEST: Attempt to add duplicate route - gw [ OK ] # 37.37 [+0.29] TEST: Attempt to add duplicate route - dev only [ OK ] # 37.66 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 38.05 [+0.39] TEST: Append nexthop to existing route - gw [ OK ] # 38.36 [+0.31] TEST: Add multipath route [ OK ] # 38.66 [+0.30] TEST: Attempt to add duplicate multipath route [ OK ] # 39.03 [+0.37] TEST: Route add with different metrics [ OK ] # 39.19 [+0.16] TEST: Route delete with metric [ OK ] # 39.19 [+0.00] # 39.19 [+0.00] IPv6 route replace tests # 39.57 [+0.38] TEST: Single path with single path [ OK ] # 39.95 [+0.38] TEST: Single path with multipath [ OK ] # 40.32 [+0.37] TEST: Single path with single path via multipath attribute [ OK ] # 40.71 [+0.39] TEST: Invalid nexthop [ OK ] # 40.99 [+0.28] TEST: Single path - replace of non-existent route [ OK ] # 41.38 [+0.39] TEST: Multipath with multipath [ OK ] # 41.77 [+0.38] TEST: Multipath with single path [ OK ] # 42.13 [+0.37] TEST: Multipath with single path via multipath attribute [ OK ] # 42.52 [+0.38] TEST: Multipath with dev-only [ OK ] # 42.92 [+0.40] TEST: Multipath - invalid first nexthop [ OK ] # 43.29 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 43.58 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 43.58 [+0.00] # 43.58 [+0.00] IPv6 route with dsfield tests # 43.73 [+0.15] TEST: Reject route with dsfield [ OK ] # 48.74 [+5.00] # 48.74 [+0.00] IPv4 route add / append tests # 49.03 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 49.31 [+0.28] TEST: Attempt to add duplicate route - dev only [ OK ] # 49.61 [+0.30] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.98 [+0.37] TEST: Add new nexthop for existing prefix [ OK ] # 50.33 [+0.35] TEST: Append nexthop to existing route - gw [ OK ] # 50.70 [+0.37] TEST: Append nexthop to existing route - dev only [ OK ] # 51.07 [+0.38] TEST: Append nexthop to existing route - reject route [ OK ] # 51.36 [+0.29] TEST: Append nexthop to existing reject route - gw [ OK ] # 51.66 [+0.29] TEST: Append nexthop to existing reject route - dev only [ OK ] # 51.95 [+0.29] TEST: add multipath route [ OK ] # 52.25 [+0.30] TEST: Attempt to add duplicate multipath route [ OK ] # 52.62 [+0.37] TEST: Route add with different metrics [ OK ] # 52.78 [+0.16] TEST: Route delete with metric [ OK ] # 52.78 [+0.00] # 52.78 [+0.00] IPv4 route replace tests # 53.15 [+0.37] TEST: Single path with single path [ OK ] # 53.51 [+0.36] TEST: Single path with multipath [ OK ] # 53.88 [+0.37] TEST: Single path with reject route [ OK ] # 54.25 [+0.37] TEST: Single path with single path via multipath attribute [ OK ] # 54.61 [+0.36] TEST: Invalid nexthop [ OK ] # 54.89 [+0.28] TEST: Single path - replace of non-existent route [ OK ] # 55.26 [+0.37] TEST: Multipath with multipath [ OK ] # 55.62 [+0.36] TEST: Multipath with single path [ OK ] # 56.00 [+0.38] TEST: Multipath with single path via multipath attribute [ OK ] # 56.36 [+0.36] TEST: Multipath with reject route [ OK ] # 56.74 [+0.38] TEST: Multipath - invalid first nexthop [ OK ] # 57.12 [+0.38] TEST: Multipath - invalid second nexthop [ OK ] # 57.40 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 58.57 [+1.17] TEST: Cached route removed from VRF port device [ OK ] # 58.58 [+0.00] # 58.58 [+0.00] IPv4 route with dsfield tests # 58.73 [+0.16] TEST: Reject route with dsfield 0x01 [ OK ] # 58.81 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 58.88 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 59.11 [+0.23] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 59.19 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 59.29 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 59.35 [+0.06] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 59.42 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 59.51 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 59.57 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 59.65 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 59.73 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 59.80 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 59.87 [+0.06] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 59.93 [+0.06] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 61.47 [+1.54] # 61.47 [+0.00] IPv6 prefix route tests # 63.04 [+1.57] TEST: Default metric [ OK ] # 63.28 [+0.24] TEST: User specified metric on first device [ OK ] # 63.54 [+0.26] TEST: User specified metric on second device [ OK ] # 63.68 [+0.14] TEST: Delete of address on first device [ OK ] # 63.82 [+0.14] TEST: Modify metric of address [ OK ] # 64.08 [+0.26] TEST: Prefix route removed on link down [ OK ] # 64.22 [+0.14] TEST: Prefix route with metric on link up [ OK ] # 64.44 [+0.22] TEST: Set metric with peer route on local side [ OK ] # 64.51 [+0.07] TEST: Set metric with peer route on peer side [ OK ] # 64.67 [+0.15] TEST: Modify metric and peer address on local side [ OK ] # 64.75 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 65.53 [+0.78] # 65.53 [+0.00] IPv4 prefix route tests # 67.02 [+1.49] TEST: Default metric [ OK ] # 67.25 [+0.24] TEST: User specified metric on first device [ OK ] # 67.48 [+0.23] TEST: User specified metric on second device [ OK ] # 67.63 [+0.15] TEST: Delete of address on first device [ OK ] # 67.78 [+0.15] TEST: Modify metric of address [ OK ] # 67.91 [+0.13] TEST: Prefix route removed on link down [ OK ] # 68.07 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 68.37 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 68.60 [+0.23] TEST: Set metric of address with peer route [ OK ] # 68.75 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 69.52 [+0.77] # 69.52 [+0.00] IPv6 routes with metrics # 73.23 [+3.71] TEST: Single path route with mtu metric [ OK ] # 73.47 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 73.71 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 73.87 [+0.17] TEST: MTU of second leg [ OK ] # 74.02 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 74.21 [+0.19] TEST: Using route with mtu metric [ OK ] # 74.35 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 75.76 [+1.42] # 75.76 [+0.00] IPv4 route add / append tests # 79.44 [+3.68] TEST: Single path route with mtu metric [ OK ] # 79.60 [+0.16] TEST: Multipath route with mtu metric [ OK ] # 79.79 [+0.18] TEST: Using route with mtu metric [ OK ] # 79.92 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 81.37 [+1.45] # 81.37 [+0.00] IPv4 route with IPv6 gateway tests # 87.02 [+5.65] TEST: Single path route with IPv6 gateway [ OK ] # 87.21 [+0.19] TEST: Single path route with IPv6 gateway - ping [ OK ] # 87.28 [+0.07] TEST: Single path route delete [ OK ] # 87.42 [+0.14] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 87.57 [+0.15] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.64 [+0.07] TEST: Multipath route delete exact match [ OK ] # 87.72 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 87.88 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 87.96 [+0.08] TEST: Multipath route delete exact match [ OK ] # 89.33 [+1.37] # 89.33 [+0.00] IPv4 rp_filter tests # 94.08 [+4.75] TEST: rp_filter passes local packets [ OK ] # 94.20 [+0.12] TEST: rp_filter passes loopback packets [ OK ] # 94.84 [+0.64] # 94.84 [+0.00] IPv4 delete address route tests # 97.07 [+2.23] Regular FIB info # 97.21 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 97.28 [+0.07] TEST: Route in default VRF not removed [ OK ] # 97.54 [+0.26] TEST: Route removed in default VRF when source address deleted [ OK ] # 97.61 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 97.61 [+0.00] Identical FIB info with different table ID # 97.74 [+0.13] TEST: Route removed from VRF when source address deleted [ OK ] # 97.80 [+0.06] TEST: Route in default VRF not removed [ OK ] # 98.08 [+0.28] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.15 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 98.16 [+0.00] Table ID 0 # 98.28 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 99.08 [+0.79] # 99.08 [+0.00] IPv6 delete address route tests # 102.96 [+3.88] Single device using src address # 103.10 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 103.10 [+0.00] Two devices with the same source address # 103.24 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.38 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.38 [+0.00] VRF with single device using src address # 103.51 [+0.13] TEST: Prefsrc removed when src address removed on other device [ OK ] # 103.51 [+0.00] VRF with two devices using src address # 103.65 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 103.78 [+0.13] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 103.78 [+0.00] src address and nexthop dev in same VRF # 103.93 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 104.00 [+0.06] TEST: Prefsrc in default VRF not removed [ OK ] # 104.28 [+0.28] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 104.35 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 104.35 [+0.00] src address and nexthop device in different VRF # 104.48 [+0.12] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 104.54 [+0.06] TEST: Prefsrc not removed in default VRF [ OK ] # 104.75 [+0.21] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 104.82 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 104.82 [+0.00] Table ID 0 # 104.94 [+0.12] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 104.94 [+0.00] Link local source route # 105.09 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 105.23 [+0.14] TEST: Prefsrc removed when delete ll addr [ OK ] # 105.30 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 105.50 [+0.20] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 106.82 [+1.33] # 106.82 [+0.00] IPv4 mangling tests # 113.35 [+6.53] TEST: Connection with correct parameters [ OK ] # 113.51 [+0.15] TEST: Connection with incorrect parameters [ OK ] # 114.37 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 115.15 [+0.78] TEST: Connection with correct parameters - no mangling [ OK ] # 115.21 [+0.06] TEST: Connection check - server side [ OK ] # 116.92 [+1.71] # 116.92 [+0.00] IPv6 mangling tests # 123.45 [+6.53] TEST: Connection with correct parameters [ OK ] # 123.62 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 124.42 [+0.80] TEST: Connection with correct parameters - mangling [ OK ] # 125.22 [+0.80] TEST: Connection with correct parameters - no mangling [ OK ] # 125.26 [+0.04] TEST: Connection check - server side [ OK ] # 126.90 [+1.63] # 126.90 [+0.00] IPv4 broadcast neighbour tests # 128.71 [+1.81] TEST: Resolved neighbour for broadcast address [ OK ] # 128.79 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 128.86 [+0.07] TEST: Unresolved neighbour for broadcast address [ OK ] # 128.94 [+0.07] TEST: Unresolved neighbour for network broadcast address [ OK ] # 130.46 [+1.52] # 130.46 [+0.00] Fib6 garbage collection test # 143.44 [+12.98] TEST: ipv6 route garbage collection [ OK ] # 156.62 [+13.18] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 169.82 [+13.20] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 183.09 [+13.27] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 197.13 [+14.04] TEST: ipv6 route garbage collection (RA message) [ OK ] # 197.74 [+0.62] # 197.74 [+0.00] IPv4 multipath list receive tests # 209.50 [+11.76] TEST: Multipath route hit ratio (1.00) [ OK ] # 211.11 [+1.61] # 211.11 [+0.00] IPv6 multipath list receive tests # 222.74 [+11.63] TEST: Multipath route hit ratio (.99) [ OK ] # 224.30 [+1.56] # 224.30 [+0.00] Tests passed: 229 # 224.30 [+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__->