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.62 [+0.62] # 0.62 [+0.00] Single path route test # 1.74 [+1.12] Start point # 1.84 [+0.10] TEST: IPv4 fibmatch [ OK ] # 1.94 [+0.09] TEST: IPv6 fibmatch [ OK ] # 2.08 [+0.15] Nexthop device deleted # 2.18 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 2.30 [+0.13] TEST: IPv6 fibmatch - no route [ OK ] # 2.92 [+0.61] # 2.92 [+0.00] Multipath route test # 4.89 [+1.97] Start point # 4.98 [+0.09] TEST: IPv4 fibmatch [ OK ] # 5.08 [+0.10] TEST: IPv6 fibmatch [ OK ] # 5.26 [+0.17] One nexthop device deleted # 5.34 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.44 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 5.58 [+0.15] Second nexthop device deleted # 5.70 [+0.12] TEST: IPv6 - no route [ OK ] # 6.34 [+0.63] # 6.34 [+0.00] Single path, admin down # 7.72 [+1.38] Start point # 7.82 [+0.10] TEST: IPv4 fibmatch [ OK ] # 7.91 [+0.09] TEST: IPv6 fibmatch [ OK ] # 8.02 [+0.11] Route deleted on down # 8.11 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.22 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.70 [+0.48] # 8.70 [+0.00] Admin down multipath # 10.76 [+2.05] Verify start point # 10.89 [+0.13] TEST: IPv4 fibmatch [ OK ] # 11.01 [+0.12] TEST: IPv6 fibmatch [ OK ] # 11.15 [+0.13] One device down, one up # 11.27 [+0.12] TEST: IPv4 fibmatch on down device [ OK ] # 11.42 [+0.15] TEST: IPv6 fibmatch on down device [ OK ] # 11.53 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 11.63 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 11.76 [+0.12] TEST: IPv4 flags on down device [ OK ] # 11.87 [+0.11] TEST: IPv6 flags on down device [ OK ] # 11.97 [+0.10] TEST: IPv4 flags on up device [ OK ] # 12.07 [+0.10] TEST: IPv6 flags on up device [ OK ] # 12.27 [+0.20] Other device down and up # 12.36 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.49 [+0.12] TEST: IPv6 fibmatch on down device [ OK ] # 12.59 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 12.69 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 12.85 [+0.16] TEST: IPv4 flags on down device [ OK ] # 12.98 [+0.13] TEST: IPv6 flags on down device [ OK ] # 13.11 [+0.13] TEST: IPv4 flags on up device [ OK ] # 13.21 [+0.10] TEST: IPv6 flags on up device [ OK ] # 13.32 [+0.11] Both devices down # 13.43 [+0.11] TEST: IPv4 fibmatch [ OK ] # 13.52 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.17 [+0.65] # 14.17 [+0.00] Local carrier tests - single path # 15.72 [+1.54] Start point # 15.81 [+0.09] TEST: IPv4 fibmatch [ OK ] # 15.92 [+0.11] TEST: IPv6 fibmatch [ OK ] # 16.03 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 16.13 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 17.30 [+1.17] Carrier off on nexthop # 17.43 [+0.13] TEST: IPv4 fibmatch [ OK ] # 17.53 [+0.10] TEST: IPv6 fibmatch [ OK ] # 17.63 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 17.75 [+0.12] TEST: IPv6 - linkdown flag set [ OK ] # 17.97 [+0.22] Route to local address with carrier down # 18.10 [+0.13] TEST: IPv4 fibmatch [ OK ] # 18.20 [+0.10] TEST: IPv6 fibmatch [ OK ] # 18.30 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 18.43 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 19.02 [+0.59] # 19.02 [+0.00] Single path route carrier test # 20.55 [+1.53] Start point # 20.64 [+0.10] TEST: IPv4 fibmatch [ OK ] # 20.74 [+0.10] TEST: IPv6 fibmatch [ OK ] # 20.86 [+0.11] TEST: IPv4 no linkdown flag [ OK ] # 20.95 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 22.11 [+1.16] Carrier down # 22.21 [+0.10] TEST: IPv4 fibmatch [ OK ] # 22.32 [+0.11] TEST: IPv6 fibmatch [ OK ] # 22.43 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 22.55 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 22.77 [+0.23] Second address added with carrier down # 22.89 [+0.12] TEST: IPv4 fibmatch [ OK ] # 22.98 [+0.09] TEST: IPv6 fibmatch [ OK ] # 23.10 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 23.20 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 28.04 [+4.84] # 28.04 [+0.00] IPv4 nexthop tests # 28.04 [+0.00] <<< write me >>> # 28.33 [+0.29] # 28.33 [+0.00] IPv6 nexthop tests # 28.42 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 28.53 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.63 [+0.10] TEST: Gateway is linklocal address [ OK ] # 28.74 [+0.11] TEST: Gateway is linklocal address, no device [ OK ] # 28.86 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 28.97 [+0.11] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.07 [+0.11] TEST: Gateway can not be a local linklocal address [ OK ] # 29.18 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 29.29 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.39 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.50 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 29.60 [+0.10] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.70 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 29.81 [+0.11] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 30.88 [+1.07] # 30.88 [+0.00] FIB rule with suppress_prefixlength # 32.82 [+1.94] TEST: FIB rule suppress test [ OK ] # 34.46 [+1.64] # 34.46 [+0.00] Fib6 info length calculation in route notify test # 38.47 [+4.01] TEST: ipv6 route add notify [ OK ] # 40.06 [+1.60] # 40.06 [+0.00] Fib4 info length calculation in route notify test # 44.03 [+3.96] TEST: ipv4 route add notify [ OK ] # 48.39 [+4.36] # 48.39 [+0.00] IPv6 route add / append tests # 48.76 [+0.37] TEST: Attempt to add duplicate route - gw [ OK ] # 49.12 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 49.47 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.94 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 50.33 [+0.39] TEST: Add multipath route [ OK ] # 50.69 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 51.14 [+0.46] TEST: Route add with different metrics [ OK ] # 51.34 [+0.20] TEST: Route delete with metric [ OK ] # 51.35 [+0.00] # 51.35 [+0.00] IPv6 route replace tests # 51.79 [+0.44] TEST: Single path with single path [ OK ] # 52.27 [+0.48] TEST: Single path with multipath [ OK ] # 52.73 [+0.46] TEST: Single path with single path via multipath attribute [ OK ] # 53.17 [+0.44] TEST: Invalid nexthop [ OK ] # 53.54 [+0.37] TEST: Single path - replace of non-existent route [ OK ] # 54.00 [+0.47] TEST: Multipath with multipath [ OK ] # 54.47 [+0.47] TEST: Multipath with single path [ OK ] # 54.93 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 55.39 [+0.46] TEST: Multipath with dev-only [ OK ] # 55.86 [+0.47] TEST: Multipath - invalid first nexthop [ OK ] # 56.30 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 56.66 [+0.36] TEST: Multipath - replace of non-existent route [ OK ] # 56.67 [+0.00] # 56.67 [+0.00] IPv6 route with dsfield tests # 56.85 [+0.19] TEST: Reject route with dsfield [ OK ] # 62.95 [+6.10] # 62.95 [+0.00] IPv4 route add / append tests # 63.30 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 63.66 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 64.03 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 64.47 [+0.44] TEST: Add new nexthop for existing prefix [ OK ] # 64.92 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 65.36 [+0.44] TEST: Append nexthop to existing route - dev only [ OK ] # 65.81 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 66.17 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 66.54 [+0.37] TEST: Append nexthop to existing reject route - dev only [ OK ] # 66.89 [+0.35] TEST: add multipath route [ OK ] # 67.25 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 67.67 [+0.42] TEST: Route add with different metrics [ OK ] # 67.86 [+0.19] TEST: Route delete with metric [ OK ] # 67.86 [+0.00] # 67.86 [+0.00] IPv4 route replace tests # 68.31 [+0.45] TEST: Single path with single path [ OK ] # 68.74 [+0.43] TEST: Single path with multipath [ OK ] # 69.19 [+0.45] TEST: Single path with reject route [ OK ] # 69.64 [+0.44] TEST: Single path with single path via multipath attribute [ OK ] # 70.07 [+0.44] TEST: Invalid nexthop [ OK ] # 70.43 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 70.87 [+0.43] TEST: Multipath with multipath [ OK ] # 71.33 [+0.46] TEST: Multipath with single path [ OK ] # 71.76 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 72.21 [+0.45] TEST: Multipath with reject route [ OK ] # 72.65 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 73.09 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 73.43 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 74.81 [+1.37] TEST: Cached route removed from VRF port device [ OK ] # 74.81 [+0.00] # 74.81 [+0.00] IPv4 route with dsfield tests # 74.99 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 75.08 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 75.17 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 75.43 [+0.26] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 75.52 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 75.60 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 75.68 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 75.76 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 75.85 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 75.94 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 76.03 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 76.12 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 76.20 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 76.29 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 76.36 [+0.07] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 78.11 [+1.75] # 78.11 [+0.00] IPv6 prefix route tests # 79.88 [+1.77] TEST: Default metric [ OK ] # 80.16 [+0.29] TEST: User specified metric on first device [ OK ] # 80.45 [+0.28] TEST: User specified metric on second device [ OK ] # 80.62 [+0.18] TEST: Delete of address on first device [ OK ] # 80.81 [+0.19] TEST: Modify metric of address [ OK ] # 81.11 [+0.30] TEST: Prefix route removed on link down [ OK ] # 81.29 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 81.56 [+0.27] TEST: Set metric with peer route on local side [ OK ] # 81.65 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 81.84 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 81.93 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 82.88 [+0.96] # 82.88 [+0.00] IPv4 prefix route tests # 84.64 [+1.76] TEST: Default metric [ OK ] # 84.92 [+0.28] TEST: User specified metric on first device [ OK ] # 85.21 [+0.28] TEST: User specified metric on second device [ OK ] # 85.39 [+0.19] TEST: Delete of address on first device [ OK ] # 85.63 [+0.24] TEST: Modify metric of address [ OK ] # 85.80 [+0.16] TEST: Prefix route removed on link down [ OK ] # 86.02 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 86.40 [+0.37] TEST: Modify metric of .0/24 address [ OK ] # 86.66 [+0.27] TEST: Set metric of address with peer route [ OK ] # 86.85 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 87.80 [+0.95] # 87.80 [+0.00] IPv6 routes with metrics # 92.21 [+4.42] TEST: Single path route with mtu metric [ OK ] # 92.49 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 92.77 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 92.94 [+0.16] TEST: MTU of second leg [ OK ] # 93.14 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 93.37 [+0.23] TEST: Using route with mtu metric [ OK ] # 93.53 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 95.17 [+1.64] # 95.17 [+0.00] IPv4 route add / append tests # 99.56 [+4.39] TEST: Single path route with mtu metric [ OK ] # 99.74 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 99.95 [+0.21] TEST: Using route with mtu metric [ OK ] # 100.11 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 101.77 [+1.66] # 101.77 [+0.00] IPv4 route with IPv6 gateway tests # 108.00 [+6.22] TEST: Single path route with IPv6 gateway [ OK ] # 108.22 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 108.32 [+0.10] TEST: Single path route delete [ OK ] # 108.48 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 108.66 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.79 [+0.13] TEST: Multipath route delete exact match [ OK ] # 108.88 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 109.08 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 109.16 [+0.08] TEST: Multipath route delete exact match [ OK ] # 110.89 [+1.73] # 110.89 [+0.00] IPv4 rp_filter tests # 116.64 [+5.75] TEST: rp_filter passes local packets [ OK ] # 116.81 [+0.17] TEST: rp_filter passes loopback packets [ OK ] # 117.58 [+0.77] # 117.58 [+0.00] IPv4 delete address route tests # 120.31 [+2.73] Regular FIB info # 120.45 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 120.53 [+0.08] TEST: Route in default VRF not removed [ OK ] # 120.83 [+0.30] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.91 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 120.91 [+0.00] Identical FIB info with different table ID # 121.08 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 121.16 [+0.08] TEST: Route in default VRF not removed [ OK ] # 121.53 [+0.37] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.60 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 121.60 [+0.00] Table ID 0 # 121.77 [+0.17] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.72 [+0.95] # 122.73 [+0.00] IPv6 delete address route tests # 127.04 [+4.32] Single device using src address # 127.19 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.19 [+0.00] Two devices with the same source address # 127.36 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.50 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.51 [+0.00] VRF with single device using src address # 127.65 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.65 [+0.00] VRF with two devices using src address # 127.81 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.97 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.97 [+0.00] src address and nexthop dev in same VRF # 128.14 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 128.22 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 128.52 [+0.30] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 128.60 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 128.60 [+0.00] src address and nexthop device in different VRF # 128.76 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 128.84 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 129.07 [+0.23] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 129.15 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 129.15 [+0.00] Table ID 0 # 129.30 [+0.15] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 129.30 [+0.00] Link local source route # 129.47 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.63 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 129.70 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.95 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 131.41 [+1.46] # 131.41 [+0.00] IPv4 mangling tests # 138.61 [+7.21] TEST: Connection with correct parameters [ OK ] # 138.79 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 139.68 [+0.89] TEST: Connection with correct parameters - mangling [ OK ] # 140.52 [+0.83] TEST: Connection with correct parameters - no mangling [ OK ] # 140.58 [+0.06] TEST: Connection check - server side [ OK ] # 142.56 [+1.98] # 142.56 [+0.00] IPv6 mangling tests # 151.33 [+8.77] TEST: Connection with correct parameters [ OK ] # 151.64 [+0.31] TEST: Connection with incorrect parameters [ OK ] # 152.50 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 153.39 [+0.89] TEST: Connection with correct parameters - no mangling [ OK ] # 153.46 [+0.07] TEST: Connection check - server side [ OK ] # 155.66 [+2.21] # 155.66 [+0.00] IPv4 broadcast neighbour tests # 157.91 [+2.25] TEST: Resolved neighbour for broadcast address [ OK ] # 158.01 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 158.09 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 158.18 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 160.00 [+1.81] # 160.00 [+0.00] Fib6 garbage collection test # 173.20 [+13.21] TEST: ipv6 route garbage collection [ OK ] # 186.63 [+13.43] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 200.49 [+13.86] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 214.03 [+13.54] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 228.51 [+14.48] TEST: ipv6 route garbage collection (RA message) [ OK ] # 229.28 [+0.77] # 229.28 [+0.00] IPv4 multipath list receive tests # 244.33 [+15.05] TEST: Multipath route hit ratio (1.00) [ OK ] # 246.13 [+1.79] # 246.13 [+0.00] IPv6 multipath list receive tests # 260.67 [+14.54] TEST: Multipath route hit ratio (1.00) [ OK ] # 262.50 [+1.83] # 262.50 [+0.00] Tests passed: 229 # 262.50 [+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__->