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.41 [+0.00] Single path route test # 1.27 [+0.87] Start point # 1.37 [+0.10] TEST: IPv4 fibmatch [ OK ] # 1.46 [+0.10] TEST: IPv6 fibmatch [ OK ] # 1.59 [+0.12] Nexthop device deleted # 1.67 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 1.76 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.33 [+0.57] # 2.33 [+0.00] Multipath route test # 3.96 [+1.64] Start point # 4.06 [+0.10] TEST: IPv4 fibmatch [ OK ] # 4.14 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.28 [+0.14] One nexthop device deleted # 4.35 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.45 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 4.59 [+0.14] Second nexthop device deleted # 4.68 [+0.09] TEST: IPv6 - no route [ OK ] # 5.21 [+0.53] # 5.21 [+0.00] Single path, admin down # 6.32 [+1.10] Start point # 6.39 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.48 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.56 [+0.08] Route deleted on down # 6.65 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.73 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.15 [+0.42] # 7.15 [+0.00] Admin down multipath # 8.74 [+1.59] Verify start point # 8.83 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.95 [+0.12] TEST: IPv6 fibmatch [ OK ] # 9.03 [+0.08] One device down, one up # 9.11 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.19 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 9.27 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.35 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 9.43 [+0.08] TEST: IPv4 flags on down device [ OK ] # 9.53 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.65 [+0.12] TEST: IPv4 flags on up device [ OK ] # 9.73 [+0.08] TEST: IPv6 flags on up device [ OK ] # 9.89 [+0.16] Other device down and up # 9.98 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.05 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 10.14 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 10.22 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.31 [+0.09] TEST: IPv4 flags on down device [ OK ] # 10.38 [+0.07] TEST: IPv6 flags on down device [ OK ] # 10.48 [+0.10] TEST: IPv4 flags on up device [ OK ] # 10.57 [+0.09] TEST: IPv6 flags on up device [ OK ] # 10.64 [+0.07] Both devices down # 10.72 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.80 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.36 [+0.56] # 11.36 [+0.00] Local carrier tests - single path # 12.56 [+1.21] Start point # 12.65 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.73 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.81 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 12.91 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 14.03 [+1.12] Carrier off on nexthop # 14.12 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.21 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.28 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 14.36 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 14.52 [+0.17] Route to local address with carrier down # 14.60 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.68 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.76 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 14.84 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 15.26 [+0.42] # 15.27 [+0.00] Single path route carrier test # 16.49 [+1.22] Start point # 16.57 [+0.09] TEST: IPv4 fibmatch [ OK ] # 16.66 [+0.09] TEST: IPv6 fibmatch [ OK ] # 16.76 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 16.86 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 18.01 [+1.15] Carrier down # 18.10 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.18 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.27 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.35 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 18.51 [+0.16] Second address added with carrier down # 18.58 [+0.07] TEST: IPv4 fibmatch [ OK ] # 18.66 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.74 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.83 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 22.98 [+4.15] # 22.98 [+0.00] IPv4 nexthop tests # 22.98 [+0.00] <<< write me >>> # 23.19 [+0.21] # 23.19 [+0.00] IPv6 nexthop tests # 23.28 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 23.37 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.45 [+0.08] TEST: Gateway is linklocal address [ OK ] # 23.55 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 23.64 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 23.74 [+0.10] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.83 [+0.08] TEST: Gateway can not be a local linklocal address [ OK ] # 23.92 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 24.01 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 24.10 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.20 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 24.29 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.38 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 24.47 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.44 [+0.97] # 25.44 [+0.00] FIB rule with suppress_prefixlength # 27.14 [+1.70] TEST: FIB rule suppress test [ OK ] # 28.68 [+1.54] # 28.68 [+0.00] Fib6 info length calculation in route notify test # 32.60 [+3.91] TEST: ipv6 route add notify [ OK ] # 34.13 [+1.54] # 34.13 [+0.00] Fib4 info length calculation in route notify test # 38.04 [+3.91] TEST: ipv4 route add notify [ OK ] # 42.31 [+4.26] # 42.31 [+0.00] IPv6 route add / append tests # 42.66 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 43.00 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 43.36 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 43.83 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 44.21 [+0.38] TEST: Add multipath route [ OK ] # 44.55 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 45.00 [+0.45] TEST: Route add with different metrics [ OK ] # 45.19 [+0.18] TEST: Route delete with metric [ OK ] # 45.19 [+0.00] # 45.19 [+0.00] IPv6 route replace tests # 45.64 [+0.45] TEST: Single path with single path [ OK ] # 46.09 [+0.45] TEST: Single path with multipath [ OK ] # 46.52 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 46.97 [+0.45] TEST: Invalid nexthop [ OK ] # 47.34 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 47.85 [+0.52] TEST: Multipath with multipath [ OK ] # 48.32 [+0.46] TEST: Multipath with single path [ OK ] # 48.77 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 49.20 [+0.43] TEST: Multipath with dev-only [ OK ] # 49.65 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 50.10 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 50.44 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 50.44 [+0.00] # 50.44 [+0.00] IPv6 route with dsfield tests # 50.62 [+0.18] TEST: Reject route with dsfield [ OK ] # 57.00 [+6.38] # 57.00 [+0.00] IPv4 route add / append tests # 57.42 [+0.43] TEST: Attempt to add duplicate route - gw [ OK ] # 57.86 [+0.43] TEST: Attempt to add duplicate route - dev only [ OK ] # 58.27 [+0.41] TEST: Attempt to add duplicate route - reject route [ OK ] # 58.81 [+0.54] TEST: Add new nexthop for existing prefix [ OK ] # 59.40 [+0.59] TEST: Append nexthop to existing route - gw [ OK ] # 59.94 [+0.54] TEST: Append nexthop to existing route - dev only [ OK ] # 60.51 [+0.57] TEST: Append nexthop to existing route - reject route [ OK ] # 60.96 [+0.45] TEST: Append nexthop to existing reject route - gw [ OK ] # 61.44 [+0.48] TEST: Append nexthop to existing reject route - dev only [ OK ] # 61.89 [+0.45] TEST: add multipath route [ OK ] # 62.35 [+0.46] TEST: Attempt to add duplicate multipath route [ OK ] # 62.90 [+0.55] TEST: Route add with different metrics [ OK ] # 63.17 [+0.27] TEST: Route delete with metric [ OK ] # 63.17 [+0.00] # 63.17 [+0.00] IPv4 route replace tests # 63.75 [+0.57] TEST: Single path with single path [ OK ] # 64.29 [+0.54] TEST: Single path with multipath [ OK ] # 64.85 [+0.56] TEST: Single path with reject route [ OK ] # 65.40 [+0.55] TEST: Single path with single path via multipath attribute [ OK ] # 65.98 [+0.58] TEST: Invalid nexthop [ OK ] # 66.44 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 67.00 [+0.56] TEST: Multipath with multipath [ OK ] # 67.54 [+0.54] TEST: Multipath with single path [ OK ] # 68.08 [+0.53] TEST: Multipath with single path via multipath attribute [ OK ] # 68.60 [+0.52] TEST: Multipath with reject route [ OK ] # 69.13 [+0.53] TEST: Multipath - invalid first nexthop [ OK ] # 69.64 [+0.51] TEST: Multipath - invalid second nexthop [ OK ] # 70.03 [+0.39] TEST: Multipath - replace of non-existent route [ OK ] # 71.57 [+1.54] TEST: Cached route removed from VRF port device [ OK ] # 71.57 [+0.00] # 71.57 [+0.00] IPv4 route with dsfield tests # 71.78 [+0.21] TEST: Reject route with dsfield 0x01 [ OK ] # 71.88 [+0.11] TEST: Reject route with dsfield 0x02 [ OK ] # 71.99 [+0.10] TEST: Reject route with dsfield 0x03 [ OK ] # 72.27 [+0.28] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 72.36 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 72.46 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 72.56 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 72.68 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 72.78 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 72.88 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 72.98 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 73.12 [+0.14] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 73.22 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 73.31 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 73.41 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 75.12 [+1.71] # 75.12 [+0.00] IPv6 prefix route tests # 77.13 [+2.01] TEST: Default metric [ OK ] # 77.43 [+0.30] TEST: User specified metric on first device [ OK ] # 77.72 [+0.29] TEST: User specified metric on second device [ OK ] # 77.89 [+0.17] TEST: Delete of address on first device [ OK ] # 78.08 [+0.19] TEST: Modify metric of address [ OK ] # 78.39 [+0.31] TEST: Prefix route removed on link down [ OK ] # 78.57 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 78.87 [+0.29] TEST: Set metric with peer route on local side [ OK ] # 78.97 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 79.16 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 79.26 [+0.10] TEST: Modify metric and peer address on peer side [ OK ] # 80.23 [+0.97] # 80.23 [+0.00] IPv4 prefix route tests # 82.15 [+1.92] TEST: Default metric [ OK ] # 82.44 [+0.29] TEST: User specified metric on first device [ OK ] # 82.71 [+0.27] TEST: User specified metric on second device [ OK ] # 82.91 [+0.20] TEST: Delete of address on first device [ OK ] # 83.10 [+0.19] TEST: Modify metric of address [ OK ] # 83.27 [+0.17] TEST: Prefix route removed on link down [ OK ] # 83.46 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 83.84 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 84.12 [+0.29] TEST: Set metric of address with peer route [ OK ] # 84.32 [+0.20] TEST: Modify metric and peer address for peer route [ OK ] # 85.26 [+0.94] # 85.26 [+0.00] IPv6 routes with metrics # 89.80 [+4.53] TEST: Single path route with mtu metric [ OK ] # 90.09 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 90.37 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 90.56 [+0.19] TEST: MTU of second leg [ OK ] # 90.78 [+0.21] TEST: Multipath route with mtu metric [ OK ] # 91.00 [+0.23] TEST: Using route with mtu metric [ OK ] # 91.17 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 92.88 [+1.71] # 92.88 [+0.00] IPv4 route add / append tests # 97.31 [+4.43] TEST: Single path route with mtu metric [ OK ] # 97.49 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 97.72 [+0.23] TEST: Using route with mtu metric [ OK ] # 97.87 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 99.52 [+1.65] # 99.52 [+0.00] IPv4 route with IPv6 gateway tests # 105.90 [+6.38] TEST: Single path route with IPv6 gateway [ OK ] # 106.14 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 106.22 [+0.08] TEST: Single path route delete [ OK ] # 106.39 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 106.59 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.67 [+0.08] TEST: Multipath route delete exact match [ OK ] # 106.76 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 106.95 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.03 [+0.08] TEST: Multipath route delete exact match [ OK ] # 108.68 [+1.65] # 108.68 [+0.00] IPv4 rp_filter tests # 114.38 [+5.70] TEST: rp_filter passes local packets [ OK ] # 114.52 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 115.27 [+0.74] # 115.27 [+0.00] IPv4 delete address route tests # 118.02 [+2.75] Regular FIB info # 118.16 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 118.23 [+0.06] TEST: Route in default VRF not removed [ OK ] # 118.54 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.61 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 118.61 [+0.00] Identical FIB info with different table ID # 118.76 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 118.85 [+0.09] TEST: Route in default VRF not removed [ OK ] # 119.19 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.27 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 119.27 [+0.00] Table ID 0 # 119.43 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.40 [+0.97] # 120.40 [+0.00] IPv6 delete address route tests # 125.01 [+4.61] Single device using src address # 125.16 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.16 [+0.00] Two devices with the same source address # 125.33 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 125.51 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 125.51 [+0.00] VRF with single device using src address # 125.67 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.68 [+0.00] VRF with two devices using src address # 125.85 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 126.02 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 126.02 [+0.00] src address and nexthop dev in same VRF # 126.18 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 126.28 [+0.10] TEST: Prefsrc in default VRF not removed [ OK ] # 126.60 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 126.69 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 126.70 [+0.00] src address and nexthop device in different VRF # 126.86 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 126.95 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 127.21 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 127.30 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 127.30 [+0.00] Table ID 0 # 127.48 [+0.18] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 127.49 [+0.00] Link local source route # 127.64 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 127.82 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 127.91 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.18 [+0.27] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 129.68 [+1.50] # 129.68 [+0.00] IPv4 mangling tests # 137.14 [+7.46] TEST: Connection with correct parameters [ OK ] # 137.31 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 138.22 [+0.91] TEST: Connection with correct parameters - mangling [ OK ] # 139.07 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 139.13 [+0.06] TEST: Connection check - server side [ OK ] # 141.10 [+1.97] # 141.10 [+0.00] IPv6 mangling tests # 148.45 [+7.35] TEST: Connection with correct parameters [ OK ] # 148.64 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 149.49 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 150.37 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 150.42 [+0.06] TEST: Connection check - server side [ OK ] # 152.46 [+2.03] # 152.46 [+0.00] IPv4 broadcast neighbour tests # 154.77 [+2.32] TEST: Resolved neighbour for broadcast address [ OK ] # 154.86 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 154.97 [+0.11] TEST: Unresolved neighbour for broadcast address [ OK ] # 155.06 [+0.10] TEST: Unresolved neighbour for network broadcast address [ OK ] # 157.04 [+1.98] # 157.04 [+0.00] Fib6 garbage collection test # 170.27 [+13.23] TEST: ipv6 route garbage collection [ OK ] # 183.63 [+13.35] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 197.03 [+13.40] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 210.51 [+13.49] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 224.74 [+14.23] TEST: ipv6 route garbage collection (RA message) [ OK ] # 225.53 [+0.79] # 225.53 [+0.00] IPv4 multipath list receive tests # 242.38 [+16.85] TEST: Multipath route hit ratio (1.00) [ OK ] # 244.22 [+1.84] # 244.22 [+0.00] IPv6 multipath list receive tests # 260.48 [+16.26] TEST: Multipath route hit ratio (1.00) [ OK ] # 262.29 [+1.81] # 262.29 [+0.00] Tests passed: 229 # 262.29 [+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__->