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.50 [+0.50] # 0.50 [+0.00] Single path route test # 1.65 [+1.15] Start point # 1.75 [+0.10] TEST: IPv4 fibmatch [ OK ] # 1.85 [+0.11] TEST: IPv6 fibmatch [ OK ] # 1.98 [+0.13] Nexthop device deleted # 2.10 [+0.12] TEST: IPv4 fibmatch - no route [ OK ] # 2.20 [+0.10] TEST: IPv6 fibmatch - no route [ OK ] # 2.88 [+0.68] # 2.88 [+0.00] Multipath route test # 4.95 [+2.08] Start point # 5.05 [+0.10] TEST: IPv4 fibmatch [ OK ] # 5.17 [+0.12] TEST: IPv6 fibmatch [ OK ] # 5.32 [+0.14] One nexthop device deleted # 5.43 [+0.11] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.53 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 5.68 [+0.15] Second nexthop device deleted # 5.79 [+0.11] TEST: IPv6 - no route [ OK ] # 6.43 [+0.64] # 6.43 [+0.00] Single path, admin down # 7.87 [+1.43] Start point # 7.97 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.08 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.19 [+0.10] Route deleted on down # 8.28 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.39 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.94 [+0.55] # 8.94 [+0.00] Admin down multipath # 10.99 [+2.05] Verify start point # 11.10 [+0.11] TEST: IPv4 fibmatch [ OK ] # 11.21 [+0.11] TEST: IPv6 fibmatch [ OK ] # 11.32 [+0.11] One device down, one up # 11.41 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 11.52 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 11.63 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 11.72 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 11.83 [+0.11] TEST: IPv4 flags on down device [ OK ] # 11.93 [+0.10] TEST: IPv6 flags on down device [ OK ] # 12.04 [+0.11] TEST: IPv4 flags on up device [ OK ] # 12.15 [+0.11] TEST: IPv6 flags on up device [ OK ] # 12.36 [+0.21] Other device down and up # 12.46 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.56 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 12.66 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.78 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 12.89 [+0.11] TEST: IPv4 flags on down device [ OK ] # 12.99 [+0.11] TEST: IPv6 flags on down device [ OK ] # 13.10 [+0.10] TEST: IPv4 flags on up device [ OK ] # 13.21 [+0.12] TEST: IPv6 flags on up device [ OK ] # 13.33 [+0.11] Both devices down # 13.42 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.51 [+0.10] TEST: IPv6 fibmatch [ OK ] # 14.21 [+0.70] # 14.21 [+0.00] Local carrier tests - single path # 15.74 [+1.53] Start point # 15.86 [+0.11] TEST: IPv4 fibmatch [ OK ] # 15.96 [+0.10] TEST: IPv6 fibmatch [ OK ] # 16.08 [+0.13] TEST: IPv4 - no linkdown flag [ OK ] # 16.19 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 17.35 [+1.16] Carrier off on nexthop # 17.48 [+0.12] TEST: IPv4 fibmatch [ OK ] # 17.58 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.70 [+0.11] TEST: IPv4 - linkdown flag set [ OK ] # 17.82 [+0.12] TEST: IPv6 - linkdown flag set [ OK ] # 18.02 [+0.20] Route to local address with carrier down # 18.12 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.22 [+0.11] TEST: IPv6 fibmatch [ OK ] # 18.32 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.42 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 18.98 [+0.56] # 18.98 [+0.00] Single path route carrier test # 20.50 [+1.52] Start point # 20.60 [+0.11] TEST: IPv4 fibmatch [ OK ] # 20.71 [+0.11] TEST: IPv6 fibmatch [ OK ] # 20.81 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 20.91 [+0.11] TEST: IPv6 no linkdown flag [ OK ] # 22.07 [+1.15] Carrier down # 22.19 [+0.12] TEST: IPv4 fibmatch [ OK ] # 22.28 [+0.10] TEST: IPv6 fibmatch [ OK ] # 22.40 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 22.52 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 22.73 [+0.21] Second address added with carrier down # 22.83 [+0.10] TEST: IPv4 fibmatch [ OK ] # 22.94 [+0.11] TEST: IPv6 fibmatch [ OK ] # 23.03 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 23.13 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 28.15 [+5.02] # 28.15 [+0.00] IPv4 nexthop tests # 28.16 [+0.00] <<< write me >>> # 28.45 [+0.29] # 28.45 [+0.00] IPv6 nexthop tests # 28.56 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 28.69 [+0.13] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.81 [+0.12] TEST: Gateway is linklocal address [ OK ] # 28.93 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 29.05 [+0.12] TEST: Gateway can not be local unicast address [ OK ] # 29.17 [+0.12] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.28 [+0.11] TEST: Gateway can not be a local linklocal address [ OK ] # 29.41 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 29.51 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.63 [+0.12] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.74 [+0.11] TEST: Redirect to VRF lookup [ OK ] # 29.87 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.99 [+0.13] TEST: VRF route, gateway can not be a local address [ OK ] # 30.11 [+0.12] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 31.29 [+1.18] # 31.29 [+0.00] FIB rule with suppress_prefixlength # 33.53 [+2.24] TEST: FIB rule suppress test [ OK ] # 35.48 [+1.95] # 35.48 [+0.00] Fib6 info length calculation in route notify test # 39.95 [+4.47] TEST: ipv6 route add notify [ OK ] # 41.95 [+2.00] # 41.95 [+0.00] Fib4 info length calculation in route notify test # 46.45 [+4.50] TEST: ipv4 route add notify [ OK ] # 52.24 [+5.79] # 52.24 [+0.00] IPv6 route add / append tests # 52.68 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 53.14 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 53.58 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 54.18 [+0.60] TEST: Append nexthop to existing route - gw [ OK ] # 54.64 [+0.46] TEST: Add multipath route [ OK ] # 55.09 [+0.45] TEST: Attempt to add duplicate multipath route [ OK ] # 55.68 [+0.59] TEST: Route add with different metrics [ OK ] # 55.92 [+0.24] TEST: Route delete with metric [ OK ] # 55.93 [+0.00] # 55.93 [+0.00] IPv6 route replace tests # 56.50 [+0.57] TEST: Single path with single path [ OK ] # 57.12 [+0.63] TEST: Single path with multipath [ OK ] # 57.70 [+0.58] TEST: Single path with single path via multipath attribute [ OK ] # 58.28 [+0.58] TEST: Invalid nexthop [ OK ] # 58.74 [+0.46] TEST: Single path - replace of non-existent route [ OK ] # 59.34 [+0.60] TEST: Multipath with multipath [ OK ] # 59.91 [+0.57] TEST: Multipath with single path [ OK ] # 60.50 [+0.59] TEST: Multipath with single path via multipath attribute [ OK ] # 61.09 [+0.59] TEST: Multipath with dev-only [ OK ] # 61.68 [+0.59] TEST: Multipath - invalid first nexthop [ OK ] # 62.28 [+0.61] TEST: Multipath - invalid second nexthop [ OK ] # 62.72 [+0.43] TEST: Multipath - replace of non-existent route [ OK ] # 62.72 [+0.00] # 62.72 [+0.00] IPv6 route with dsfield tests # 62.95 [+0.23] TEST: Reject route with dsfield [ OK ] # 70.37 [+7.43] # 70.37 [+0.00] IPv4 route add / append tests # 70.82 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 71.27 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 71.71 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 72.27 [+0.57] TEST: Add new nexthop for existing prefix [ OK ] # 72.85 [+0.57] TEST: Append nexthop to existing route - gw [ OK ] # 73.39 [+0.54] TEST: Append nexthop to existing route - dev only [ OK ] # 73.94 [+0.55] TEST: Append nexthop to existing route - reject route [ OK ] # 74.40 [+0.46] TEST: Append nexthop to existing reject route - gw [ OK ] # 74.85 [+0.45] TEST: Append nexthop to existing reject route - dev only [ OK ] # 75.31 [+0.46] TEST: add multipath route [ OK ] # 75.74 [+0.43] TEST: Attempt to add duplicate multipath route [ OK ] # 76.32 [+0.57] TEST: Route add with different metrics [ OK ] # 76.54 [+0.22] TEST: Route delete with metric [ OK ] # 76.54 [+0.00] # 76.54 [+0.00] IPv4 route replace tests # 77.10 [+0.56] TEST: Single path with single path [ OK ] # 77.64 [+0.54] TEST: Single path with multipath [ OK ] # 78.21 [+0.57] TEST: Single path with reject route [ OK ] # 78.78 [+0.57] TEST: Single path with single path via multipath attribute [ OK ] # 79.36 [+0.57] TEST: Invalid nexthop [ OK ] # 79.80 [+0.44] TEST: Single path - replace of non-existent route [ OK ] # 80.37 [+0.57] TEST: Multipath with multipath [ OK ] # 80.93 [+0.56] TEST: Multipath with single path [ OK ] # 81.50 [+0.57] TEST: Multipath with single path via multipath attribute [ OK ] # 82.08 [+0.59] TEST: Multipath with reject route [ OK ] # 82.67 [+0.58] TEST: Multipath - invalid first nexthop [ OK ] # 83.24 [+0.58] TEST: Multipath - invalid second nexthop [ OK ] # 83.68 [+0.43] TEST: Multipath - replace of non-existent route [ OK ] # 85.50 [+1.82] TEST: Cached route removed from VRF port device [ OK ] # 85.50 [+0.00] # 85.50 [+0.00] IPv4 route with dsfield tests # 85.74 [+0.23] TEST: Reject route with dsfield 0x01 [ OK ] # 85.85 [+0.11] TEST: Reject route with dsfield 0x02 [ OK ] # 85.98 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 86.32 [+0.34] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 86.46 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 86.59 [+0.13] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 86.72 [+0.14] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 86.83 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 86.93 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 87.05 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 87.16 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 87.28 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 87.38 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 87.50 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 87.61 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 89.79 [+2.19] # 89.79 [+0.00] IPv6 prefix route tests # 92.14 [+2.35] TEST: Default metric [ OK ] # 92.51 [+0.37] TEST: User specified metric on first device [ OK ] # 92.88 [+0.37] TEST: User specified metric on second device [ OK ] # 93.10 [+0.22] TEST: Delete of address on first device [ OK ] # 93.34 [+0.24] TEST: Modify metric of address [ OK ] # 93.73 [+0.39] TEST: Prefix route removed on link down [ OK ] # 93.96 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 94.31 [+0.34] TEST: Set metric with peer route on local side [ OK ] # 94.42 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 94.68 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 94.80 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 95.97 [+1.17] # 95.97 [+0.00] IPv4 prefix route tests # 98.32 [+2.35] TEST: Default metric [ OK ] # 98.67 [+0.35] TEST: User specified metric on first device [ OK ] # 99.02 [+0.35] TEST: User specified metric on second device [ OK ] # 99.26 [+0.24] TEST: Delete of address on first device [ OK ] # 99.50 [+0.24] TEST: Modify metric of address [ OK ] # 99.71 [+0.21] TEST: Prefix route removed on link down [ OK ] # 99.96 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 100.42 [+0.46] TEST: Modify metric of .0/24 address [ OK ] # 100.78 [+0.36] TEST: Set metric of address with peer route [ OK ] # 101.00 [+0.22] TEST: Modify metric and peer address for peer route [ OK ] # 102.23 [+1.22] # 102.23 [+0.00] IPv6 routes with metrics # 107.97 [+5.74] TEST: Single path route with mtu metric [ OK ] # 108.34 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 108.72 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 108.95 [+0.24] TEST: MTU of second leg [ OK ] # 109.20 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 109.49 [+0.29] TEST: Using route with mtu metric [ OK ] # 109.68 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 111.59 [+1.91] # 111.59 [+0.00] IPv4 route add / append tests # 117.32 [+5.73] TEST: Single path route with mtu metric [ OK ] # 117.55 [+0.23] TEST: Multipath route with mtu metric [ OK ] # 117.85 [+0.30] TEST: Using route with mtu metric [ OK ] # 118.04 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 120.07 [+2.03] # 120.07 [+0.00] IPv4 route with IPv6 gateway tests # 127.75 [+7.69] TEST: Single path route with IPv6 gateway [ OK ] # 128.07 [+0.31] TEST: Single path route with IPv6 gateway - ping [ OK ] # 128.18 [+0.11] TEST: Single path route delete [ OK ] # 128.39 [+0.21] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 128.63 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 128.74 [+0.11] TEST: Multipath route delete exact match [ OK ] # 128.85 [+0.12] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 129.08 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 129.19 [+0.11] TEST: Multipath route delete exact match [ OK ] # 131.24 [+2.04] # 131.24 [+0.00] IPv4 rp_filter tests # 138.64 [+7.40] TEST: rp_filter passes local packets [ OK ] # 138.82 [+0.18] TEST: rp_filter passes loopback packets [ OK ] # 139.74 [+0.92] # 139.74 [+0.00] IPv4 delete address route tests # 143.29 [+3.55] Regular FIB info # 143.51 [+0.22] TEST: Route removed from VRF when source address deleted [ OK ] # 143.64 [+0.13] TEST: Route in default VRF not removed [ OK ] # 144.06 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 144.18 [+0.12] TEST: Route in VRF is not removed by address delete [ OK ] # 144.18 [+0.00] Identical FIB info with different table ID # 144.41 [+0.23] TEST: Route removed from VRF when source address deleted [ OK ] # 144.50 [+0.10] TEST: Route in default VRF not removed [ OK ] # 144.91 [+0.40] TEST: Route removed in default VRF when source address deleted [ OK ] # 145.01 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 145.01 [+0.00] Table ID 0 # 145.23 [+0.21] TEST: Route removed in default VRF when source address deleted [ OK ] # 146.44 [+1.21] # 146.44 [+0.00] IPv6 delete address route tests # 152.39 [+5.95] Single device using src address # 152.61 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 152.61 [+0.00] Two devices with the same source address # 152.83 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 153.06 [+0.23] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 153.06 [+0.00] VRF with single device using src address # 153.28 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 153.28 [+0.00] VRF with two devices using src address # 153.49 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 153.73 [+0.24] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 153.73 [+0.00] src address and nexthop dev in same VRF # 153.95 [+0.21] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 154.08 [+0.14] TEST: Prefsrc in default VRF not removed [ OK ] # 154.51 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 154.63 [+0.11] TEST: Prefsrc in default VRF removed [ OK ] # 154.63 [+0.00] src address and nexthop device in different VRF # 154.84 [+0.21] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 154.95 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 155.27 [+0.33] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 155.38 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 155.38 [+0.00] Table ID 0 # 155.60 [+0.22] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 155.60 [+0.00] Link local source route # 155.84 [+0.24] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 156.06 [+0.23] TEST: Prefsrc removed when delete ll addr [ OK ] # 156.16 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 156.49 [+0.33] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 158.31 [+1.82] # 158.31 [+0.00] IPv4 mangling tests # 167.43 [+9.12] TEST: Connection with correct parameters [ OK ] # 167.67 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 168.80 [+1.14] TEST: Connection with correct parameters - mangling [ OK ] # 169.75 [+0.94] TEST: Connection with correct parameters - no mangling [ OK ] # 169.84 [+0.09] TEST: Connection check - server side [ OK ] # 172.20 [+2.36] # 172.20 [+0.00] IPv6 mangling tests # 181.04 [+8.84] TEST: Connection with correct parameters [ OK ] # 181.29 [+0.26] TEST: Connection with incorrect parameters [ OK ] # 182.23 [+0.94] TEST: Connection with correct parameters - mangling [ OK ] # 183.21 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 183.29 [+0.08] TEST: Connection check - server side [ OK ] # 185.77 [+2.48] # 185.77 [+0.00] IPv4 broadcast neighbour tests # 188.58 [+2.81] TEST: Resolved neighbour for broadcast address [ OK ] # 188.70 [+0.11] TEST: Resolved neighbour for network broadcast address [ OK ] # 188.82 [+0.12] TEST: Unresolved neighbour for broadcast address [ OK ] # 188.94 [+0.12] TEST: Unresolved neighbour for network broadcast address [ OK ] # 191.30 [+2.37] # 191.30 [+0.00] Fib6 garbage collection test # 204.83 [+13.52] TEST: ipv6 route garbage collection [ OK ] # 218.63 [+13.80] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 232.44 [+13.81] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 246.40 [+13.96] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 260.99 [+14.59] TEST: ipv6 route garbage collection (RA message) [ OK ] # 261.90 [+0.91] # 261.90 [+0.00] IPv4 multipath list receive tests # 280.66 [+18.76] TEST: Multipath route hit ratio (1.00) [ OK ] # 282.91 [+2.24] # 282.91 [+0.00] IPv6 multipath list receive tests # 301.45 [+18.54] TEST: Multipath route hit ratio (1.00) [ OK ] # 303.61 [+2.16] # 303.61 [+0.00] Tests passed: 229 # 303.61 [+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__->