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.52 [+0.52] # 0.52 [+0.00] Single path route test # 1.47 [+0.95] Start point # 1.60 [+0.13] TEST: IPv4 fibmatch [ OK ] # 1.69 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.80 [+0.12] Nexthop device deleted # 1.94 [+0.13] TEST: IPv4 fibmatch - no route [ OK ] # 2.00 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 2.51 [+0.50] # 2.51 [+0.00] Multipath route test # 4.14 [+1.63] Start point # 4.22 [+0.08] TEST: IPv4 fibmatch [ OK ] # 4.31 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.43 [+0.13] One nexthop device deleted # 4.52 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.60 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.73 [+0.13] Second nexthop device deleted # 4.81 [+0.08] TEST: IPv6 - no route [ OK ] # 5.31 [+0.50] # 5.31 [+0.00] Single path, admin down # 6.44 [+1.12] Start point # 6.52 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.60 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.68 [+0.08] Route deleted on down # 6.76 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.85 [+0.09] TEST: IPv6 fibmatch [ OK ] # 7.28 [+0.43] # 7.28 [+0.00] Admin down multipath # 8.94 [+1.66] Verify start point # 9.03 [+0.09] TEST: IPv4 fibmatch [ OK ] # 9.13 [+0.10] TEST: IPv6 fibmatch [ OK ] # 9.21 [+0.08] One device down, one up # 9.30 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 9.39 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 9.48 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.57 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 9.67 [+0.10] TEST: IPv4 flags on down device [ OK ] # 9.78 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.86 [+0.09] TEST: IPv4 flags on up device [ OK ] # 9.97 [+0.11] TEST: IPv6 flags on up device [ OK ] # 10.14 [+0.17] Other device down and up # 10.22 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 10.31 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 10.38 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.47 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.56 [+0.09] TEST: IPv4 flags on down device [ OK ] # 10.66 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.75 [+0.09] TEST: IPv4 flags on up device [ OK ] # 10.86 [+0.11] TEST: IPv6 flags on up device [ OK ] # 10.95 [+0.09] Both devices down # 11.03 [+0.08] TEST: IPv4 fibmatch [ OK ] # 11.11 [+0.09] TEST: IPv6 fibmatch [ OK ] # 11.70 [+0.59] # 11.71 [+0.00] Local carrier tests - single path # 12.96 [+1.25] Start point # 13.05 [+0.10] TEST: IPv4 fibmatch [ OK ] # 13.15 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.23 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 13.35 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 14.50 [+1.15] Carrier off on nexthop # 14.59 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.68 [+0.10] TEST: IPv6 fibmatch [ OK ] # 14.77 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 14.87 [+0.10] TEST: IPv6 - linkdown flag set [ OK ] # 15.05 [+0.18] Route to local address with carrier down # 15.13 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.26 [+0.13] TEST: IPv6 fibmatch [ OK ] # 15.35 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 15.44 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 15.91 [+0.47] # 15.91 [+0.00] Single path route carrier test # 17.12 [+1.22] Start point # 17.21 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.29 [+0.09] TEST: IPv6 fibmatch [ OK ] # 17.37 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 17.44 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 18.58 [+1.13] Carrier down # 18.66 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.74 [+0.09] TEST: IPv6 fibmatch [ OK ] # 18.82 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.92 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 19.09 [+0.17] Second address added with carrier down # 19.17 [+0.08] TEST: IPv4 fibmatch [ OK ] # 19.26 [+0.09] TEST: IPv6 fibmatch [ OK ] # 19.34 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 19.41 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 23.74 [+4.33] # 23.74 [+0.00] IPv4 nexthop tests # 23.74 [+0.00] <<< write me >>> # 23.99 [+0.25] # 24.00 [+0.00] IPv6 nexthop tests # 24.08 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 24.18 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 24.28 [+0.10] TEST: Gateway is linklocal address [ OK ] # 24.42 [+0.14] TEST: Gateway is linklocal address, no device [ OK ] # 24.53 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 24.63 [+0.10] TEST: Gateway can not be local unicast address, with device [ OK ] # 24.73 [+0.10] TEST: Gateway can not be a local linklocal address [ OK ] # 24.84 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 24.95 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 25.05 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 25.15 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 25.24 [+0.10] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 25.34 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 25.45 [+0.11] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 26.56 [+1.11] # 26.56 [+0.00] FIB rule with suppress_prefixlength # 28.41 [+1.85] TEST: FIB rule suppress test [ OK ] # 30.06 [+1.65] # 30.07 [+0.00] Fib6 info length calculation in route notify test # 34.43 [+4.37] TEST: ipv6 route add notify [ OK ] # 36.00 [+1.57] # 36.00 [+0.00] Fib4 info length calculation in route notify test # 39.91 [+3.91] TEST: ipv4 route add notify [ OK ] # 44.63 [+4.73] # 44.64 [+0.00] IPv6 route add / append tests # 45.02 [+0.38] TEST: Attempt to add duplicate route - gw [ OK ] # 45.44 [+0.43] TEST: Attempt to add duplicate route - dev only [ OK ] # 45.82 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 46.39 [+0.57] TEST: Append nexthop to existing route - gw [ OK ] # 46.82 [+0.43] TEST: Add multipath route [ OK ] # 47.24 [+0.42] TEST: Attempt to add duplicate multipath route [ OK ] # 47.82 [+0.58] TEST: Route add with different metrics [ OK ] # 48.08 [+0.27] TEST: Route delete with metric [ OK ] # 48.09 [+0.00] # 48.09 [+0.00] IPv6 route replace tests # 48.62 [+0.54] TEST: Single path with single path [ OK ] # 49.18 [+0.56] TEST: Single path with multipath [ OK ] # 49.74 [+0.56] TEST: Single path with single path via multipath attribute [ OK ] # 50.22 [+0.48] TEST: Invalid nexthop [ OK ] # 50.60 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 51.16 [+0.56] TEST: Multipath with multipath [ OK ] # 51.68 [+0.52] TEST: Multipath with single path [ OK ] # 52.25 [+0.57] TEST: Multipath with single path via multipath attribute [ OK ] # 52.79 [+0.54] TEST: Multipath with dev-only [ OK ] # 53.40 [+0.61] TEST: Multipath - invalid first nexthop [ OK ] # 54.01 [+0.61] TEST: Multipath - invalid second nexthop [ OK ] # 54.51 [+0.50] TEST: Multipath - replace of non-existent route [ OK ] # 54.52 [+0.00] # 54.52 [+0.00] IPv6 route with dsfield tests # 54.73 [+0.21] TEST: Reject route with dsfield [ OK ] # 61.73 [+7.00] # 61.73 [+0.00] IPv4 route add / append tests # 62.14 [+0.40] TEST: Attempt to add duplicate route - gw [ OK ] # 62.54 [+0.40] TEST: Attempt to add duplicate route - dev only [ OK ] # 62.95 [+0.41] TEST: Attempt to add duplicate route - reject route [ OK ] # 63.42 [+0.47] TEST: Add new nexthop for existing prefix [ OK ] # 63.86 [+0.44] TEST: Append nexthop to existing route - gw [ OK ] # 64.32 [+0.46] TEST: Append nexthop to existing route - dev only [ OK ] # 64.77 [+0.45] TEST: Append nexthop to existing route - reject route [ OK ] # 65.14 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 65.51 [+0.37] TEST: Append nexthop to existing reject route - dev only [ OK ] # 65.87 [+0.36] TEST: add multipath route [ OK ] # 66.22 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 66.66 [+0.44] TEST: Route add with different metrics [ OK ] # 66.86 [+0.20] TEST: Route delete with metric [ OK ] # 66.86 [+0.00] # 66.86 [+0.00] IPv4 route replace tests # 67.32 [+0.46] TEST: Single path with single path [ OK ] # 67.76 [+0.44] TEST: Single path with multipath [ OK ] # 68.20 [+0.43] TEST: Single path with reject route [ OK ] # 68.64 [+0.44] TEST: Single path with single path via multipath attribute [ OK ] # 69.06 [+0.43] TEST: Invalid nexthop [ OK ] # 69.42 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 69.87 [+0.45] TEST: Multipath with multipath [ OK ] # 70.31 [+0.44] TEST: Multipath with single path [ OK ] # 70.75 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 71.19 [+0.43] TEST: Multipath with reject route [ OK ] # 71.61 [+0.42] TEST: Multipath - invalid first nexthop [ OK ] # 72.06 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 72.40 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 73.81 [+1.41] TEST: Cached route removed from VRF port device [ OK ] # 73.82 [+0.00] # 73.82 [+0.00] IPv4 route with dsfield tests # 74.00 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 74.10 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 74.19 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 74.44 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 74.52 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 74.60 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 74.70 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 74.78 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 74.87 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 74.95 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 75.03 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 75.11 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 75.19 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 75.26 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 75.34 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 77.01 [+1.67] # 77.01 [+0.00] IPv6 prefix route tests # 78.80 [+1.79] TEST: Default metric [ OK ] # 79.08 [+0.28] TEST: User specified metric on first device [ OK ] # 79.35 [+0.28] TEST: User specified metric on second device [ OK ] # 79.52 [+0.17] TEST: Delete of address on first device [ OK ] # 79.73 [+0.20] TEST: Modify metric of address [ OK ] # 80.03 [+0.30] TEST: Prefix route removed on link down [ OK ] # 80.20 [+0.17] TEST: Prefix route with metric on link up [ OK ] # 80.47 [+0.27] TEST: Set metric with peer route on local side [ OK ] # 80.58 [+0.11] TEST: Set metric with peer route on peer side [ OK ] # 80.74 [+0.17] TEST: Modify metric and peer address on local side [ OK ] # 80.83 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 81.76 [+0.93] # 81.76 [+0.00] IPv4 prefix route tests # 83.51 [+1.75] TEST: Default metric [ OK ] # 83.78 [+0.27] TEST: User specified metric on first device [ OK ] # 84.04 [+0.26] TEST: User specified metric on second device [ OK ] # 84.22 [+0.18] TEST: Delete of address on first device [ OK ] # 84.39 [+0.17] TEST: Modify metric of address [ OK ] # 84.55 [+0.16] TEST: Prefix route removed on link down [ OK ] # 84.73 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 85.06 [+0.33] TEST: Modify metric of .0/24 address [ OK ] # 85.34 [+0.27] TEST: Set metric of address with peer route [ OK ] # 85.51 [+0.17] TEST: Modify metric and peer address for peer route [ OK ] # 86.43 [+0.92] # 86.44 [+0.00] IPv6 routes with metrics # 90.84 [+4.41] TEST: Single path route with mtu metric [ OK ] # 91.13 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 91.40 [+0.27] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 91.58 [+0.18] TEST: MTU of second leg [ OK ] # 91.77 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 91.98 [+0.21] TEST: Using route with mtu metric [ OK ] # 92.13 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 93.82 [+1.68] # 93.82 [+0.00] IPv4 route add / append tests # 98.14 [+4.32] TEST: Single path route with mtu metric [ OK ] # 98.32 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 98.55 [+0.23] TEST: Using route with mtu metric [ OK ] # 98.71 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 100.39 [+1.68] # 100.39 [+0.00] IPv4 route with IPv6 gateway tests # 106.79 [+6.39] TEST: Single path route with IPv6 gateway [ OK ] # 107.02 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 107.10 [+0.08] TEST: Single path route delete [ OK ] # 107.28 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 107.48 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.57 [+0.09] TEST: Multipath route delete exact match [ OK ] # 107.67 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 107.85 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.94 [+0.09] TEST: Multipath route delete exact match [ OK ] # 109.61 [+1.67] # 109.61 [+0.00] IPv4 rp_filter tests # 115.84 [+6.22] TEST: rp_filter passes local packets [ OK ] # 115.98 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 116.79 [+0.81] # 116.79 [+0.00] IPv4 delete address route tests # 119.59 [+2.80] Regular FIB info # 119.76 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 119.87 [+0.11] TEST: Route in default VRF not removed [ OK ] # 120.17 [+0.30] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.27 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 120.28 [+0.00] Identical FIB info with different table ID # 120.45 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 120.54 [+0.09] TEST: Route in default VRF not removed [ OK ] # 120.85 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.95 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 120.95 [+0.00] Table ID 0 # 121.12 [+0.17] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.08 [+0.95] # 122.08 [+0.00] IPv6 delete address route tests # 126.66 [+4.58] Single device using src address # 126.81 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 126.82 [+0.00] Two devices with the same source address # 126.99 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.15 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.16 [+0.00] VRF with single device using src address # 127.32 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.33 [+0.00] VRF with two devices using src address # 127.48 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.65 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.65 [+0.00] src address and nexthop dev in same VRF # 127.82 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 127.91 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 128.23 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 128.31 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 128.31 [+0.00] src address and nexthop device in different VRF # 128.49 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 128.58 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 128.83 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 128.92 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 128.92 [+0.00] Table ID 0 # 129.08 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 129.08 [+0.00] Link local source route # 129.23 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.40 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 129.48 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.72 [+0.24] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 131.15 [+1.43] # 131.15 [+0.00] IPv4 mangling tests # 138.65 [+7.50] TEST: Connection with correct parameters [ OK ] # 138.82 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 139.80 [+0.97] TEST: Connection with correct parameters - mangling [ OK ] # 140.64 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 140.70 [+0.06] TEST: Connection check - server side [ OK ] # 142.66 [+1.96] # 142.66 [+0.00] IPv6 mangling tests # 150.11 [+7.45] TEST: Connection with correct parameters [ OK ] # 150.30 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 151.14 [+0.84] TEST: Connection with correct parameters - mangling [ OK ] # 152.01 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 152.06 [+0.06] TEST: Connection check - server side [ OK ] # 154.11 [+2.05] # 154.11 [+0.00] IPv4 broadcast neighbour tests # 156.22 [+2.11] TEST: Resolved neighbour for broadcast address [ OK ] # 156.31 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 156.40 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 156.51 [+0.10] TEST: Unresolved neighbour for network broadcast address [ OK ] # 158.27 [+1.77] # 158.27 [+0.00] Fib6 garbage collection test # 171.43 [+13.15] TEST: ipv6 route garbage collection [ OK ] # 184.85 [+13.42] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 198.28 [+13.43] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 211.80 [+13.52] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 226.10 [+14.30] TEST: ipv6 route garbage collection (RA message) [ OK ] # 226.84 [+0.74] # 226.84 [+0.00] IPv4 multipath list receive tests # 243.31 [+16.46] TEST: Multipath route hit ratio (1.00) [ OK ] # 245.10 [+1.80] # 245.10 [+0.00] IPv6 multipath list receive tests # 261.20 [+16.09] TEST: Multipath route hit ratio (1.00) [ OK ] # 263.04 [+1.84] # 263.04 [+0.00] Tests passed: 229 # 263.04 [+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__->