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.73 [+1.21] Start point # 1.83 [+0.10] TEST: IPv4 fibmatch [ OK ] # 1.96 [+0.12] TEST: IPv6 fibmatch [ OK ] # 2.13 [+0.18] Nexthop device deleted # 2.23 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.32 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 3.07 [+0.75] # 3.07 [+0.00] Multipath route test # 5.31 [+2.24] Start point # 5.46 [+0.14] TEST: IPv4 fibmatch [ OK ] # 5.58 [+0.12] TEST: IPv6 fibmatch [ OK ] # 5.77 [+0.19] One nexthop device deleted # 5.91 [+0.14] TEST: IPv4 - multipath route removed on delete [ OK ] # 6.01 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 6.16 [+0.15] Second nexthop device deleted # 6.28 [+0.12] TEST: IPv6 - no route [ OK ] # 7.05 [+0.77] # 7.06 [+0.00] Single path, admin down # 8.61 [+1.56] Start point # 8.71 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.81 [+0.10] TEST: IPv6 fibmatch [ OK ] # 8.90 [+0.09] Route deleted on down # 9.01 [+0.10] TEST: IPv4 fibmatch [ OK ] # 9.12 [+0.11] TEST: IPv6 fibmatch [ OK ] # 9.64 [+0.52] # 9.65 [+0.00] Admin down multipath # 11.85 [+2.21] Verify start point # 11.99 [+0.14] TEST: IPv4 fibmatch [ OK ] # 12.09 [+0.10] TEST: IPv6 fibmatch [ OK ] # 12.22 [+0.13] One device down, one up # 12.33 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.45 [+0.12] TEST: IPv6 fibmatch on down device [ OK ] # 12.56 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.67 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 12.80 [+0.13] TEST: IPv4 flags on down device [ OK ] # 12.95 [+0.14] TEST: IPv6 flags on down device [ OK ] # 13.07 [+0.12] TEST: IPv4 flags on up device [ OK ] # 13.23 [+0.16] TEST: IPv6 flags on up device [ OK ] # 13.48 [+0.25] Other device down and up # 13.62 [+0.14] TEST: IPv4 fibmatch on down device [ OK ] # 13.73 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 13.90 [+0.17] TEST: IPv4 fibmatch on up device [ OK ] # 14.03 [+0.14] TEST: IPv6 fibmatch on up device [ OK ] # 14.18 [+0.14] TEST: IPv4 flags on down device [ OK ] # 14.31 [+0.14] TEST: IPv6 flags on down device [ OK ] # 14.48 [+0.17] TEST: IPv4 flags on up device [ OK ] # 14.60 [+0.12] TEST: IPv6 flags on up device [ OK ] # 14.73 [+0.13] Both devices down # 14.81 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.93 [+0.12] TEST: IPv6 fibmatch [ OK ] # 15.69 [+0.76] # 15.69 [+0.00] Local carrier tests - single path # 17.20 [+1.51] Start point # 17.29 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.41 [+0.12] TEST: IPv6 fibmatch [ OK ] # 17.52 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 17.63 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 18.78 [+1.15] Carrier off on nexthop # 18.88 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.98 [+0.10] TEST: IPv6 fibmatch [ OK ] # 19.08 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 19.17 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 19.39 [+0.22] Route to local address with carrier down # 19.48 [+0.09] TEST: IPv4 fibmatch [ OK ] # 19.59 [+0.10] TEST: IPv6 fibmatch [ OK ] # 19.67 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 19.76 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 20.23 [+0.47] # 20.23 [+0.00] Single path route carrier test # 21.53 [+1.30] Start point # 21.63 [+0.10] TEST: IPv4 fibmatch [ OK ] # 21.72 [+0.09] TEST: IPv6 fibmatch [ OK ] # 21.81 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 21.89 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 23.04 [+1.15] Carrier down # 23.13 [+0.09] TEST: IPv4 fibmatch [ OK ] # 23.22 [+0.09] TEST: IPv6 fibmatch [ OK ] # 23.31 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 23.39 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 23.56 [+0.17] Second address added with carrier down # 23.65 [+0.09] TEST: IPv4 fibmatch [ OK ] # 23.73 [+0.08] TEST: IPv6 fibmatch [ OK ] # 23.81 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 23.90 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 28.24 [+4.33] # 28.24 [+0.00] IPv4 nexthop tests # 28.24 [+0.00] <<< write me >>> # 28.48 [+0.24] # 28.48 [+0.00] IPv6 nexthop tests # 28.56 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 28.66 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.75 [+0.09] TEST: Gateway is linklocal address [ OK ] # 28.85 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 28.95 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 29.05 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.14 [+0.10] TEST: Gateway can not be a local linklocal address [ OK ] # 29.24 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 29.35 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.45 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.54 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 29.63 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.73 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 29.82 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 30.83 [+1.01] # 30.83 [+0.00] FIB rule with suppress_prefixlength # 32.60 [+1.77] TEST: FIB rule suppress test [ OK ] # 34.18 [+1.58] # 34.18 [+0.00] Fib6 info length calculation in route notify test # 38.16 [+3.99] TEST: ipv6 route add notify [ OK ] # 39.75 [+1.59] # 39.75 [+0.00] Fib4 info length calculation in route notify test # 43.72 [+3.97] TEST: ipv4 route add notify [ OK ] # 48.00 [+4.28] # 48.00 [+0.00] IPv6 route add / append tests # 48.36 [+0.36] TEST: Attempt to add duplicate route - gw [ OK ] # 48.72 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 49.08 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.55 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 49.95 [+0.40] TEST: Add multipath route [ OK ] # 50.30 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 50.75 [+0.45] TEST: Route add with different metrics [ OK ] # 50.96 [+0.21] TEST: Route delete with metric [ OK ] # 50.96 [+0.00] # 50.96 [+0.00] IPv6 route replace tests # 51.41 [+0.45] TEST: Single path with single path [ OK ] # 51.89 [+0.47] TEST: Single path with multipath [ OK ] # 52.35 [+0.47] TEST: Single path with single path via multipath attribute [ OK ] # 52.79 [+0.43] TEST: Invalid nexthop [ OK ] # 53.16 [+0.38] TEST: Single path - replace of non-existent route [ OK ] # 53.62 [+0.46] TEST: Multipath with multipath [ OK ] # 54.07 [+0.45] TEST: Multipath with single path [ OK ] # 54.53 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 54.97 [+0.44] TEST: Multipath with dev-only [ OK ] # 55.44 [+0.47] TEST: Multipath - invalid first nexthop [ OK ] # 55.90 [+0.46] TEST: Multipath - invalid second nexthop [ OK ] # 56.25 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 56.25 [+0.00] # 56.25 [+0.00] IPv6 route with dsfield tests # 56.44 [+0.19] TEST: Reject route with dsfield [ OK ] # 62.38 [+5.94] # 62.38 [+0.00] IPv4 route add / append tests # 62.74 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 63.10 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 63.45 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 63.90 [+0.45] TEST: Add new nexthop for existing prefix [ OK ] # 64.35 [+0.45] TEST: Append nexthop to existing route - gw [ OK ] # 64.81 [+0.46] TEST: Append nexthop to existing route - dev only [ OK ] # 65.25 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 65.61 [+0.36] TEST: Append nexthop to existing reject route - gw [ OK ] # 65.97 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 66.31 [+0.35] TEST: add multipath route [ OK ] # 66.67 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 67.10 [+0.43] TEST: Route add with different metrics [ OK ] # 67.27 [+0.17] TEST: Route delete with metric [ OK ] # 67.28 [+0.00] # 67.28 [+0.00] IPv4 route replace tests # 67.71 [+0.43] TEST: Single path with single path [ OK ] # 68.15 [+0.44] TEST: Single path with multipath [ OK ] # 68.56 [+0.41] TEST: Single path with reject route [ OK ] # 68.99 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 69.42 [+0.42] TEST: Invalid nexthop [ OK ] # 69.74 [+0.32] TEST: Single path - replace of non-existent route [ OK ] # 70.18 [+0.44] TEST: Multipath with multipath [ OK ] # 70.58 [+0.40] TEST: Multipath with single path [ OK ] # 71.01 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 71.43 [+0.42] TEST: Multipath with reject route [ OK ] # 71.86 [+0.42] TEST: Multipath - invalid first nexthop [ OK ] # 72.31 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 72.63 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 74.00 [+1.36] TEST: Cached route removed from VRF port device [ OK ] # 74.00 [+0.00] # 74.00 [+0.00] IPv4 route with dsfield tests # 74.19 [+0.19] TEST: Reject route with dsfield 0x01 [ OK ] # 74.26 [+0.07] TEST: Reject route with dsfield 0x02 [ OK ] # 74.36 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 74.63 [+0.28] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 74.72 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 74.81 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 74.89 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 74.97 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 75.06 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 75.15 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 75.22 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 75.31 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 75.41 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 75.48 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 75.56 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 77.33 [+1.77] # 77.33 [+0.00] IPv6 prefix route tests # 79.22 [+1.89] TEST: Default metric [ OK ] # 79.52 [+0.30] TEST: User specified metric on first device [ OK ] # 79.82 [+0.31] TEST: User specified metric on second device [ OK ] # 80.01 [+0.19] TEST: Delete of address on first device [ OK ] # 80.18 [+0.17] TEST: Modify metric of address [ OK ] # 80.48 [+0.30] TEST: Prefix route removed on link down [ OK ] # 80.65 [+0.17] TEST: Prefix route with metric on link up [ OK ] # 80.92 [+0.27] TEST: Set metric with peer route on local side [ OK ] # 81.01 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 81.19 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 81.27 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 82.22 [+0.95] # 82.22 [+0.00] IPv4 prefix route tests # 84.02 [+1.80] TEST: Default metric [ OK ] # 84.29 [+0.27] TEST: User specified metric on first device [ OK ] # 84.56 [+0.26] TEST: User specified metric on second device [ OK ] # 84.74 [+0.18] TEST: Delete of address on first device [ OK ] # 84.91 [+0.17] TEST: Modify metric of address [ OK ] # 85.09 [+0.18] TEST: Prefix route removed on link down [ OK ] # 85.27 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 85.67 [+0.40] TEST: Modify metric of .0/24 address [ OK ] # 85.94 [+0.27] TEST: Set metric of address with peer route [ OK ] # 86.14 [+0.20] TEST: Modify metric and peer address for peer route [ OK ] # 87.14 [+1.00] # 87.14 [+0.00] IPv6 routes with metrics # 91.50 [+4.36] TEST: Single path route with mtu metric [ OK ] # 91.77 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 92.05 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 92.25 [+0.20] TEST: MTU of second leg [ OK ] # 92.44 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 92.65 [+0.21] TEST: Using route with mtu metric [ OK ] # 92.80 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 94.45 [+1.64] # 94.45 [+0.00] IPv4 route add / append tests # 98.78 [+4.33] TEST: Single path route with mtu metric [ OK ] # 98.95 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 99.18 [+0.23] TEST: Using route with mtu metric [ OK ] # 99.34 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 100.96 [+1.62] # 100.96 [+0.00] IPv4 route with IPv6 gateway tests # 107.25 [+6.29] TEST: Single path route with IPv6 gateway [ OK ] # 107.47 [+0.22] TEST: Single path route with IPv6 gateway - ping [ OK ] # 107.55 [+0.08] TEST: Single path route delete [ OK ] # 107.72 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 107.90 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.99 [+0.10] TEST: Multipath route delete exact match [ OK ] # 108.08 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 108.27 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.36 [+0.09] TEST: Multipath route delete exact match [ OK ] # 109.99 [+1.63] # 109.99 [+0.00] IPv4 rp_filter tests # 115.74 [+5.75] TEST: rp_filter passes local packets [ OK ] # 115.88 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 116.59 [+0.71] # 116.59 [+0.00] IPv4 delete address route tests # 119.31 [+2.72] Regular FIB info # 119.49 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 119.57 [+0.08] TEST: Route in default VRF not removed [ OK ] # 119.92 [+0.35] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.02 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 120.02 [+0.00] Identical FIB info with different table ID # 120.17 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 120.27 [+0.10] TEST: Route in default VRF not removed [ OK ] # 120.59 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.67 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 120.67 [+0.00] Table ID 0 # 120.82 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.78 [+0.96] # 121.78 [+0.00] IPv6 delete address route tests # 126.51 [+4.73] Single device using src address # 126.68 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 126.68 [+0.00] Two devices with the same source address # 126.85 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.02 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.02 [+0.00] VRF with single device using src address # 127.19 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.19 [+0.00] VRF with two devices using src address # 127.35 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.52 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.52 [+0.00] src address and nexthop dev in same VRF # 127.70 [+0.18] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 127.79 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 128.11 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 128.19 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 128.20 [+0.00] src address and nexthop device in different VRF # 128.36 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 128.48 [+0.12] TEST: Prefsrc not removed in default VRF [ OK ] # 128.75 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 128.86 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 128.86 [+0.00] Table ID 0 # 129.04 [+0.18] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 129.04 [+0.00] Link local source route # 129.20 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.37 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 129.44 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.69 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 131.19 [+1.51] # 131.19 [+0.00] IPv4 mangling tests # 140.28 [+9.09] TEST: Connection with correct parameters [ OK ] # 140.45 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 141.37 [+0.92] TEST: Connection with correct parameters - mangling [ OK ] # 142.24 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 142.31 [+0.07] TEST: Connection check - server side [ OK ] # 144.33 [+2.02] # 144.33 [+0.00] IPv6 mangling tests # 152.38 [+8.05] TEST: Connection with correct parameters [ OK ] # 152.60 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 153.51 [+0.91] TEST: Connection with correct parameters - mangling [ OK ] # 154.48 [+0.96] TEST: Connection with correct parameters - no mangling [ OK ] # 154.55 [+0.07] TEST: Connection check - server side [ OK ] # 157.02 [+2.47] # 157.02 [+0.00] IPv4 broadcast neighbour tests # 159.21 [+2.18] TEST: Resolved neighbour for broadcast address [ OK ] # 159.30 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 159.39 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 159.47 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 161.44 [+1.97] # 161.44 [+0.00] Fib6 garbage collection test # 174.80 [+13.36] TEST: ipv6 route garbage collection [ OK ] # 188.28 [+13.48] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 201.70 [+13.42] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 215.75 [+14.05] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 230.03 [+14.28] TEST: ipv6 route garbage collection (RA message) [ OK ] # 230.83 [+0.79] # 230.83 [+0.00] IPv4 multipath list receive tests # 245.63 [+14.80] TEST: Multipath route hit ratio (1.00) [ OK ] # 247.43 [+1.80] # 247.43 [+0.00] IPv6 multipath list receive tests # 262.31 [+14.88] TEST: Multipath route hit ratio (1.00) [ OK ] # 264.22 [+1.90] # 264.22 [+0.00] Tests passed: 229 # 264.22 [+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__->