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.42 [+0.42] # 0.42 [+0.00] Single path route test # 1.29 [+0.87] Start point # 1.37 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.46 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.59 [+0.14] Nexthop device deleted # 1.67 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.76 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.28 [+0.53] # 2.28 [+0.00] Multipath route test # 3.87 [+1.58] Start point # 3.96 [+0.09] TEST: IPv4 fibmatch [ OK ] # 4.03 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.17 [+0.14] One nexthop device deleted # 4.25 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.33 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.44 [+0.11] Second nexthop device deleted # 4.52 [+0.08] TEST: IPv6 - no route [ OK ] # 5.02 [+0.51] # 5.02 [+0.00] Single path, admin down # 6.14 [+1.12] Start point # 6.23 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.31 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.39 [+0.08] Route deleted on down # 6.47 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.55 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.99 [+0.45] # 6.99 [+0.00] Admin down multipath # 8.58 [+1.58] Verify start point # 8.67 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.75 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.83 [+0.08] One device down, one up # 8.91 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 8.99 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.07 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.15 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 9.24 [+0.08] TEST: IPv4 flags on down device [ OK ] # 9.33 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.43 [+0.10] TEST: IPv4 flags on up device [ OK ] # 9.51 [+0.08] TEST: IPv6 flags on up device [ OK ] # 9.68 [+0.17] Other device down and up # 9.76 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.84 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.92 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 10.00 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 10.08 [+0.09] TEST: IPv4 flags on down device [ OK ] # 10.18 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.28 [+0.10] TEST: IPv4 flags on up device [ OK ] # 10.39 [+0.11] TEST: IPv6 flags on up device [ OK ] # 10.47 [+0.08] Both devices down # 10.55 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.63 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.17 [+0.54] # 11.17 [+0.00] Local carrier tests - single path # 12.35 [+1.18] Start point # 12.45 [+0.10] TEST: IPv4 fibmatch [ OK ] # 12.56 [+0.11] TEST: IPv6 fibmatch [ OK ] # 12.65 [+0.10] TEST: IPv4 - no linkdown flag [ OK ] # 12.76 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 13.90 [+1.15] Carrier off on nexthop # 13.99 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.07 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.15 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 14.25 [+0.10] TEST: IPv6 - linkdown flag set [ OK ] # 14.41 [+0.16] Route to local address with carrier down # 14.49 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.57 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.66 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 14.74 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.16 [+0.42] # 15.16 [+0.00] Single path route carrier test # 16.36 [+1.20] Start point # 16.44 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.52 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.62 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 16.70 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 17.81 [+1.12] Carrier down # 17.90 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.99 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.07 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.15 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 18.31 [+0.16] Second address added with carrier down # 18.39 [+0.07] TEST: IPv4 fibmatch [ OK ] # 18.47 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.55 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.63 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 22.79 [+4.16] # 22.79 [+0.00] IPv4 nexthop tests # 22.79 [+0.00] <<< write me >>> # 23.01 [+0.22] # 23.01 [+0.00] IPv6 nexthop tests # 23.11 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 23.21 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.30 [+0.09] TEST: Gateway is linklocal address [ OK ] # 23.40 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 23.49 [+0.10] 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.67 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 23.77 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 23.86 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.97 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.05 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 24.15 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.23 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 24.32 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.33 [+1.00] # 25.33 [+0.00] FIB rule with suppress_prefixlength # 27.04 [+1.71] TEST: FIB rule suppress test [ OK ] # 28.58 [+1.54] # 28.58 [+0.00] Fib6 info length calculation in route notify test # 32.51 [+3.93] TEST: ipv6 route add notify [ OK ] # 34.08 [+1.57] # 34.08 [+0.00] Fib4 info length calculation in route notify test # 37.99 [+3.91] TEST: ipv4 route add notify [ OK ] # 42.22 [+4.23] # 42.22 [+0.00] IPv6 route add / append tests # 42.56 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 42.91 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 43.27 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 43.71 [+0.45] TEST: Append nexthop to existing route - gw [ OK ] # 44.08 [+0.37] TEST: Add multipath route [ OK ] # 44.44 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 44.89 [+0.45] TEST: Route add with different metrics [ OK ] # 45.09 [+0.20] TEST: Route delete with metric [ OK ] # 45.09 [+0.00] # 45.09 [+0.00] IPv6 route replace tests # 45.52 [+0.42] TEST: Single path with single path [ OK ] # 45.98 [+0.47] TEST: Single path with multipath [ OK ] # 46.44 [+0.46] TEST: Single path with single path via multipath attribute [ OK ] # 46.88 [+0.44] TEST: Invalid nexthop [ OK ] # 47.23 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 47.68 [+0.45] TEST: Multipath with multipath [ OK ] # 48.13 [+0.45] TEST: Multipath with single path [ OK ] # 48.58 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 49.03 [+0.44] TEST: Multipath with dev-only [ OK ] # 49.49 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 49.95 [+0.46] TEST: Multipath - invalid second nexthop [ OK ] # 50.31 [+0.36] TEST: Multipath - replace of non-existent route [ OK ] # 50.31 [+0.00] # 50.31 [+0.00] IPv6 route with dsfield tests # 50.50 [+0.19] TEST: Reject route with dsfield [ OK ] # 57.23 [+6.73] # 57.23 [+0.00] IPv4 route add / append tests # 57.82 [+0.59] TEST: Attempt to add duplicate route - gw [ OK ] # 58.38 [+0.56] TEST: Attempt to add duplicate route - dev only [ OK ] # 58.90 [+0.52] TEST: Attempt to add duplicate route - reject route [ OK ] # 59.59 [+0.69] TEST: Add new nexthop for existing prefix [ OK ] # 60.27 [+0.67] TEST: Append nexthop to existing route - gw [ OK ] # 60.94 [+0.67] TEST: Append nexthop to existing route - dev only [ OK ] # 61.59 [+0.65] TEST: Append nexthop to existing route - reject route [ OK ] # 62.18 [+0.60] TEST: Append nexthop to existing reject route - gw [ OK ] # 62.81 [+0.62] TEST: Append nexthop to existing reject route - dev only [ OK ] # 63.38 [+0.57] TEST: add multipath route [ OK ] # 63.86 [+0.48] TEST: Attempt to add duplicate multipath route [ OK ] # 64.61 [+0.75] TEST: Route add with different metrics [ OK ] # 64.90 [+0.29] TEST: Route delete with metric [ OK ] # 64.90 [+0.00] # 64.90 [+0.00] IPv4 route replace tests # 65.53 [+0.63] TEST: Single path with single path [ OK ] # 66.04 [+0.51] TEST: Single path with multipath [ OK ] # 66.57 [+0.52] TEST: Single path with reject route [ OK ] # 67.13 [+0.56] TEST: Single path with single path via multipath attribute [ OK ] # 67.62 [+0.49] TEST: Invalid nexthop [ OK ] # 68.00 [+0.38] TEST: Single path - replace of non-existent route [ OK ] # 68.48 [+0.48] TEST: Multipath with multipath [ OK ] # 68.96 [+0.48] TEST: Multipath with single path [ OK ] # 69.43 [+0.47] TEST: Multipath with single path via multipath attribute [ OK ] # 69.88 [+0.46] TEST: Multipath with reject route [ OK ] # 70.35 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 70.80 [+0.46] TEST: Multipath - invalid second nexthop [ OK ] # 71.17 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 72.61 [+1.44] TEST: Cached route removed from VRF port device [ OK ] # 72.61 [+0.00] # 72.61 [+0.00] IPv4 route with dsfield tests # 72.81 [+0.19] TEST: Reject route with dsfield 0x01 [ OK ] # 72.89 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 72.99 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 73.26 [+0.27] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 73.36 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 73.44 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 73.53 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 73.62 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 73.72 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 73.82 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 73.89 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 73.97 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 74.06 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 74.14 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 74.24 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 75.99 [+1.75] # 75.99 [+0.00] IPv6 prefix route tests # 77.90 [+1.91] TEST: Default metric [ OK ] # 78.19 [+0.29] TEST: User specified metric on first device [ OK ] # 78.50 [+0.30] TEST: User specified metric on second device [ OK ] # 78.68 [+0.18] TEST: Delete of address on first device [ OK ] # 78.88 [+0.20] TEST: Modify metric of address [ OK ] # 79.18 [+0.30] TEST: Prefix route removed on link down [ OK ] # 79.37 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 79.67 [+0.30] TEST: Set metric with peer route on local side [ OK ] # 79.77 [+0.11] TEST: Set metric with peer route on peer side [ OK ] # 79.97 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 80.06 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 81.05 [+0.99] # 81.05 [+0.00] IPv4 prefix route tests # 82.84 [+1.79] TEST: Default metric [ OK ] # 83.22 [+0.38] TEST: User specified metric on first device [ OK ] # 83.55 [+0.33] TEST: User specified metric on second device [ OK ] # 83.77 [+0.22] TEST: Delete of address on first device [ OK ] # 83.98 [+0.22] TEST: Modify metric of address [ OK ] # 84.16 [+0.18] TEST: Prefix route removed on link down [ OK ] # 84.36 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 84.75 [+0.39] TEST: Modify metric of .0/24 address [ OK ] # 85.04 [+0.29] TEST: Set metric of address with peer route [ OK ] # 85.21 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 86.29 [+1.07] # 86.29 [+0.00] IPv6 routes with metrics # 91.07 [+4.79] TEST: Single path route with mtu metric [ OK ] # 91.37 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 91.68 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 91.87 [+0.19] TEST: MTU of second leg [ OK ] # 92.05 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 92.26 [+0.21] TEST: Using route with mtu metric [ OK ] # 92.41 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 94.14 [+1.73] # 94.14 [+0.00] IPv4 route add / append tests # 98.54 [+4.40] TEST: Single path route with mtu metric [ OK ] # 98.72 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 98.95 [+0.24] TEST: Using route with mtu metric [ OK ] # 99.11 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 100.78 [+1.67] # 100.78 [+0.00] IPv4 route with IPv6 gateway tests # 107.16 [+6.38] TEST: Single path route with IPv6 gateway [ OK ] # 107.40 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 107.49 [+0.09] TEST: Single path route delete [ OK ] # 107.68 [+0.19] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 107.88 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.97 [+0.10] TEST: Multipath route delete exact match [ OK ] # 108.06 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 108.25 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.34 [+0.09] TEST: Multipath route delete exact match [ OK ] # 110.05 [+1.71] # 110.05 [+0.00] IPv4 rp_filter tests # 116.06 [+6.01] TEST: rp_filter passes local packets [ OK ] # 116.21 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 116.97 [+0.76] # 116.97 [+0.00] IPv4 delete address route tests # 119.89 [+2.92] Regular FIB info # 120.07 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 120.16 [+0.09] TEST: Route in default VRF not removed [ OK ] # 120.49 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.58 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 120.58 [+0.00] Identical FIB info with different table ID # 120.77 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 120.85 [+0.08] TEST: Route in default VRF not removed [ OK ] # 121.21 [+0.36] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.28 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 121.29 [+0.00] Table ID 0 # 121.46 [+0.17] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.49 [+1.03] # 122.49 [+0.00] IPv6 delete address route tests # 127.23 [+4.75] Single device using src address # 127.42 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.42 [+0.00] Two devices with the same source address # 127.60 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.78 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.79 [+0.00] VRF with single device using src address # 127.94 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.94 [+0.01] VRF with two devices using src address # 128.12 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 128.29 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 128.29 [+0.00] src address and nexthop dev in same VRF # 128.46 [+0.18] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 128.55 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 128.88 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 128.96 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 128.97 [+0.00] src address and nexthop device in different VRF # 129.12 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 129.22 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 129.46 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 129.56 [+0.10] TEST: Prefsrc removed in default VRF [ OK ] # 129.56 [+0.00] Table ID 0 # 129.73 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 129.73 [+0.00] Link local source route # 129.90 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 130.06 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 130.14 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 130.40 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 131.95 [+1.55] # 131.95 [+0.00] IPv4 mangling tests # 139.62 [+7.67] TEST: Connection with correct parameters [ OK ] # 139.81 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 140.76 [+0.95] TEST: Connection with correct parameters - mangling [ OK ] # 141.63 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 141.69 [+0.06] TEST: Connection check - server side [ OK ] # 143.82 [+2.13] # 143.82 [+0.00] IPv6 mangling tests # 151.73 [+7.91] TEST: Connection with correct parameters [ OK ] # 151.94 [+0.21] TEST: Connection with incorrect parameters [ OK ] # 152.79 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 153.65 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 153.71 [+0.06] TEST: Connection check - server side [ OK ] # 155.81 [+2.10] # 155.81 [+0.00] IPv4 broadcast neighbour tests # 158.06 [+2.25] TEST: Resolved neighbour for broadcast address [ OK ] # 158.15 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 158.25 [+0.11] TEST: Unresolved neighbour for broadcast address [ OK ] # 158.33 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 160.20 [+1.86] # 160.20 [+0.00] Fib6 garbage collection test # 173.41 [+13.21] TEST: ipv6 route garbage collection [ OK ] # 186.85 [+13.44] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 200.31 [+13.47] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 213.95 [+13.64] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 228.29 [+14.34] TEST: ipv6 route garbage collection (RA message) [ OK ] # 229.04 [+0.75] # 229.04 [+0.00] IPv4 multipath list receive tests # 245.69 [+16.65] TEST: Multipath route hit ratio (1.00) [ OK ] # 247.47 [+1.77] # 247.47 [+0.00] IPv6 multipath list receive tests # 264.00 [+16.53] TEST: Multipath route hit ratio (1.00) [ OK ] # 265.91 [+1.91] # 265.91 [+0.00] Tests passed: 229 # 265.91 [+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__->