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.54 [+0.54] # 0.54 [+0.00] Single path route test # 1.81 [+1.27] Start point # 1.92 [+0.11] TEST: IPv4 fibmatch [ OK ] # 2.03 [+0.10] TEST: IPv6 fibmatch [ OK ] # 2.19 [+0.16] Nexthop device deleted # 2.31 [+0.12] TEST: IPv4 fibmatch - no route [ OK ] # 2.43 [+0.12] TEST: IPv6 fibmatch - no route [ OK ] # 3.20 [+0.77] # 3.20 [+0.00] Multipath route test # 5.40 [+2.21] Start point # 5.51 [+0.11] TEST: IPv4 fibmatch [ OK ] # 5.62 [+0.11] TEST: IPv6 fibmatch [ OK ] # 5.78 [+0.15] One nexthop device deleted # 5.87 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.99 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 6.14 [+0.16] Second nexthop device deleted # 6.24 [+0.10] TEST: IPv6 - no route [ OK ] # 6.97 [+0.73] # 6.97 [+0.00] Single path, admin down # 8.52 [+1.55] Start point # 8.62 [+0.10] TEST: IPv4 fibmatch [ OK ] # 8.74 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.85 [+0.11] Route deleted on down # 8.97 [+0.12] TEST: IPv4 fibmatch [ OK ] # 9.07 [+0.10] TEST: IPv6 fibmatch [ OK ] # 9.59 [+0.52] # 9.60 [+0.00] Admin down multipath # 11.86 [+2.26] Verify start point # 11.97 [+0.11] TEST: IPv4 fibmatch [ OK ] # 12.10 [+0.13] TEST: IPv6 fibmatch [ OK ] # 12.21 [+0.11] One device down, one up # 12.31 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.42 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 12.53 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.65 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 12.76 [+0.11] TEST: IPv4 flags on down device [ OK ] # 12.88 [+0.13] TEST: IPv6 flags on down device [ OK ] # 13.01 [+0.12] TEST: IPv4 flags on up device [ OK ] # 13.17 [+0.16] TEST: IPv6 flags on up device [ OK ] # 13.38 [+0.21] Other device down and up # 13.49 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 13.60 [+0.12] TEST: IPv6 fibmatch on down device [ OK ] # 13.72 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 13.82 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 13.95 [+0.14] TEST: IPv4 flags on down device [ OK ] # 14.09 [+0.14] TEST: IPv6 flags on down device [ OK ] # 14.20 [+0.11] TEST: IPv4 flags on up device [ OK ] # 14.34 [+0.14] TEST: IPv6 flags on up device [ OK ] # 14.46 [+0.12] Both devices down # 14.57 [+0.11] TEST: IPv4 fibmatch [ OK ] # 14.69 [+0.11] TEST: IPv6 fibmatch [ OK ] # 15.42 [+0.73] # 15.42 [+0.00] Local carrier tests - single path # 17.09 [+1.67] Start point # 17.21 [+0.12] TEST: IPv4 fibmatch [ OK ] # 17.33 [+0.13] TEST: IPv6 fibmatch [ OK ] # 17.48 [+0.14] TEST: IPv4 - no linkdown flag [ OK ] # 17.60 [+0.12] TEST: IPv6 - no linkdown flag [ OK ] # 18.79 [+1.19] Carrier off on nexthop # 18.91 [+0.12] TEST: IPv4 fibmatch [ OK ] # 19.04 [+0.13] TEST: IPv6 fibmatch [ OK ] # 19.16 [+0.13] TEST: IPv4 - linkdown flag set [ OK ] # 19.29 [+0.13] TEST: IPv6 - linkdown flag set [ OK ] # 19.52 [+0.23] Route to local address with carrier down # 19.63 [+0.10] TEST: IPv4 fibmatch [ OK ] # 19.76 [+0.13] TEST: IPv6 fibmatch [ OK ] # 19.91 [+0.15] TEST: IPv4 linkdown flag set [ OK ] # 20.04 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 20.64 [+0.60] # 20.64 [+0.00] Single path route carrier test # 22.37 [+1.73] Start point # 22.49 [+0.12] TEST: IPv4 fibmatch [ OK ] # 22.60 [+0.11] TEST: IPv6 fibmatch [ OK ] # 22.71 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 22.81 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 24.00 [+1.19] Carrier down # 24.13 [+0.12] TEST: IPv4 fibmatch [ OK ] # 24.24 [+0.12] TEST: IPv6 fibmatch [ OK ] # 24.36 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 24.47 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 24.69 [+0.22] Second address added with carrier down # 24.81 [+0.12] TEST: IPv4 fibmatch [ OK ] # 24.93 [+0.12] TEST: IPv6 fibmatch [ OK ] # 25.04 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 25.19 [+0.15] TEST: IPv6 linkdown flag set [ OK ] # 30.69 [+5.50] # 30.69 [+0.00] IPv4 nexthop tests # 30.69 [+0.00] <<< write me >>> # 31.01 [+0.32] # 31.02 [+0.00] IPv6 nexthop tests # 31.13 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 31.26 [+0.13] TEST: Directly connected nexthop, unicast address with device [ OK ] # 31.38 [+0.12] TEST: Gateway is linklocal address [ OK ] # 31.51 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 31.63 [+0.12] TEST: Gateway can not be local unicast address [ OK ] # 31.76 [+0.13] TEST: Gateway can not be local unicast address, with device [ OK ] # 31.88 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 32.00 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 32.13 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 32.28 [+0.15] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 32.40 [+0.12] TEST: Redirect to VRF lookup [ OK ] # 32.52 [+0.13] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 32.64 [+0.12] TEST: VRF route, gateway can not be a local address [ OK ] # 32.77 [+0.13] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 33.99 [+1.22] # 33.99 [+0.00] FIB rule with suppress_prefixlength # 36.35 [+2.36] TEST: FIB rule suppress test [ OK ] # 38.46 [+2.11] # 38.46 [+0.00] Fib6 info length calculation in route notify test # 43.12 [+4.66] TEST: ipv6 route add notify [ OK ] # 45.27 [+2.14] # 45.27 [+0.00] Fib4 info length calculation in route notify test # 49.90 [+4.64] TEST: ipv4 route add notify [ OK ] # 55.73 [+5.82] # 55.73 [+0.00] IPv6 route add / append tests # 56.21 [+0.48] TEST: Attempt to add duplicate route - gw [ OK ] # 56.69 [+0.49] TEST: Attempt to add duplicate route - dev only [ OK ] # 57.18 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 57.83 [+0.65] TEST: Append nexthop to existing route - gw [ OK ] # 58.36 [+0.53] TEST: Add multipath route [ OK ] # 58.82 [+0.47] TEST: Attempt to add duplicate multipath route [ OK ] # 59.44 [+0.62] TEST: Route add with different metrics [ OK ] # 59.69 [+0.25] TEST: Route delete with metric [ OK ] # 59.69 [+0.00] # 59.69 [+0.00] IPv6 route replace tests # 60.34 [+0.64] TEST: Single path with single path [ OK ] # 60.97 [+0.64] TEST: Single path with multipath [ OK ] # 61.62 [+0.65] TEST: Single path with single path via multipath attribute [ OK ] # 62.21 [+0.59] TEST: Invalid nexthop [ OK ] # 62.70 [+0.50] TEST: Single path - replace of non-existent route [ OK ] # 63.36 [+0.65] TEST: Multipath with multipath [ OK ] # 63.99 [+0.63] TEST: Multipath with single path [ OK ] # 64.61 [+0.63] TEST: Multipath with single path via multipath attribute [ OK ] # 65.22 [+0.61] TEST: Multipath with dev-only [ OK ] # 65.89 [+0.67] TEST: Multipath - invalid first nexthop [ OK ] # 66.52 [+0.63] TEST: Multipath - invalid second nexthop [ OK ] # 67.01 [+0.49] TEST: Multipath - replace of non-existent route [ OK ] # 67.01 [+0.00] # 67.01 [+0.00] IPv6 route with dsfield tests # 67.25 [+0.24] TEST: Reject route with dsfield [ OK ] # 75.35 [+8.10] # 75.35 [+0.00] IPv4 route add / append tests # 75.84 [+0.49] TEST: Attempt to add duplicate route - gw [ OK ] # 76.32 [+0.48] TEST: Attempt to add duplicate route - dev only [ OK ] # 76.81 [+0.49] TEST: Attempt to add duplicate route - reject route [ OK ] # 77.43 [+0.61] TEST: Add new nexthop for existing prefix [ OK ] # 78.04 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 78.65 [+0.62] TEST: Append nexthop to existing route - dev only [ OK ] # 79.24 [+0.59] TEST: Append nexthop to existing route - reject route [ OK ] # 79.73 [+0.49] TEST: Append nexthop to existing reject route - gw [ OK ] # 80.22 [+0.48] TEST: Append nexthop to existing reject route - dev only [ OK ] # 80.70 [+0.48] TEST: add multipath route [ OK ] # 81.18 [+0.48] TEST: Attempt to add duplicate multipath route [ OK ] # 81.80 [+0.62] TEST: Route add with different metrics [ OK ] # 82.07 [+0.28] TEST: Route delete with metric [ OK ] # 82.08 [+0.01] # 82.08 [+0.00] IPv4 route replace tests # 82.67 [+0.59] TEST: Single path with single path [ OK ] # 83.30 [+0.63] TEST: Single path with multipath [ OK ] # 83.89 [+0.60] TEST: Single path with reject route [ OK ] # 84.49 [+0.59] TEST: Single path with single path via multipath attribute [ OK ] # 85.10 [+0.61] TEST: Invalid nexthop [ OK ] # 85.58 [+0.48] TEST: Single path - replace of non-existent route [ OK ] # 86.18 [+0.60] TEST: Multipath with multipath [ OK ] # 86.78 [+0.60] TEST: Multipath with single path [ OK ] # 87.40 [+0.62] TEST: Multipath with single path via multipath attribute [ OK ] # 88.01 [+0.61] TEST: Multipath with reject route [ OK ] # 88.62 [+0.61] TEST: Multipath - invalid first nexthop [ OK ] # 89.22 [+0.60] TEST: Multipath - invalid second nexthop [ OK ] # 89.71 [+0.49] TEST: Multipath - replace of non-existent route [ OK ] # 91.61 [+1.89] TEST: Cached route removed from VRF port device [ OK ] # 91.61 [+0.00] # 91.61 [+0.00] IPv4 route with dsfield tests # 91.85 [+0.24] TEST: Reject route with dsfield 0x01 [ OK ] # 91.98 [+0.13] TEST: Reject route with dsfield 0x02 [ OK ] # 92.11 [+0.13] TEST: Reject route with dsfield 0x03 [ OK ] # 92.46 [+0.35] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 92.58 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 92.69 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 92.83 [+0.13] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 92.94 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 93.08 [+0.14] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 93.20 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 93.31 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 93.43 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 93.56 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 93.66 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 93.77 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 96.03 [+2.26] # 96.03 [+0.00] IPv6 prefix route tests # 98.57 [+2.54] TEST: Default metric [ OK ] # 98.94 [+0.37] TEST: User specified metric on first device [ OK ] # 99.34 [+0.40] TEST: User specified metric on second device [ OK ] # 99.60 [+0.26] TEST: Delete of address on first device [ OK ] # 99.86 [+0.26] TEST: Modify metric of address [ OK ] # 100.27 [+0.41] TEST: Prefix route removed on link down [ OK ] # 100.55 [+0.28] TEST: Prefix route with metric on link up [ OK ] # 100.94 [+0.39] TEST: Set metric with peer route on local side [ OK ] # 101.10 [+0.16] TEST: Set metric with peer route on peer side [ OK ] # 101.37 [+0.27] TEST: Modify metric and peer address on local side [ OK ] # 101.50 [+0.13] TEST: Modify metric and peer address on peer side [ OK ] # 102.82 [+1.33] # 102.82 [+0.00] IPv4 prefix route tests # 105.33 [+2.51] TEST: Default metric [ OK ] # 105.72 [+0.39] TEST: User specified metric on first device [ OK ] # 106.10 [+0.38] TEST: User specified metric on second device [ OK ] # 106.34 [+0.24] TEST: Delete of address on first device [ OK ] # 106.60 [+0.26] TEST: Modify metric of address [ OK ] # 106.84 [+0.24] TEST: Prefix route removed on link down [ OK ] # 107.08 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 107.60 [+0.51] TEST: Modify metric of .0/24 address [ OK ] # 107.98 [+0.39] TEST: Set metric of address with peer route [ OK ] # 108.22 [+0.24] TEST: Modify metric and peer address for peer route [ OK ] # 109.48 [+1.26] # 109.48 [+0.00] IPv6 routes with metrics # 115.73 [+6.25] TEST: Single path route with mtu metric [ OK ] # 116.10 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 116.50 [+0.40] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 116.76 [+0.26] TEST: MTU of second leg [ OK ] # 117.05 [+0.29] TEST: Multipath route with mtu metric [ OK ] # 117.37 [+0.31] TEST: Using route with mtu metric [ OK ] # 117.59 [+0.23] TEST: Invalid metric (fails metric_convert) [ OK ] # 119.79 [+2.19] # 119.79 [+0.00] IPv4 route add / append tests # 125.95 [+6.16] TEST: Single path route with mtu metric [ OK ] # 126.20 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 126.51 [+0.31] TEST: Using route with mtu metric [ OK ] # 126.72 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 128.91 [+2.20] # 128.91 [+0.00] IPv4 route with IPv6 gateway tests # 137.07 [+8.16] TEST: Single path route with IPv6 gateway [ OK ] # 137.38 [+0.32] TEST: Single path route with IPv6 gateway - ping [ OK ] # 137.50 [+0.12] TEST: Single path route delete [ OK ] # 137.75 [+0.25] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 138.00 [+0.24] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 138.13 [+0.14] TEST: Multipath route delete exact match [ OK ] # 138.26 [+0.13] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 138.52 [+0.26] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 138.64 [+0.12] TEST: Multipath route delete exact match [ OK ] # 140.79 [+2.15] # 140.79 [+0.00] IPv4 rp_filter tests # 148.86 [+8.07] TEST: rp_filter passes local packets [ OK ] # 149.05 [+0.19] TEST: rp_filter passes loopback packets [ OK ] # 150.08 [+1.03] # 150.08 [+0.00] IPv4 delete address route tests # 153.85 [+3.77] Regular FIB info # 154.11 [+0.25] TEST: Route removed from VRF when source address deleted [ OK ] # 154.22 [+0.11] TEST: Route in default VRF not removed [ OK ] # 154.68 [+0.46] TEST: Route removed in default VRF when source address deleted [ OK ] # 154.81 [+0.13] TEST: Route in VRF is not removed by address delete [ OK ] # 154.81 [+0.00] Identical FIB info with different table ID # 155.03 [+0.22] TEST: Route removed from VRF when source address deleted [ OK ] # 155.16 [+0.13] TEST: Route in default VRF not removed [ OK ] # 155.59 [+0.43] TEST: Route removed in default VRF when source address deleted [ OK ] # 155.71 [+0.12] TEST: Route in VRF is not removed by address delete [ OK ] # 155.71 [+0.00] Table ID 0 # 155.93 [+0.22] TEST: Route removed in default VRF when source address deleted [ OK ] # 157.24 [+1.31] # 157.24 [+0.00] IPv6 delete address route tests # 163.55 [+6.31] Single device using src address # 163.77 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 163.77 [+0.00] Two devices with the same source address # 163.98 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 164.20 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 164.20 [+0.00] VRF with single device using src address # 164.41 [+0.21] TEST: Prefsrc removed when src address removed on other device [ OK ] # 164.41 [+0.00] VRF with two devices using src address # 164.64 [+0.23] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 164.87 [+0.23] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 164.87 [+0.00] src address and nexthop dev in same VRF # 165.10 [+0.22] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 165.26 [+0.16] TEST: Prefsrc in default VRF not removed [ OK ] # 165.69 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 165.79 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 165.79 [+0.00] src address and nexthop device in different VRF # 166.02 [+0.23] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 166.16 [+0.14] TEST: Prefsrc not removed in default VRF [ OK ] # 166.49 [+0.33] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 166.60 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 166.61 [+0.00] Table ID 0 # 166.83 [+0.23] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 166.84 [+0.00] Link local source route # 167.08 [+0.24] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 167.34 [+0.26] TEST: Prefsrc removed when delete ll addr [ OK ] # 167.46 [+0.12] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 167.82 [+0.36] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 169.69 [+1.87] # 169.69 [+0.00] IPv4 mangling tests # 178.94 [+9.24] TEST: Connection with correct parameters [ OK ] # 179.18 [+0.25] TEST: Connection with incorrect parameters [ OK ] # 180.24 [+1.06] TEST: Connection with correct parameters - mangling [ OK ] # 181.21 [+0.97] TEST: Connection with correct parameters - no mangling [ OK ] # 181.30 [+0.09] TEST: Connection check - server side [ OK ] # 183.91 [+2.61] # 183.91 [+0.00] IPv6 mangling tests # 193.13 [+9.21] TEST: Connection with correct parameters [ OK ] # 193.39 [+0.26] TEST: Connection with incorrect parameters [ OK ] # 194.36 [+0.98] TEST: Connection with correct parameters - mangling [ OK ] # 195.37 [+1.00] TEST: Connection with correct parameters - no mangling [ OK ] # 195.46 [+0.09] TEST: Connection check - server side [ OK ] # 198.03 [+2.57] # 198.03 [+0.00] IPv4 broadcast neighbour tests # 201.06 [+3.04] TEST: Resolved neighbour for broadcast address [ OK ] # 201.19 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 201.31 [+0.12] TEST: Unresolved neighbour for broadcast address [ OK ] # 201.44 [+0.13] TEST: Unresolved neighbour for network broadcast address [ OK ] # 203.92 [+2.48] # 203.92 [+0.00] Fib6 garbage collection test # 217.53 [+13.61] TEST: ipv6 route garbage collection [ OK ] # 231.49 [+13.95] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 245.39 [+13.91] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 259.46 [+14.07] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 274.12 [+14.66] TEST: ipv6 route garbage collection (RA message) [ OK ] # 275.06 [+0.94] # 275.06 [+0.00] IPv4 multipath list receive tests # 294.66 [+19.60] TEST: Multipath route hit ratio (1.00) [ OK ] # 297.02 [+2.36] # 297.02 [+0.00] IPv6 multipath list receive tests # 316.16 [+19.14] TEST: Multipath route hit ratio (1.00) [ OK ] # 318.42 [+2.26] # 318.42 [+0.00] Tests passed: 229 # 318.42 [+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__->