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.24 [+0.86] Start point # 1.33 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.40 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.53 [+0.13] Nexthop device deleted # 1.61 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.69 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.21 [+0.53] # 2.21 [+0.00] Multipath route test # 3.82 [+1.61] Start point # 3.90 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.98 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.11 [+0.12] One nexthop device deleted # 4.19 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.27 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.40 [+0.13] Second nexthop device deleted # 4.49 [+0.09] TEST: IPv6 - no route [ OK ] # 5.00 [+0.51] # 5.00 [+0.00] Single path, admin down # 6.08 [+1.09] Start point # 6.15 [+0.07] TEST: IPv4 fibmatch [ OK ] # 6.24 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.32 [+0.08] Route deleted on down # 6.40 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.48 [+0.07] TEST: IPv6 fibmatch [ OK ] # 6.91 [+0.44] # 6.91 [+0.00] Admin down multipath # 8.50 [+1.59] Verify start point # 8.58 [+0.08] TEST: IPv4 fibmatch [ OK ] # 8.65 [+0.07] TEST: IPv6 fibmatch [ OK ] # 8.73 [+0.08] One device down, one up # 8.81 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 8.89 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 8.97 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.05 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 9.12 [+0.07] TEST: IPv4 flags on down device [ OK ] # 9.23 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.32 [+0.09] TEST: IPv4 flags on up device [ OK ] # 9.42 [+0.10] TEST: IPv6 flags on up device [ OK ] # 9.58 [+0.17] Other device down and up # 9.65 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 9.74 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.82 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.91 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.00 [+0.09] TEST: IPv4 flags on down device [ OK ] # 10.08 [+0.08] TEST: IPv6 flags on down device [ OK ] # 10.20 [+0.12] TEST: IPv4 flags on up device [ OK ] # 10.30 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.39 [+0.09] Both devices down # 10.47 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.54 [+0.07] TEST: IPv6 fibmatch [ OK ] # 11.10 [+0.56] # 11.10 [+0.00] Local carrier tests - single path # 12.28 [+1.17] Start point # 12.35 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.43 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.52 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 12.61 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 13.74 [+1.13] Carrier off on nexthop # 13.82 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.91 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.99 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 14.08 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 14.23 [+0.16] Route to local address with carrier down # 14.31 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.41 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.49 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 14.57 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.02 [+0.45] # 15.02 [+0.00] Single path route carrier test # 16.25 [+1.23] Start point # 16.34 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.42 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.50 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 16.59 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 17.72 [+1.13] Carrier down # 17.82 [+0.10] TEST: IPv4 fibmatch [ OK ] # 17.91 [+0.08] TEST: IPv6 fibmatch [ OK ] # 17.98 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.08 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 18.25 [+0.16] Second address added with carrier down # 18.35 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.43 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.50 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.59 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 22.82 [+4.23] # 22.82 [+0.00] IPv4 nexthop tests # 22.82 [+0.00] <<< write me >>> # 23.03 [+0.21] # 23.03 [+0.00] IPv6 nexthop tests # 23.12 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 23.21 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.31 [+0.10] TEST: Gateway is linklocal address [ OK ] # 23.40 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 23.49 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 23.58 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.68 [+0.10] TEST: Gateway can not be a local linklocal address [ OK ] # 23.77 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 23.87 [+0.10] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.96 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.04 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 24.16 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.27 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 24.37 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.42 [+1.05] # 25.42 [+0.00] FIB rule with suppress_prefixlength # 27.16 [+1.74] TEST: FIB rule suppress test [ OK ] # 28.73 [+1.57] # 28.73 [+0.00] Fib6 info length calculation in route notify test # 32.72 [+3.99] TEST: ipv6 route add notify [ OK ] # 34.32 [+1.59] # 34.32 [+0.00] Fib4 info length calculation in route notify test # 38.27 [+3.95] TEST: ipv4 route add notify [ OK ] # 42.86 [+4.59] # 42.86 [+0.00] IPv6 route add / append tests # 43.25 [+0.39] TEST: Attempt to add duplicate route - gw [ OK ] # 43.66 [+0.41] TEST: Attempt to add duplicate route - dev only [ OK ] # 44.09 [+0.43] TEST: Attempt to add duplicate route - reject route [ OK ] # 44.65 [+0.56] TEST: Append nexthop to existing route - gw [ OK ] # 45.10 [+0.45] TEST: Add multipath route [ OK ] # 45.55 [+0.45] TEST: Attempt to add duplicate multipath route [ OK ] # 46.14 [+0.59] TEST: Route add with different metrics [ OK ] # 46.38 [+0.24] TEST: Route delete with metric [ OK ] # 46.38 [+0.00] # 46.38 [+0.00] IPv6 route replace tests # 46.99 [+0.61] TEST: Single path with single path [ OK ] # 47.67 [+0.68] TEST: Single path with multipath [ OK ] # 48.25 [+0.58] TEST: Single path with single path via multipath attribute [ OK ] # 48.83 [+0.59] TEST: Invalid nexthop [ OK ] # 49.21 [+0.37] TEST: Single path - replace of non-existent route [ OK ] # 49.67 [+0.46] TEST: Multipath with multipath [ OK ] # 50.12 [+0.45] TEST: Multipath with single path [ OK ] # 50.57 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 51.05 [+0.49] TEST: Multipath with dev-only [ OK ] # 51.54 [+0.49] TEST: Multipath - invalid first nexthop [ OK ] # 51.99 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 52.32 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 52.32 [+0.00] # 52.32 [+0.00] IPv6 route with dsfield tests # 52.53 [+0.20] TEST: Reject route with dsfield [ OK ] # 59.01 [+6.48] # 59.01 [+0.00] IPv4 route add / append tests # 59.45 [+0.43] TEST: Attempt to add duplicate route - gw [ OK ] # 59.89 [+0.44] TEST: Attempt to add duplicate route - dev only [ OK ] # 60.31 [+0.42] TEST: Attempt to add duplicate route - reject route [ OK ] # 60.81 [+0.50] TEST: Add new nexthop for existing prefix [ OK ] # 61.28 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 61.74 [+0.46] TEST: Append nexthop to existing route - dev only [ OK ] # 62.17 [+0.43] TEST: Append nexthop to existing route - reject route [ OK ] # 62.52 [+0.35] TEST: Append nexthop to existing reject route - gw [ OK ] # 62.87 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 63.21 [+0.34] TEST: add multipath route [ OK ] # 63.58 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 64.02 [+0.45] TEST: Route add with different metrics [ OK ] # 64.26 [+0.24] TEST: Route delete with metric [ OK ] # 64.26 [+0.00] # 64.26 [+0.00] IPv4 route replace tests # 64.78 [+0.51] TEST: Single path with single path [ OK ] # 65.28 [+0.50] TEST: Single path with multipath [ OK ] # 65.80 [+0.52] TEST: Single path with reject route [ OK ] # 66.33 [+0.54] TEST: Single path with single path via multipath attribute [ OK ] # 66.87 [+0.54] TEST: Invalid nexthop [ OK ] # 67.30 [+0.43] TEST: Single path - replace of non-existent route [ OK ] # 67.87 [+0.57] TEST: Multipath with multipath [ OK ] # 68.43 [+0.56] TEST: Multipath with single path [ OK ] # 68.98 [+0.55] TEST: Multipath with single path via multipath attribute [ OK ] # 69.49 [+0.51] TEST: Multipath with reject route [ OK ] # 70.02 [+0.53] TEST: Multipath - invalid first nexthop [ OK ] # 70.49 [+0.47] TEST: Multipath - invalid second nexthop [ OK ] # 70.90 [+0.41] TEST: Multipath - replace of non-existent route [ OK ] # 72.50 [+1.60] TEST: Cached route removed from VRF port device [ OK ] # 72.51 [+0.00] # 72.51 [+0.00] IPv4 route with dsfield tests # 72.69 [+0.19] TEST: Reject route with dsfield 0x01 [ OK ] # 72.79 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 72.88 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 73.13 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 73.21 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 73.33 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 73.43 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 73.52 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 73.63 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 73.72 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 73.81 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 73.98 [+0.17] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 74.11 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 74.24 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 74.34 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 76.50 [+2.16] # 76.50 [+0.00] IPv6 prefix route tests # 79.14 [+2.65] TEST: Default metric [ OK ] # 79.54 [+0.39] TEST: User specified metric on first device [ OK ] # 79.91 [+0.38] TEST: User specified metric on second device [ OK ] # 80.19 [+0.27] TEST: Delete of address on first device [ OK ] # 80.46 [+0.27] TEST: Modify metric of address [ OK ] # 80.86 [+0.40] TEST: Prefix route removed on link down [ OK ] # 81.08 [+0.22] TEST: Prefix route with metric on link up [ OK ] # 81.48 [+0.40] TEST: Set metric with peer route on local side [ OK ] # 81.61 [+0.14] TEST: Set metric with peer route on peer side [ OK ] # 81.87 [+0.26] TEST: Modify metric and peer address on local side [ OK ] # 82.01 [+0.14] TEST: Modify metric and peer address on peer side [ OK ] # 83.27 [+1.26] # 83.27 [+0.00] IPv4 prefix route tests # 85.70 [+2.44] TEST: Default metric [ OK ] # 86.12 [+0.42] TEST: User specified metric on first device [ OK ] # 86.51 [+0.39] TEST: User specified metric on second device [ OK ] # 86.80 [+0.29] TEST: Delete of address on first device [ OK ] # 87.06 [+0.26] TEST: Modify metric of address [ OK ] # 87.32 [+0.26] TEST: Prefix route removed on link down [ OK ] # 87.59 [+0.27] TEST: Prefix route with metric on link up [ OK ] # 88.12 [+0.53] TEST: Modify metric of .0/24 address [ OK ] # 88.51 [+0.39] TEST: Set metric of address with peer route [ OK ] # 88.71 [+0.20] TEST: Modify metric and peer address for peer route [ OK ] # 89.72 [+1.01] # 89.72 [+0.00] IPv6 routes with metrics # 94.40 [+4.68] TEST: Single path route with mtu metric [ OK ] # 94.70 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 94.99 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 95.18 [+0.19] TEST: MTU of second leg [ OK ] # 95.38 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 95.61 [+0.23] TEST: Using route with mtu metric [ OK ] # 95.77 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 97.59 [+1.81] # 97.59 [+0.00] IPv4 route add / append tests # 102.98 [+5.39] TEST: Single path route with mtu metric [ OK ] # 103.17 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 103.39 [+0.23] TEST: Using route with mtu metric [ OK ] # 103.55 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 105.21 [+1.66] # 105.21 [+0.00] IPv4 route with IPv6 gateway tests # 112.75 [+7.54] TEST: Single path route with IPv6 gateway [ OK ] # 113.04 [+0.29] TEST: Single path route with IPv6 gateway - ping [ OK ] # 113.14 [+0.10] TEST: Single path route delete [ OK ] # 113.36 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 113.57 [+0.22] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 113.69 [+0.11] TEST: Multipath route delete exact match [ OK ] # 113.79 [+0.11] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 113.98 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 114.08 [+0.10] TEST: Multipath route delete exact match [ OK ] # 116.06 [+1.98] # 116.06 [+0.00] IPv4 rp_filter tests # 123.05 [+7.00] TEST: rp_filter passes local packets [ OK ] # 123.25 [+0.20] TEST: rp_filter passes loopback packets [ OK ] # 124.18 [+0.93] # 124.18 [+0.00] IPv4 delete address route tests # 127.22 [+3.04] Regular FIB info # 127.40 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 127.49 [+0.09] TEST: Route in default VRF not removed [ OK ] # 127.86 [+0.37] TEST: Route removed in default VRF when source address deleted [ OK ] # 127.94 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 127.95 [+0.00] Identical FIB info with different table ID # 128.13 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 128.22 [+0.09] TEST: Route in default VRF not removed [ OK ] # 128.57 [+0.35] TEST: Route removed in default VRF when source address deleted [ OK ] # 128.65 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 128.66 [+0.00] Table ID 0 # 128.85 [+0.19] TEST: Route removed in default VRF when source address deleted [ OK ] # 130.03 [+1.18] # 130.03 [+0.00] IPv6 delete address route tests # 136.64 [+6.61] Single device using src address # 136.82 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 136.82 [+0.00] Two devices with the same source address # 137.01 [+0.19] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 137.18 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 137.18 [+0.00] VRF with single device using src address # 137.37 [+0.19] TEST: Prefsrc removed when src address removed on other device [ OK ] # 137.37 [+0.00] VRF with two devices using src address # 137.56 [+0.19] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 137.73 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 137.73 [+0.00] src address and nexthop dev in same VRF # 137.92 [+0.19] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 138.01 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 138.33 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 138.43 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 138.43 [+0.00] src address and nexthop device in different VRF # 138.60 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 138.69 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 138.97 [+0.27] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 139.05 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 139.06 [+0.00] Table ID 0 # 139.26 [+0.20] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 139.26 [+0.00] Link local source route # 139.43 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 139.61 [+0.18] TEST: Prefsrc removed when delete ll addr [ OK ] # 139.70 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 139.95 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 141.45 [+1.50] # 141.45 [+0.00] IPv4 mangling tests # 149.11 [+7.66] TEST: Connection with correct parameters [ OK ] # 149.43 [+0.33] TEST: Connection with incorrect parameters [ OK ] # 150.52 [+1.09] TEST: Connection with correct parameters - mangling [ OK ] # 151.40 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 151.46 [+0.06] TEST: Connection check - server side [ OK ] # 153.41 [+1.96] # 153.41 [+0.00] IPv6 mangling tests # 161.91 [+8.49] TEST: Connection with correct parameters [ OK ] # 162.19 [+0.28] TEST: Connection with incorrect parameters [ OK ] # 163.19 [+1.00] TEST: Connection with correct parameters - mangling [ OK ] # 164.21 [+1.02] TEST: Connection with correct parameters - no mangling [ OK ] # 164.32 [+0.11] TEST: Connection check - server side [ OK ] # 166.90 [+2.59] # 166.90 [+0.00] IPv4 broadcast neighbour tests # 169.11 [+2.21] TEST: Resolved neighbour for broadcast address [ OK ] # 169.20 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 169.30 [+0.10] TEST: Unresolved neighbour for broadcast address [ OK ] # 169.39 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 171.33 [+1.94] # 171.34 [+0.00] Fib6 garbage collection test # 184.80 [+13.46] TEST: ipv6 route garbage collection [ OK ] # 198.30 [+13.50] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 211.84 [+13.54] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 225.73 [+13.89] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 240.20 [+14.47] TEST: ipv6 route garbage collection (RA message) [ OK ] # 240.99 [+0.79] # 240.99 [+0.00] IPv4 multipath list receive tests # 255.86 [+14.88] TEST: Multipath route hit ratio (1.00) [ OK ] # 257.64 [+1.78] # 257.64 [+0.00] IPv6 multipath list receive tests # 273.18 [+15.54] TEST: Multipath route hit ratio (1.00) [ OK ] # 275.13 [+1.95] # 275.15 [+0.02] Tests passed: 229 # 275.15 [+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__->