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.40 [+0.40] # 0.40 [+0.00] Single path route test # 1.24 [+0.84] Start point # 1.32 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.41 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.53 [+0.13] Nexthop device deleted # 1.60 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.68 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.20 [+0.51] # 2.20 [+0.00] Multipath route test # 3.74 [+1.54] Start point # 3.82 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.90 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.02 [+0.12] One nexthop device deleted # 4.09 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.17 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.30 [+0.13] Second nexthop device deleted # 4.38 [+0.07] TEST: IPv6 - no route [ OK ] # 4.87 [+0.49] # 4.87 [+0.00] Single path, admin down # 5.92 [+1.05] Start point # 6.01 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.09 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.17 [+0.07] Route deleted on down # 6.24 [+0.07] TEST: IPv4 fibmatch [ OK ] # 6.33 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.74 [+0.41] # 6.74 [+0.00] Admin down multipath # 8.28 [+1.54] Verify start point # 8.37 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.44 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.52 [+0.07] One device down, one up # 8.59 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 8.67 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.75 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 8.83 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.93 [+0.10] TEST: IPv4 flags on down device [ OK ] # 9.01 [+0.08] TEST: IPv6 flags on down device [ OK ] # 9.10 [+0.09] TEST: IPv4 flags on up device [ OK ] # 9.19 [+0.10] TEST: IPv6 flags on up device [ OK ] # 9.35 [+0.16] Other device down and up # 9.43 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.51 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.59 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.66 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 9.77 [+0.11] TEST: IPv4 flags on down device [ OK ] # 9.87 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.95 [+0.08] TEST: IPv4 flags on up device [ OK ] # 10.05 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.14 [+0.08] Both devices down # 10.22 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.29 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.90 [+0.60] # 10.90 [+0.00] Local carrier tests - single path # 12.15 [+1.25] Start point # 12.23 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.32 [+0.09] TEST: IPv6 fibmatch [ OK ] # 12.43 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 12.51 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 13.65 [+1.14] Carrier off on nexthop # 13.74 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.83 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.93 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 14.02 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 14.19 [+0.17] Route to local address with carrier down # 14.26 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.34 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.42 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 14.52 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 14.96 [+0.43] # 14.96 [+0.00] Single path route carrier test # 16.12 [+1.16] Start point # 16.20 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.27 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.35 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 16.43 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 17.57 [+1.14] Carrier down # 17.66 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.74 [+0.07] TEST: IPv6 fibmatch [ OK ] # 17.82 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 17.90 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 18.06 [+0.17] Second address added with carrier down # 18.14 [+0.07] TEST: IPv4 fibmatch [ OK ] # 18.21 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.30 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.36 [+0.06] TEST: IPv6 linkdown flag set [ OK ] # 22.38 [+4.02] # 22.38 [+0.00] IPv4 nexthop tests # 22.38 [+0.00] <<< write me >>> # 22.59 [+0.21] # 22.59 [+0.00] IPv6 nexthop tests # 22.67 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 22.76 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 22.86 [+0.09] TEST: Gateway is linklocal address [ OK ] # 22.95 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 23.04 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 23.12 [+0.08] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.21 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 23.30 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 23.39 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.48 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 23.58 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 23.66 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 23.75 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 23.83 [+0.08] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 24.79 [+0.95] # 24.79 [+0.00] FIB rule with suppress_prefixlength # 26.42 [+1.64] TEST: FIB rule suppress test [ OK ] # 27.94 [+1.52] # 27.94 [+0.00] Fib6 info length calculation in route notify test # 31.78 [+3.84] TEST: ipv6 route add notify [ OK ] # 33.31 [+1.53] # 33.31 [+0.00] Fib4 info length calculation in route notify test # 37.16 [+3.86] TEST: ipv4 route add notify [ OK ] # 41.28 [+4.11] # 41.28 [+0.00] IPv6 route add / append tests # 41.62 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 41.95 [+0.33] TEST: Attempt to add duplicate route - dev only [ OK ] # 42.30 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 42.73 [+0.43] TEST: Append nexthop to existing route - gw [ OK ] # 43.09 [+0.37] TEST: Add multipath route [ OK ] # 43.44 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 43.86 [+0.42] TEST: Route add with different metrics [ OK ] # 44.04 [+0.19] TEST: Route delete with metric [ OK ] # 44.05 [+0.00] # 44.05 [+0.00] IPv6 route replace tests # 44.49 [+0.45] TEST: Single path with single path [ OK ] # 44.95 [+0.45] TEST: Single path with multipath [ OK ] # 45.38 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 45.81 [+0.44] TEST: Invalid nexthop [ OK ] # 46.16 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 46.61 [+0.46] TEST: Multipath with multipath [ OK ] # 47.07 [+0.46] TEST: Multipath with single path [ OK ] # 47.50 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 47.96 [+0.45] TEST: Multipath with dev-only [ OK ] # 48.41 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 48.87 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 49.20 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 49.20 [+0.00] # 49.20 [+0.00] IPv6 route with dsfield tests # 49.39 [+0.19] TEST: Reject route with dsfield [ OK ] # 55.31 [+5.93] # 55.31 [+0.00] IPv4 route add / append tests # 55.66 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 56.01 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 56.35 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 56.79 [+0.44] TEST: Add new nexthop for existing prefix [ OK ] # 57.22 [+0.43] TEST: Append nexthop to existing route - gw [ OK ] # 57.66 [+0.44] TEST: Append nexthop to existing route - dev only [ OK ] # 58.10 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 58.46 [+0.36] TEST: Append nexthop to existing reject route - gw [ OK ] # 58.82 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 59.16 [+0.34] TEST: add multipath route [ OK ] # 59.53 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 59.96 [+0.43] TEST: Route add with different metrics [ OK ] # 60.13 [+0.18] TEST: Route delete with metric [ OK ] # 60.13 [+0.00] # 60.14 [+0.00] IPv4 route replace tests # 60.57 [+0.44] TEST: Single path with single path [ OK ] # 61.02 [+0.45] TEST: Single path with multipath [ OK ] # 61.47 [+0.45] TEST: Single path with reject route [ OK ] # 61.90 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 62.34 [+0.44] TEST: Invalid nexthop [ OK ] # 62.68 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 63.13 [+0.46] TEST: Multipath with multipath [ OK ] # 63.58 [+0.44] TEST: Multipath with single path [ OK ] # 64.02 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 64.46 [+0.44] TEST: Multipath with reject route [ OK ] # 64.90 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 65.33 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 65.68 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 67.11 [+1.43] TEST: Cached route removed from VRF port device [ OK ] # 67.11 [+0.00] # 67.11 [+0.00] IPv4 route with dsfield tests # 67.29 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 67.39 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 67.47 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 67.73 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 67.81 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 67.90 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 67.98 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 68.06 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 68.15 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 68.24 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 68.32 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 68.41 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 68.50 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 68.59 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 68.67 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 70.26 [+1.58] # 70.26 [+0.00] IPv6 prefix route tests # 72.20 [+1.95] TEST: Default metric [ OK ] # 72.50 [+0.30] TEST: User specified metric on first device [ OK ] # 72.79 [+0.29] TEST: User specified metric on second device [ OK ] # 72.97 [+0.18] TEST: Delete of address on first device [ OK ] # 73.17 [+0.20] TEST: Modify metric of address [ OK ] # 73.49 [+0.32] TEST: Prefix route removed on link down [ OK ] # 73.69 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 73.97 [+0.28] TEST: Set metric with peer route on local side [ OK ] # 74.06 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 74.24 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 74.35 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 75.35 [+0.99] # 75.35 [+0.00] IPv4 prefix route tests # 77.18 [+1.83] TEST: Default metric [ OK ] # 77.45 [+0.27] TEST: User specified metric on first device [ OK ] # 77.73 [+0.28] TEST: User specified metric on second device [ OK ] # 77.91 [+0.19] TEST: Delete of address on first device [ OK ] # 78.11 [+0.19] TEST: Modify metric of address [ OK ] # 78.28 [+0.17] TEST: Prefix route removed on link down [ OK ] # 78.47 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 78.83 [+0.36] TEST: Modify metric of .0/24 address [ OK ] # 79.12 [+0.29] TEST: Set metric of address with peer route [ OK ] # 79.30 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 80.25 [+0.95] # 80.25 [+0.00] IPv6 routes with metrics # 84.90 [+4.65] TEST: Single path route with mtu metric [ OK ] # 85.20 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 85.50 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 85.68 [+0.18] TEST: MTU of second leg [ OK ] # 85.89 [+0.22] TEST: Multipath route with mtu metric [ OK ] # 86.14 [+0.24] TEST: Using route with mtu metric [ OK ] # 86.29 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 87.96 [+1.67] # 87.96 [+0.00] IPv4 route add / append tests # 92.56 [+4.60] TEST: Single path route with mtu metric [ OK ] # 92.75 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 92.98 [+0.23] TEST: Using route with mtu metric [ OK ] # 93.14 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 94.81 [+1.67] # 94.81 [+0.00] IPv4 route with IPv6 gateway tests # 101.29 [+6.48] TEST: Single path route with IPv6 gateway [ OK ] # 101.52 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 101.60 [+0.09] TEST: Single path route delete [ OK ] # 101.78 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 101.96 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 102.06 [+0.10] TEST: Multipath route delete exact match [ OK ] # 102.14 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 102.33 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 102.43 [+0.09] TEST: Multipath route delete exact match [ OK ] # 104.07 [+1.65] # 104.07 [+0.00] IPv4 rp_filter tests # 109.84 [+5.77] TEST: rp_filter passes local packets [ OK ] # 109.99 [+0.15] TEST: rp_filter passes loopback packets [ OK ] # 110.73 [+0.75] # 110.73 [+0.00] IPv4 delete address route tests # 113.47 [+2.73] Regular FIB info # 113.62 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 113.71 [+0.08] TEST: Route in default VRF not removed [ OK ] # 114.05 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 114.13 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 114.13 [+0.00] Identical FIB info with different table ID # 114.30 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 114.38 [+0.08] TEST: Route in default VRF not removed [ OK ] # 114.71 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 114.79 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 114.79 [+0.00] Table ID 0 # 114.96 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 115.90 [+0.95] # 115.90 [+0.00] IPv6 delete address route tests # 120.50 [+4.59] Single device using src address # 120.67 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 120.68 [+0.00] Two devices with the same source address # 120.84 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 121.02 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 121.02 [+0.00] VRF with single device using src address # 121.18 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 121.19 [+0.00] VRF with two devices using src address # 121.35 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 121.52 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 121.52 [+0.00] src address and nexthop dev in same VRF # 121.67 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 121.76 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 122.09 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 122.17 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 122.17 [+0.00] src address and nexthop device in different VRF # 122.35 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 122.43 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 122.67 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 122.75 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 122.76 [+0.00] Table ID 0 # 122.93 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 122.93 [+0.00] Link local source route # 123.07 [+0.14] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 123.25 [+0.18] TEST: Prefsrc removed when delete ll addr [ OK ] # 123.34 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 123.59 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 125.06 [+1.47] # 125.06 [+0.00] IPv4 mangling tests # 132.45 [+7.39] TEST: Connection with correct parameters [ OK ] # 132.62 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 133.54 [+0.93] TEST: Connection with correct parameters - mangling [ OK ] # 134.38 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 134.44 [+0.06] TEST: Connection check - server side [ OK ] # 136.45 [+2.01] # 136.45 [+0.00] IPv6 mangling tests # 143.89 [+7.45] TEST: Connection with correct parameters [ OK ] # 144.08 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 144.93 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 145.81 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 145.86 [+0.05] TEST: Connection check - server side [ OK ] # 147.83 [+1.97] # 147.83 [+0.00] IPv4 broadcast neighbour tests # 149.97 [+2.13] TEST: Resolved neighbour for broadcast address [ OK ] # 150.06 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 150.14 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 150.23 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 152.07 [+1.83] # 152.07 [+0.00] Fib6 garbage collection test # 165.26 [+13.19] TEST: ipv6 route garbage collection [ OK ] # 178.66 [+13.40] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 192.03 [+13.38] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 205.52 [+13.49] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 219.82 [+14.30] TEST: ipv6 route garbage collection (RA message) [ OK ] # 220.55 [+0.73] # 220.55 [+0.00] IPv4 multipath list receive tests # 236.83 [+16.28] TEST: Multipath route hit ratio (1.00) [ OK ] # 238.60 [+1.78] # 238.60 [+0.00] IPv6 multipath list receive tests # 254.85 [+16.24] TEST: Multipath route hit ratio (.99) [ OK ] # 256.78 [+1.94] # 256.78 [+0.00] Tests passed: 229 # 256.78 [+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__->