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.55 [+0.55] # 0.55 [+0.00] Single path route test # 1.64 [+1.09] Start point # 1.77 [+0.13] TEST: IPv4 fibmatch [ OK ] # 1.86 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.99 [+0.13] Nexthop device deleted # 2.08 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 2.16 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.79 [+0.63] # 2.79 [+0.00] Multipath route test # 4.73 [+1.94] Start point # 4.83 [+0.10] TEST: IPv4 fibmatch [ OK ] # 4.91 [+0.08] TEST: IPv6 fibmatch [ OK ] # 5.05 [+0.15] One nexthop device deleted # 5.14 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.23 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 5.38 [+0.15] Second nexthop device deleted # 5.48 [+0.10] TEST: IPv6 - no route [ OK ] # 6.10 [+0.62] # 6.10 [+0.00] Single path, admin down # 7.54 [+1.45] Start point # 7.65 [+0.10] TEST: IPv4 fibmatch [ OK ] # 7.77 [+0.13] TEST: IPv6 fibmatch [ OK ] # 7.87 [+0.10] Route deleted on down # 7.97 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.09 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.61 [+0.53] # 8.61 [+0.00] Admin down multipath # 10.85 [+2.24] Verify start point # 10.97 [+0.11] TEST: IPv4 fibmatch [ OK ] # 11.06 [+0.09] TEST: IPv6 fibmatch [ OK ] # 11.15 [+0.09] One device down, one up # 11.26 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 11.38 [+0.12] TEST: IPv6 fibmatch on down device [ OK ] # 11.47 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 11.60 [+0.13] TEST: IPv6 fibmatch on up device [ OK ] # 11.70 [+0.10] TEST: IPv4 flags on down device [ OK ] # 11.82 [+0.11] TEST: IPv6 flags on down device [ OK ] # 11.92 [+0.11] TEST: IPv4 flags on up device [ OK ] # 12.04 [+0.12] TEST: IPv6 flags on up device [ OK ] # 12.24 [+0.19] Other device down and up # 12.34 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 12.48 [+0.13] TEST: IPv6 fibmatch on down device [ OK ] # 12.59 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.68 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 12.82 [+0.13] TEST: IPv4 flags on down device [ OK ] # 12.93 [+0.12] TEST: IPv6 flags on down device [ OK ] # 13.06 [+0.13] TEST: IPv4 flags on up device [ OK ] # 13.20 [+0.14] TEST: IPv6 flags on up device [ OK ] # 13.30 [+0.10] Both devices down # 13.40 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.50 [+0.11] TEST: IPv6 fibmatch [ OK ] # 14.16 [+0.66] # 14.16 [+0.00] Local carrier tests - single path # 15.60 [+1.44] Start point # 15.74 [+0.14] TEST: IPv4 fibmatch [ OK ] # 15.83 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.97 [+0.14] TEST: IPv4 - no linkdown flag [ OK ] # 16.06 [+0.09] TEST: IPv6 - no linkdown flag [ OK ] # 17.21 [+1.15] Carrier off on nexthop # 17.31 [+0.10] TEST: IPv4 fibmatch [ OK ] # 17.41 [+0.10] TEST: IPv6 fibmatch [ OK ] # 17.49 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 17.58 [+0.09] TEST: IPv6 - linkdown flag set [ OK ] # 17.77 [+0.19] Route to local address with carrier down # 17.86 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.98 [+0.12] TEST: IPv6 fibmatch [ OK ] # 18.06 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 18.18 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 18.73 [+0.55] # 18.73 [+0.00] Single path route carrier test # 20.20 [+1.47] Start point # 20.32 [+0.12] TEST: IPv4 fibmatch [ OK ] # 20.43 [+0.11] TEST: IPv6 fibmatch [ OK ] # 20.56 [+0.13] TEST: IPv4 no linkdown flag [ OK ] # 20.65 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 21.84 [+1.19] Carrier down # 21.95 [+0.11] TEST: IPv4 fibmatch [ OK ] # 22.04 [+0.09] TEST: IPv6 fibmatch [ OK ] # 22.13 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 22.25 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 22.47 [+0.22] Second address added with carrier down # 22.59 [+0.12] TEST: IPv4 fibmatch [ OK ] # 22.72 [+0.13] TEST: IPv6 fibmatch [ OK ] # 22.83 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 22.91 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 27.78 [+4.86] # 27.78 [+0.00] IPv4 nexthop tests # 27.78 [+0.00] <<< write me >>> # 28.04 [+0.26] # 28.04 [+0.00] IPv6 nexthop tests # 28.14 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 28.25 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.34 [+0.09] TEST: Gateway is linklocal address [ OK ] # 28.44 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 28.54 [+0.10] TEST: Gateway can not be local unicast address [ OK ] # 28.65 [+0.11] TEST: Gateway can not be local unicast address, with device [ OK ] # 28.76 [+0.11] TEST: Gateway can not be a local linklocal address [ OK ] # 28.87 [+0.11] TEST: Gateway can be local address in a VRF [ OK ] # 28.98 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.10 [+0.12] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.20 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 29.33 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.43 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 29.56 [+0.14] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 30.73 [+1.17] # 30.74 [+0.00] FIB rule with suppress_prefixlength # 32.79 [+2.06] TEST: FIB rule suppress test [ OK ] # 34.87 [+2.08] # 34.87 [+0.00] Fib6 info length calculation in route notify test # 39.51 [+4.64] TEST: ipv6 route add notify [ OK ] # 41.40 [+1.90] # 41.41 [+0.00] Fib4 info length calculation in route notify test # 45.80 [+4.39] TEST: ipv4 route add notify [ OK ] # 51.20 [+5.41] # 51.21 [+0.00] IPv6 route add / append tests # 51.65 [+0.45] TEST: Attempt to add duplicate route - gw [ OK ] # 52.09 [+0.44] TEST: Attempt to add duplicate route - dev only [ OK ] # 52.54 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 53.14 [+0.60] TEST: Append nexthop to existing route - gw [ OK ] # 53.60 [+0.46] TEST: Add multipath route [ OK ] # 54.05 [+0.45] TEST: Attempt to add duplicate multipath route [ OK ] # 54.65 [+0.60] TEST: Route add with different metrics [ OK ] # 54.89 [+0.25] TEST: Route delete with metric [ OK ] # 54.90 [+0.00] # 54.90 [+0.00] IPv6 route replace tests # 55.49 [+0.60] TEST: Single path with single path [ OK ] # 56.05 [+0.56] TEST: Single path with multipath [ OK ] # 56.60 [+0.55] TEST: Single path with single path via multipath attribute [ OK ] # 57.21 [+0.61] TEST: Invalid nexthop [ OK ] # 57.66 [+0.45] TEST: Single path - replace of non-existent route [ OK ] # 58.25 [+0.59] TEST: Multipath with multipath [ OK ] # 58.83 [+0.58] TEST: Multipath with single path [ OK ] # 59.45 [+0.61] TEST: Multipath with single path via multipath attribute [ OK ] # 60.04 [+0.60] TEST: Multipath with dev-only [ OK ] # 60.62 [+0.57] TEST: Multipath - invalid first nexthop [ OK ] # 61.11 [+0.49] TEST: Multipath - invalid second nexthop [ OK ] # 61.50 [+0.39] TEST: Multipath - replace of non-existent route [ OK ] # 61.50 [+0.00] # 61.50 [+0.00] IPv6 route with dsfield tests # 61.71 [+0.20] TEST: Reject route with dsfield [ OK ] # 69.37 [+7.67] # 69.37 [+0.00] IPv4 route add / append tests # 69.81 [+0.43] TEST: Attempt to add duplicate route - gw [ OK ] # 70.28 [+0.47] TEST: Attempt to add duplicate route - dev only [ OK ] # 70.76 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 71.30 [+0.54] TEST: Add new nexthop for existing prefix [ OK ] # 71.86 [+0.56] TEST: Append nexthop to existing route - gw [ OK ] # 72.49 [+0.63] TEST: Append nexthop to existing route - dev only [ OK ] # 73.03 [+0.55] TEST: Append nexthop to existing route - reject route [ OK ] # 73.48 [+0.45] TEST: Append nexthop to existing reject route - gw [ OK ] # 73.95 [+0.46] TEST: Append nexthop to existing reject route - dev only [ OK ] # 74.42 [+0.47] TEST: add multipath route [ OK ] # 74.84 [+0.42] TEST: Attempt to add duplicate multipath route [ OK ] # 75.36 [+0.52] TEST: Route add with different metrics [ OK ] # 75.59 [+0.23] TEST: Route delete with metric [ OK ] # 75.59 [+0.00] # 75.59 [+0.00] IPv4 route replace tests # 76.14 [+0.55] TEST: Single path with single path [ OK ] # 76.70 [+0.56] TEST: Single path with multipath [ OK ] # 77.25 [+0.55] TEST: Single path with reject route [ OK ] # 77.80 [+0.55] TEST: Single path with single path via multipath attribute [ OK ] # 78.35 [+0.55] TEST: Invalid nexthop [ OK ] # 78.82 [+0.47] TEST: Single path - replace of non-existent route [ OK ] # 79.42 [+0.60] TEST: Multipath with multipath [ OK ] # 80.03 [+0.62] TEST: Multipath with single path [ OK ] # 80.67 [+0.63] TEST: Multipath with single path via multipath attribute [ OK ] # 81.31 [+0.65] TEST: Multipath with reject route [ OK ] # 81.91 [+0.59] TEST: Multipath - invalid first nexthop [ OK ] # 82.53 [+0.63] TEST: Multipath - invalid second nexthop [ OK ] # 82.97 [+0.44] TEST: Multipath - replace of non-existent route [ OK ] # 84.83 [+1.86] TEST: Cached route removed from VRF port device [ OK ] # 84.83 [+0.00] # 84.83 [+0.00] IPv4 route with dsfield tests # 85.08 [+0.24] TEST: Reject route with dsfield 0x01 [ OK ] # 85.20 [+0.12] TEST: Reject route with dsfield 0x02 [ OK ] # 85.31 [+0.10] TEST: Reject route with dsfield 0x03 [ OK ] # 85.69 [+0.38] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 85.81 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 85.92 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 86.02 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 86.12 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 86.22 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 86.32 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 86.46 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 86.55 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 86.63 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 86.77 [+0.14] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 86.87 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 89.18 [+2.31] # 89.18 [+0.00] IPv6 prefix route tests # 91.40 [+2.22] TEST: Default metric [ OK ] # 91.72 [+0.33] TEST: User specified metric on first device [ OK ] # 92.10 [+0.38] TEST: User specified metric on second device [ OK ] # 92.32 [+0.22] TEST: Delete of address on first device [ OK ] # 92.56 [+0.24] TEST: Modify metric of address [ OK ] # 92.91 [+0.35] TEST: Prefix route removed on link down [ OK ] # 93.13 [+0.23] TEST: Prefix route with metric on link up [ OK ] # 93.51 [+0.38] TEST: Set metric with peer route on local side [ OK ] # 93.61 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 93.85 [+0.23] TEST: Modify metric and peer address on local side [ OK ] # 93.95 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 95.19 [+1.24] # 95.19 [+0.00] IPv4 prefix route tests # 97.57 [+2.38] TEST: Default metric [ OK ] # 97.90 [+0.33] TEST: User specified metric on first device [ OK ] # 98.23 [+0.33] TEST: User specified metric on second device [ OK ] # 98.45 [+0.21] TEST: Delete of address on first device [ OK ] # 98.68 [+0.23] TEST: Modify metric of address [ OK ] # 98.87 [+0.19] TEST: Prefix route removed on link down [ OK ] # 99.11 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 99.52 [+0.41] TEST: Modify metric of .0/24 address [ OK ] # 99.91 [+0.38] TEST: Set metric of address with peer route [ OK ] # 100.17 [+0.26] TEST: Modify metric and peer address for peer route [ OK ] # 101.36 [+1.19] # 101.36 [+0.00] IPv6 routes with metrics # 106.89 [+5.53] TEST: Single path route with mtu metric [ OK ] # 107.23 [+0.34] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 107.56 [+0.33] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 107.81 [+0.26] TEST: MTU of second leg [ OK ] # 108.02 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 108.31 [+0.29] TEST: Using route with mtu metric [ OK ] # 108.49 [+0.19] TEST: Invalid metric (fails metric_convert) [ OK ] # 110.40 [+1.91] # 110.40 [+0.00] IPv4 route add / append tests # 115.67 [+5.27] TEST: Single path route with mtu metric [ OK ] # 115.87 [+0.21] TEST: Multipath route with mtu metric [ OK ] # 116.18 [+0.30] TEST: Using route with mtu metric [ OK ] # 116.36 [+0.18] TEST: Invalid metric (fails metric_convert) [ OK ] # 118.23 [+1.88] # 118.23 [+0.00] IPv4 route with IPv6 gateway tests # 125.47 [+7.23] TEST: Single path route with IPv6 gateway [ OK ] # 125.77 [+0.30] TEST: Single path route with IPv6 gateway - ping [ OK ] # 125.87 [+0.10] TEST: Single path route delete [ OK ] # 126.09 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 126.32 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 126.45 [+0.13] TEST: Multipath route delete exact match [ OK ] # 126.59 [+0.14] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 126.83 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 126.95 [+0.12] TEST: Multipath route delete exact match [ OK ] # 128.96 [+2.01] # 128.96 [+0.00] IPv4 rp_filter tests # 135.92 [+6.96] TEST: rp_filter passes local packets [ OK ] # 136.10 [+0.18] TEST: rp_filter passes loopback packets [ OK ] # 136.96 [+0.86] # 136.96 [+0.00] IPv4 delete address route tests # 140.42 [+3.47] Regular FIB info # 140.63 [+0.21] TEST: Route removed from VRF when source address deleted [ OK ] # 140.75 [+0.12] TEST: Route in default VRF not removed [ OK ] # 141.12 [+0.37] TEST: Route removed in default VRF when source address deleted [ OK ] # 141.22 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 141.23 [+0.00] Identical FIB info with different table ID # 141.42 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 141.53 [+0.11] TEST: Route in default VRF not removed [ OK ] # 141.94 [+0.41] TEST: Route removed in default VRF when source address deleted [ OK ] # 142.09 [+0.14] TEST: Route in VRF is not removed by address delete [ OK ] # 142.09 [+0.00] Table ID 0 # 142.27 [+0.18] TEST: Route removed in default VRF when source address deleted [ OK ] # 143.45 [+1.18] # 143.45 [+0.00] IPv6 delete address route tests # 149.43 [+5.98] Single device using src address # 149.63 [+0.20] TEST: Prefsrc removed when src address removed on other device [ OK ] # 149.63 [+0.00] Two devices with the same source address # 149.79 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 150.02 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 150.02 [+0.00] VRF with single device using src address # 150.21 [+0.19] TEST: Prefsrc removed when src address removed on other device [ OK ] # 150.21 [+0.00] VRF with two devices using src address # 150.41 [+0.19] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 150.64 [+0.23] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 150.64 [+0.00] src address and nexthop dev in same VRF # 150.84 [+0.20] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 150.95 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 151.39 [+0.44] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 151.49 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 151.50 [+0.01] src address and nexthop device in different VRF # 151.66 [+0.16] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 151.77 [+0.11] TEST: Prefsrc not removed in default VRF [ OK ] # 152.08 [+0.31] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 152.17 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 152.17 [+0.00] Table ID 0 # 152.41 [+0.23] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 152.41 [+0.00] Link local source route # 152.68 [+0.27] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 152.88 [+0.20] TEST: Prefsrc removed when delete ll addr [ OK ] # 152.99 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 153.30 [+0.31] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 155.19 [+1.89] # 155.19 [+0.00] IPv4 mangling tests # 164.05 [+8.86] TEST: Connection with correct parameters [ OK ] # 164.24 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 165.31 [+1.07] TEST: Connection with correct parameters - mangling [ OK ] # 166.18 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 166.25 [+0.07] TEST: Connection check - server side [ OK ] # 168.63 [+2.38] # 168.63 [+0.00] IPv6 mangling tests # 176.91 [+8.29] TEST: Connection with correct parameters [ OK ] # 177.14 [+0.22] TEST: Connection with incorrect parameters [ OK ] # 178.05 [+0.91] TEST: Connection with correct parameters - mangling [ OK ] # 178.99 [+0.95] TEST: Connection with correct parameters - no mangling [ OK ] # 179.08 [+0.09] TEST: Connection check - server side [ OK ] # 181.47 [+2.38] # 181.47 [+0.00] IPv4 broadcast neighbour tests # 184.20 [+2.73] TEST: Resolved neighbour for broadcast address [ OK ] # 184.29 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 184.40 [+0.11] TEST: Unresolved neighbour for broadcast address [ OK ] # 184.52 [+0.12] TEST: Unresolved neighbour for network broadcast address [ OK ] # 186.81 [+2.29] # 186.81 [+0.00] Fib6 garbage collection test # 200.37 [+13.56] TEST: ipv6 route garbage collection [ OK ] # 213.97 [+13.59] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 227.48 [+13.51] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 241.28 [+13.81] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 255.84 [+14.56] TEST: ipv6 route garbage collection (RA message) [ OK ] # 256.70 [+0.85] # 256.70 [+0.00] IPv4 multipath list receive tests # 277.84 [+21.15] TEST: Multipath route hit ratio (1.00) [ OK ] # 280.09 [+2.25] # 280.09 [+0.00] IPv6 multipath list receive tests # 299.84 [+19.75] TEST: Multipath route hit ratio (1.00) [ OK ] # 301.95 [+2.11] # 301.95 [+0.00] Tests passed: 229 # 301.95 [+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__->