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.18 [+0.81] Start point # 1.26 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.33 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.46 [+0.13] Nexthop device deleted # 1.54 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.62 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.09 [+0.48] # 2.10 [+0.00] Multipath route test # 3.54 [+1.45] Start point # 3.62 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.69 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.81 [+0.11] One nexthop device deleted # 3.89 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.96 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 4.08 [+0.12] Second nexthop device deleted # 4.15 [+0.08] TEST: IPv6 - no route [ OK ] # 4.62 [+0.46] # 4.62 [+0.00] Single path, admin down # 5.66 [+1.04] Start point # 5.73 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.80 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.88 [+0.07] Route deleted on down # 5.95 [+0.07] TEST: IPv4 fibmatch [ OK ] # 6.02 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.40 [+0.38] # 6.40 [+0.00] Admin down multipath # 7.87 [+1.46] Verify start point # 7.94 [+0.07] TEST: IPv4 fibmatch [ OK ] # 8.02 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.09 [+0.07] One device down, one up # 8.16 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.23 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.30 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.38 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.45 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.53 [+0.08] TEST: IPv6 flags on down device [ OK ] # 8.61 [+0.08] TEST: IPv4 flags on up device [ OK ] # 8.70 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.86 [+0.16] Other device down and up # 8.94 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.01 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 9.08 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.15 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 9.23 [+0.08] TEST: IPv4 flags on down device [ OK ] # 9.31 [+0.08] TEST: IPv6 flags on down device [ OK ] # 9.39 [+0.08] TEST: IPv4 flags on up device [ OK ] # 9.48 [+0.10] TEST: IPv6 flags on up device [ OK ] # 9.56 [+0.08] Both devices down # 9.63 [+0.07] TEST: IPv4 fibmatch [ OK ] # 9.70 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.17 [+0.47] # 10.17 [+0.00] Local carrier tests - single path # 11.26 [+1.09] Start point # 11.33 [+0.07] TEST: IPv4 fibmatch [ OK ] # 11.41 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.47 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 11.55 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 12.67 [+1.12] Carrier off on nexthop # 12.74 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.82 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.89 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.97 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 13.11 [+0.14] Route to local address with carrier down # 13.19 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.27 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.34 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 13.43 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 13.82 [+0.39] # 13.82 [+0.00] Single path route carrier test # 14.92 [+1.10] Start point # 14.99 [+0.07] TEST: IPv4 fibmatch [ OK ] # 15.06 [+0.07] TEST: IPv6 fibmatch [ OK ] # 15.13 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 15.20 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 16.31 [+1.11] Carrier down # 16.39 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.46 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.54 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 16.62 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 16.77 [+0.15] Second address added with carrier down # 16.84 [+0.07] TEST: IPv4 fibmatch [ OK ] # 16.92 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.99 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 17.07 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 20.91 [+3.84] # 20.91 [+0.00] IPv4 nexthop tests # 20.91 [+0.00] <<< write me >>> # 21.13 [+0.22] # 21.13 [+0.00] IPv6 nexthop tests # 21.22 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 21.30 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 21.39 [+0.09] TEST: Gateway is linklocal address [ OK ] # 21.47 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 21.56 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 21.64 [+0.08] TEST: Gateway can not be local unicast address, with device [ OK ] # 21.73 [+0.10] TEST: Gateway can not be a local linklocal address [ OK ] # 21.82 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 21.90 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 21.99 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 22.08 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 22.17 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 22.25 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 22.34 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 23.26 [+0.92] # 23.26 [+0.00] FIB rule with suppress_prefixlength # 24.81 [+1.55] TEST: FIB rule suppress test [ OK ] # 26.24 [+1.43] # 26.24 [+0.00] Fib6 info length calculation in route notify test # 29.99 [+3.75] TEST: ipv6 route add notify [ OK ] # 31.43 [+1.44] # 31.43 [+0.00] Fib4 info length calculation in route notify test # 35.17 [+3.74] TEST: ipv4 route add notify [ OK ] # 39.23 [+4.05] # 39.23 [+0.00] IPv6 route add / append tests # 39.53 [+0.31] TEST: Attempt to add duplicate route - gw [ OK ] # 39.87 [+0.33] TEST: Attempt to add duplicate route - dev only [ OK ] # 40.20 [+0.33] TEST: Attempt to add duplicate route - reject route [ OK ] # 40.62 [+0.43] TEST: Append nexthop to existing route - gw [ OK ] # 40.98 [+0.36] TEST: Add multipath route [ OK ] # 41.31 [+0.33] TEST: Attempt to add duplicate multipath route [ OK ] # 41.72 [+0.40] TEST: Route add with different metrics [ OK ] # 41.90 [+0.18] TEST: Route delete with metric [ OK ] # 41.90 [+0.00] # 41.90 [+0.00] IPv6 route replace tests # 42.34 [+0.43] TEST: Single path with single path [ OK ] # 42.75 [+0.41] TEST: Single path with multipath [ OK ] # 43.15 [+0.40] TEST: Single path with single path via multipath attribute [ OK ] # 43.57 [+0.42] TEST: Invalid nexthop [ OK ] # 43.88 [+0.31] TEST: Single path - replace of non-existent route [ OK ] # 44.31 [+0.42] TEST: Multipath with multipath [ OK ] # 44.73 [+0.42] TEST: Multipath with single path [ OK ] # 45.13 [+0.40] TEST: Multipath with single path via multipath attribute [ OK ] # 45.55 [+0.42] TEST: Multipath with dev-only [ OK ] # 45.99 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 46.41 [+0.42] TEST: Multipath - invalid second nexthop [ OK ] # 46.73 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 46.74 [+0.00] # 46.74 [+0.00] IPv6 route with dsfield tests # 46.91 [+0.17] TEST: Reject route with dsfield [ OK ] # 52.51 [+5.59] # 52.51 [+0.00] IPv4 route add / append tests # 52.85 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 53.17 [+0.33] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.49 [+0.32] TEST: Attempt to add duplicate route - reject route [ OK ] # 53.92 [+0.43] TEST: Add new nexthop for existing prefix [ OK ] # 54.33 [+0.41] TEST: Append nexthop to existing route - gw [ OK ] # 54.74 [+0.41] TEST: Append nexthop to existing route - dev only [ OK ] # 55.17 [+0.43] TEST: Append nexthop to existing route - reject route [ OK ] # 55.49 [+0.33] TEST: Append nexthop to existing reject route - gw [ OK ] # 55.84 [+0.34] TEST: Append nexthop to existing reject route - dev only [ OK ] # 56.17 [+0.33] TEST: add multipath route [ OK ] # 56.48 [+0.31] TEST: Attempt to add duplicate multipath route [ OK ] # 56.89 [+0.41] TEST: Route add with different metrics [ OK ] # 57.06 [+0.17] TEST: Route delete with metric [ OK ] # 57.06 [+0.00] # 57.06 [+0.00] IPv4 route replace tests # 57.47 [+0.41] TEST: Single path with single path [ OK ] # 57.88 [+0.40] TEST: Single path with multipath [ OK ] # 58.28 [+0.40] TEST: Single path with reject route [ OK ] # 58.69 [+0.41] TEST: Single path with single path via multipath attribute [ OK ] # 59.11 [+0.41] TEST: Invalid nexthop [ OK ] # 59.42 [+0.32] TEST: Single path - replace of non-existent route [ OK ] # 59.84 [+0.42] TEST: Multipath with multipath [ OK ] # 60.25 [+0.40] TEST: Multipath with single path [ OK ] # 60.67 [+0.42] TEST: Multipath with single path via multipath attribute [ OK ] # 61.06 [+0.39] TEST: Multipath with reject route [ OK ] # 61.48 [+0.42] TEST: Multipath - invalid first nexthop [ OK ] # 61.88 [+0.40] TEST: Multipath - invalid second nexthop [ OK ] # 62.20 [+0.32] TEST: Multipath - replace of non-existent route [ OK ] # 63.58 [+1.38] TEST: Cached route removed from VRF port device [ OK ] # 63.58 [+0.00] # 63.58 [+0.00] IPv4 route with dsfield tests # 63.74 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 63.82 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 63.90 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 64.15 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 64.22 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 64.33 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 64.40 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 64.48 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 64.58 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 64.66 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 64.73 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 64.81 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 64.91 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 64.98 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 65.05 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 66.68 [+1.63] # 66.68 [+0.00] IPv6 prefix route tests # 68.44 [+1.75] TEST: Default metric [ OK ] # 68.71 [+0.27] TEST: User specified metric on first device [ OK ] # 68.99 [+0.28] TEST: User specified metric on second device [ OK ] # 69.18 [+0.19] TEST: Delete of address on first device [ OK ] # 69.35 [+0.17] TEST: Modify metric of address [ OK ] # 69.63 [+0.28] TEST: Prefix route removed on link down [ OK ] # 69.83 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 70.14 [+0.30] TEST: Set metric with peer route on local side [ OK ] # 70.23 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 70.42 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 70.51 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 71.50 [+0.99] # 71.50 [+0.00] IPv4 prefix route tests # 73.25 [+1.74] TEST: Default metric [ OK ] # 73.49 [+0.25] TEST: User specified metric on first device [ OK ] # 73.74 [+0.24] TEST: User specified metric on second device [ OK ] # 73.90 [+0.16] TEST: Delete of address on first device [ OK ] # 74.07 [+0.17] TEST: Modify metric of address [ OK ] # 74.23 [+0.16] TEST: Prefix route removed on link down [ OK ] # 74.39 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 74.73 [+0.34] TEST: Modify metric of .0/24 address [ OK ] # 74.98 [+0.25] TEST: Set metric of address with peer route [ OK ] # 75.14 [+0.16] TEST: Modify metric and peer address for peer route [ OK ] # 76.01 [+0.87] # 76.01 [+0.00] IPv6 routes with metrics # 80.09 [+4.08] TEST: Single path route with mtu metric [ OK ] # 80.33 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 80.59 [+0.26] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 80.76 [+0.16] TEST: MTU of second leg [ OK ] # 80.93 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 81.14 [+0.22] TEST: Using route with mtu metric [ OK ] # 81.28 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 82.89 [+1.61] # 82.89 [+0.00] IPv4 route add / append tests # 86.92 [+4.03] TEST: Single path route with mtu metric [ OK ] # 87.09 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 87.29 [+0.20] TEST: Using route with mtu metric [ OK ] # 87.43 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 89.00 [+1.57] # 89.00 [+0.00] IPv4 route with IPv6 gateway tests # 95.00 [+6.00] TEST: Single path route with IPv6 gateway [ OK ] # 95.21 [+0.21] TEST: Single path route with IPv6 gateway - ping [ OK ] # 95.29 [+0.08] TEST: Single path route delete [ OK ] # 95.46 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 95.62 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 95.70 [+0.08] TEST: Multipath route delete exact match [ OK ] # 95.79 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 95.95 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 96.05 [+0.09] TEST: Multipath route delete exact match [ OK ] # 97.66 [+1.62] # 97.66 [+0.00] IPv4 rp_filter tests # 102.97 [+5.31] TEST: rp_filter passes local packets [ OK ] # 103.10 [+0.13] TEST: rp_filter passes loopback packets [ OK ] # 103.79 [+0.69] # 103.79 [+0.00] IPv4 delete address route tests # 106.27 [+2.48] Regular FIB info # 106.43 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 106.52 [+0.08] TEST: Route in default VRF not removed [ OK ] # 106.81 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 106.89 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 106.89 [+0.00] Identical FIB info with different table ID # 107.04 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 107.12 [+0.08] TEST: Route in default VRF not removed [ OK ] # 107.41 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 107.49 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 107.49 [+0.00] Table ID 0 # 107.65 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 108.53 [+0.88] # 108.53 [+0.00] IPv6 delete address route tests # 112.74 [+4.21] Single device using src address # 112.89 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 112.89 [+0.00] Two devices with the same source address # 113.04 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 113.20 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 113.20 [+0.00] VRF with single device using src address # 113.36 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 113.36 [+0.00] VRF with two devices using src address # 113.53 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 113.68 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 113.68 [+0.00] src address and nexthop dev in same VRF # 113.83 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 113.91 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 114.21 [+0.29] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 114.27 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 114.28 [+0.00] src address and nexthop device in different VRF # 114.42 [+0.14] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 114.51 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 114.72 [+0.22] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 114.80 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 114.80 [+0.00] Table ID 0 # 114.96 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 114.96 [+0.00] Link local source route # 115.12 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 115.26 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 115.35 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 115.57 [+0.22] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 116.99 [+1.42] # 116.99 [+0.00] IPv4 mangling tests # 124.12 [+7.14] TEST: Connection with correct parameters [ OK ] # 124.28 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 125.22 [+0.94] TEST: Connection with correct parameters - mangling [ OK ] # 126.04 [+0.82] TEST: Connection with correct parameters - no mangling [ OK ] # 126.09 [+0.05] TEST: Connection check - server side [ OK ] # 127.93 [+1.84] # 127.93 [+0.00] IPv6 mangling tests # 135.18 [+7.24] TEST: Connection with correct parameters [ OK ] # 135.34 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 136.17 [+0.83] TEST: Connection with correct parameters - mangling [ OK ] # 137.00 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 137.05 [+0.05] TEST: Connection check - server side [ OK ] # 138.88 [+1.82] # 138.88 [+0.00] IPv4 broadcast neighbour tests # 140.87 [+1.99] TEST: Resolved neighbour for broadcast address [ OK ] # 140.95 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 141.03 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 141.12 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 142.80 [+1.68] # 142.80 [+0.00] Fib6 garbage collection test # 155.88 [+13.08] TEST: ipv6 route garbage collection [ OK ] # 169.19 [+13.31] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 182.48 [+13.29] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 195.87 [+13.39] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 210.06 [+14.19] TEST: ipv6 route garbage collection (RA message) [ OK ] # 210.80 [+0.74] # 210.80 [+0.00] IPv4 multipath list receive tests # 227.15 [+16.34] TEST: Multipath route hit ratio (1.00) [ OK ] # 228.98 [+1.83] # 228.98 [+0.00] IPv6 multipath list receive tests # 244.92 [+15.94] TEST: Multipath route hit ratio (1.00) [ OK ] # 246.64 [+1.72] # 246.64 [+0.00] Tests passed: 229 # 246.64 [+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__->