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.41 [+0.41] # 0.41 [+0.00] Single path route test # 1.27 [+0.86] Start point # 1.35 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.43 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.56 [+0.13] Nexthop device deleted # 1.64 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.71 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 2.22 [+0.51] # 2.22 [+0.00] Multipath route test # 3.78 [+1.56] Start point # 3.86 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.94 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.07 [+0.13] One nexthop device deleted # 4.14 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.22 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.34 [+0.12] Second nexthop device deleted # 4.42 [+0.08] TEST: IPv6 - no route [ OK ] # 4.93 [+0.51] # 4.93 [+0.00] Single path, admin down # 5.99 [+1.06] Start point # 6.07 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.15 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.24 [+0.08] Route deleted on down # 6.31 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.39 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.78 [+0.38] # 6.78 [+0.00] Admin down multipath # 8.34 [+1.56] Verify start point # 8.41 [+0.07] TEST: IPv4 fibmatch [ OK ] # 8.50 [+0.09] TEST: IPv6 fibmatch [ OK ] # 8.57 [+0.07] One device down, one up # 8.65 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 8.72 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.80 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 8.88 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.97 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.06 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.17 [+0.11] TEST: IPv4 flags on up device [ OK ] # 9.27 [+0.10] TEST: IPv6 flags on up device [ OK ] # 9.43 [+0.16] Other device down and up # 9.51 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.58 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 9.67 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 9.75 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 9.84 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.94 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.04 [+0.10] TEST: IPv4 flags on up device [ OK ] # 10.13 [+0.09] TEST: IPv6 flags on up device [ OK ] # 10.20 [+0.07] Both devices down # 10.28 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.36 [+0.08] TEST: IPv6 fibmatch [ OK ] # 10.94 [+0.58] # 10.94 [+0.00] Local carrier tests - single path # 12.18 [+1.23] Start point # 12.25 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.33 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.41 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 12.49 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 13.61 [+1.12] Carrier off on nexthop # 13.70 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.78 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.91 [+0.13] TEST: IPv4 - linkdown flag set [ OK ] # 13.98 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 14.14 [+0.15] Route to local address with carrier down # 14.21 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.30 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.39 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 14.47 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 14.91 [+0.44] # 14.91 [+0.00] Single path route carrier test # 16.10 [+1.19] Start point # 16.19 [+0.09] TEST: IPv4 fibmatch [ OK ] # 16.27 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.37 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 16.47 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 17.60 [+1.13] Carrier down # 17.68 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.76 [+0.08] TEST: IPv6 fibmatch [ OK ] # 17.85 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 17.94 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 18.09 [+0.16] Second address added with carrier down # 18.17 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.26 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.34 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.42 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 22.53 [+4.11] # 22.53 [+0.00] IPv4 nexthop tests # 22.53 [+0.00] <<< write me >>> # 22.74 [+0.22] # 22.74 [+0.00] IPv6 nexthop tests # 22.83 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 22.92 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.00 [+0.09] TEST: Gateway is linklocal address [ OK ] # 23.09 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 23.18 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 23.27 [+0.10] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.37 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 23.46 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 23.54 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.65 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 23.74 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 23.83 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 23.92 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 24.01 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 24.94 [+0.93] # 24.94 [+0.00] FIB rule with suppress_prefixlength # 26.61 [+1.67] TEST: FIB rule suppress test [ OK ] # 28.13 [+1.51] # 28.13 [+0.00] Fib6 info length calculation in route notify test # 31.97 [+3.84] TEST: ipv6 route add notify [ OK ] # 33.51 [+1.54] # 33.51 [+0.00] Fib4 info length calculation in route notify test # 37.39 [+3.88] TEST: ipv4 route add notify [ OK ] # 42.37 [+4.98] # 42.37 [+0.00] IPv6 route add / append tests # 42.79 [+0.42] TEST: Attempt to add duplicate route - gw [ OK ] # 43.20 [+0.41] TEST: Attempt to add duplicate route - dev only [ OK ] # 43.64 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 44.11 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 44.47 [+0.36] TEST: Add multipath route [ OK ] # 44.83 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 45.28 [+0.45] TEST: Route add with different metrics [ OK ] # 45.48 [+0.20] TEST: Route delete with metric [ OK ] # 45.48 [+0.00] # 45.48 [+0.00] IPv6 route replace tests # 45.95 [+0.47] TEST: Single path with single path [ OK ] # 46.41 [+0.45] TEST: Single path with multipath [ OK ] # 46.87 [+0.47] TEST: Single path with single path via multipath attribute [ OK ] # 47.34 [+0.46] TEST: Invalid nexthop [ OK ] # 47.72 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 48.19 [+0.46] TEST: Multipath with multipath [ OK ] # 48.61 [+0.42] TEST: Multipath with single path [ OK ] # 49.04 [+0.42] TEST: Multipath with single path via multipath attribute [ OK ] # 49.49 [+0.45] TEST: Multipath with dev-only [ OK ] # 49.95 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 50.44 [+0.49] TEST: Multipath - invalid second nexthop [ OK ] # 50.76 [+0.32] TEST: Multipath - replace of non-existent route [ OK ] # 50.76 [+0.00] # 50.76 [+0.00] IPv6 route with dsfield tests # 50.94 [+0.18] TEST: Reject route with dsfield [ OK ] # 57.04 [+6.10] # 57.04 [+0.00] IPv4 route add / append tests # 57.40 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 57.73 [+0.34] TEST: Attempt to add duplicate route - dev only [ OK ] # 58.07 [+0.34] TEST: Attempt to add duplicate route - reject route [ OK ] # 58.52 [+0.45] TEST: Add new nexthop for existing prefix [ OK ] # 58.96 [+0.44] TEST: Append nexthop to existing route - gw [ OK ] # 59.39 [+0.43] TEST: Append nexthop to existing route - dev only [ OK ] # 59.82 [+0.43] TEST: Append nexthop to existing route - reject route [ OK ] # 60.17 [+0.35] TEST: Append nexthop to existing reject route - gw [ OK ] # 60.57 [+0.40] TEST: Append nexthop to existing reject route - dev only [ OK ] # 60.94 [+0.36] TEST: add multipath route [ OK ] # 61.31 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 61.75 [+0.44] TEST: Route add with different metrics [ OK ] # 61.94 [+0.19] TEST: Route delete with metric [ OK ] # 61.94 [+0.00] # 61.94 [+0.00] IPv4 route replace tests # 62.38 [+0.43] TEST: Single path with single path [ OK ] # 62.82 [+0.44] TEST: Single path with multipath [ OK ] # 63.26 [+0.44] TEST: Single path with reject route [ OK ] # 63.72 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 64.17 [+0.46] TEST: Invalid nexthop [ OK ] # 64.55 [+0.37] TEST: Single path - replace of non-existent route [ OK ] # 64.98 [+0.44] TEST: Multipath with multipath [ OK ] # 65.42 [+0.44] TEST: Multipath with single path [ OK ] # 65.89 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 66.34 [+0.46] TEST: Multipath with reject route [ OK ] # 66.81 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 67.24 [+0.43] TEST: Multipath - invalid second nexthop [ OK ] # 67.58 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 69.02 [+1.44] TEST: Cached route removed from VRF port device [ OK ] # 69.02 [+0.00] # 69.02 [+0.00] IPv4 route with dsfield tests # 69.19 [+0.17] TEST: Reject route with dsfield 0x01 [ OK ] # 69.29 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 69.38 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 69.67 [+0.29] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 69.78 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 69.87 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 69.96 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 70.06 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 70.16 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 70.25 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 70.33 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 70.41 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 70.48 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 70.56 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 70.65 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 72.33 [+1.68] # 72.34 [+0.00] IPv6 prefix route tests # 74.19 [+1.85] TEST: Default metric [ OK ] # 74.46 [+0.27] TEST: User specified metric on first device [ OK ] # 74.74 [+0.29] TEST: User specified metric on second device [ OK ] # 74.93 [+0.19] TEST: Delete of address on first device [ OK ] # 75.13 [+0.20] TEST: Modify metric of address [ OK ] # 75.43 [+0.30] TEST: Prefix route removed on link down [ OK ] # 75.63 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 75.89 [+0.27] TEST: Set metric with peer route on local side [ OK ] # 75.98 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 76.15 [+0.17] TEST: Modify metric and peer address on local side [ OK ] # 76.26 [+0.10] TEST: Modify metric and peer address on peer side [ OK ] # 77.26 [+1.00] # 77.26 [+0.00] IPv4 prefix route tests # 79.05 [+1.80] TEST: Default metric [ OK ] # 79.35 [+0.29] TEST: User specified metric on first device [ OK ] # 79.63 [+0.29] TEST: User specified metric on second device [ OK ] # 79.81 [+0.18] TEST: Delete of address on first device [ OK ] # 79.99 [+0.18] TEST: Modify metric of address [ OK ] # 80.17 [+0.17] TEST: Prefix route removed on link down [ OK ] # 80.34 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 80.72 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 80.99 [+0.27] TEST: Set metric of address with peer route [ OK ] # 81.16 [+0.17] TEST: Modify metric and peer address for peer route [ OK ] # 82.14 [+0.99] # 82.14 [+0.00] IPv6 routes with metrics # 86.58 [+4.44] TEST: Single path route with mtu metric [ OK ] # 86.87 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 87.12 [+0.26] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 87.30 [+0.18] TEST: MTU of second leg [ OK ] # 87.50 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 87.72 [+0.22] TEST: Using route with mtu metric [ OK ] # 87.89 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 89.49 [+1.61] # 89.49 [+0.00] IPv4 route add / append tests # 94.04 [+4.55] TEST: Single path route with mtu metric [ OK ] # 94.22 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 94.46 [+0.24] TEST: Using route with mtu metric [ OK ] # 94.63 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 96.37 [+1.74] # 96.37 [+0.00] IPv4 route with IPv6 gateway tests # 102.68 [+6.30] TEST: Single path route with IPv6 gateway [ OK ] # 102.90 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 102.99 [+0.09] TEST: Single path route delete [ OK ] # 103.16 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 103.33 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 103.43 [+0.09] TEST: Multipath route delete exact match [ OK ] # 103.52 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 103.70 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 103.79 [+0.09] TEST: Multipath route delete exact match [ OK ] # 105.40 [+1.61] # 105.40 [+0.00] IPv4 rp_filter tests # 111.10 [+5.69] TEST: rp_filter passes local packets [ OK ] # 111.25 [+0.15] TEST: rp_filter passes loopback packets [ OK ] # 112.03 [+0.78] # 112.03 [+0.00] IPv4 delete address route tests # 114.75 [+2.72] Regular FIB info # 114.91 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 114.98 [+0.07] TEST: Route in default VRF not removed [ OK ] # 115.31 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 115.40 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 115.40 [+0.00] Identical FIB info with different table ID # 115.60 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 115.69 [+0.09] TEST: Route in default VRF not removed [ OK ] # 116.02 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 116.11 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 116.11 [+0.00] Table ID 0 # 116.26 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 117.18 [+0.92] # 117.18 [+0.00] IPv6 delete address route tests # 121.62 [+4.44] Single device using src address # 121.78 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 121.78 [+0.00] Two devices with the same source address # 121.94 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 122.09 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 122.09 [+0.00] VRF with single device using src address # 122.26 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 122.26 [+0.00] VRF with two devices using src address # 122.41 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 122.57 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 122.58 [+0.00] src address and nexthop dev in same VRF # 122.74 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 122.85 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 123.16 [+0.31] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 123.25 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 123.25 [+0.00] src address and nexthop device in different VRF # 123.41 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 123.52 [+0.12] TEST: Prefsrc not removed in default VRF [ OK ] # 123.76 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 123.84 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 123.85 [+0.00] Table ID 0 # 124.02 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 124.02 [+0.00] Link local source route # 124.20 [+0.18] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 124.37 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 124.48 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 124.73 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 126.24 [+1.51] # 126.24 [+0.00] IPv4 mangling tests # 133.69 [+7.45] TEST: Connection with correct parameters [ OK ] # 133.87 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 134.85 [+0.98] TEST: Connection with correct parameters - mangling [ OK ] # 135.70 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 135.76 [+0.06] TEST: Connection check - server side [ OK ] # 137.70 [+1.94] # 137.70 [+0.00] IPv6 mangling tests # 144.99 [+7.30] TEST: Connection with correct parameters [ OK ] # 145.20 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 146.04 [+0.84] TEST: Connection with correct parameters - mangling [ OK ] # 146.89 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 146.94 [+0.05] TEST: Connection check - server side [ OK ] # 148.91 [+1.96] # 148.91 [+0.00] IPv4 broadcast neighbour tests # 151.03 [+2.12] TEST: Resolved neighbour for broadcast address [ OK ] # 151.12 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 151.20 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 151.29 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 153.11 [+1.82] # 153.11 [+0.00] Fib6 garbage collection test # 166.31 [+13.20] TEST: ipv6 route garbage collection [ OK ] # 179.77 [+13.46] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 193.14 [+13.37] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 206.64 [+13.51] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 220.92 [+14.27] TEST: ipv6 route garbage collection (RA message) [ OK ] # 221.62 [+0.71] # 221.63 [+0.00] IPv4 multipath list receive tests # 238.06 [+16.44] TEST: Multipath route hit ratio (1.00) [ OK ] # 239.80 [+1.73] # 239.80 [+0.00] IPv6 multipath list receive tests # 255.78 [+15.98] TEST: Multipath route hit ratio (1.00) [ OK ] # 257.51 [+1.74] # 257.51 [+0.00] Tests passed: 229 # 257.51 [+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__->