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.69 [+1.17] Start point # 1.80 [+0.11] TEST: IPv4 fibmatch [ OK ] # 1.92 [+0.12] TEST: IPv6 fibmatch [ OK ] # 2.07 [+0.16] Nexthop device deleted # 2.18 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.29 [+0.11] TEST: IPv6 fibmatch - no route [ OK ] # 2.99 [+0.71] # 2.99 [+0.00] Multipath route test # 5.20 [+2.20] Start point # 5.30 [+0.10] TEST: IPv4 fibmatch [ OK ] # 5.42 [+0.12] TEST: IPv6 fibmatch [ OK ] # 5.55 [+0.13] One nexthop device deleted # 5.66 [+0.11] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.77 [+0.11] TEST: IPv6 - multipath down to single path [ OK ] # 5.92 [+0.14] Second nexthop device deleted # 6.04 [+0.12] TEST: IPv6 - no route [ OK ] # 6.76 [+0.72] # 6.76 [+0.00] Single path, admin down # 8.30 [+1.53] Start point # 8.41 [+0.12] TEST: IPv4 fibmatch [ OK ] # 8.53 [+0.12] TEST: IPv6 fibmatch [ OK ] # 8.65 [+0.12] Route deleted on down # 8.76 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.87 [+0.12] TEST: IPv6 fibmatch [ OK ] # 9.42 [+0.55] # 9.42 [+0.00] Admin down multipath # 11.62 [+2.20] Verify start point # 11.73 [+0.10] TEST: IPv4 fibmatch [ OK ] # 11.84 [+0.11] TEST: IPv6 fibmatch [ OK ] # 11.95 [+0.11] One device down, one up # 12.05 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.18 [+0.13] TEST: IPv6 fibmatch on down device [ OK ] # 12.27 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 12.39 [+0.12] TEST: IPv6 fibmatch on up device [ OK ] # 12.51 [+0.12] TEST: IPv4 flags on down device [ OK ] # 12.63 [+0.12] TEST: IPv6 flags on down device [ OK ] # 12.74 [+0.11] TEST: IPv4 flags on up device [ OK ] # 12.86 [+0.12] TEST: IPv6 flags on up device [ OK ] # 13.09 [+0.22] Other device down and up # 13.20 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 13.31 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 13.44 [+0.13] TEST: IPv4 fibmatch on up device [ OK ] # 13.55 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 13.67 [+0.12] TEST: IPv4 flags on down device [ OK ] # 13.81 [+0.14] TEST: IPv6 flags on down device [ OK ] # 13.93 [+0.12] TEST: IPv4 flags on up device [ OK ] # 14.08 [+0.15] TEST: IPv6 flags on up device [ OK ] # 14.19 [+0.10] Both devices down # 14.30 [+0.12] TEST: IPv4 fibmatch [ OK ] # 14.41 [+0.10] TEST: IPv6 fibmatch [ OK ] # 15.13 [+0.72] # 15.13 [+0.00] Local carrier tests - single path # 16.73 [+1.60] Start point # 16.84 [+0.11] TEST: IPv4 fibmatch [ OK ] # 16.95 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.06 [+0.11] TEST: IPv4 - no linkdown flag [ OK ] # 17.17 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 18.35 [+1.18] Carrier off on nexthop # 18.47 [+0.12] TEST: IPv4 fibmatch [ OK ] # 18.59 [+0.12] TEST: IPv6 fibmatch [ OK ] # 18.70 [+0.12] TEST: IPv4 - linkdown flag set [ OK ] # 18.81 [+0.11] TEST: IPv6 - linkdown flag set [ OK ] # 19.03 [+0.21] Route to local address with carrier down # 19.13 [+0.11] TEST: IPv4 fibmatch [ OK ] # 19.26 [+0.12] TEST: IPv6 fibmatch [ OK ] # 19.37 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 19.50 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 20.07 [+0.57] # 20.07 [+0.00] Single path route carrier test # 21.73 [+1.66] Start point # 21.84 [+0.11] TEST: IPv4 fibmatch [ OK ] # 21.95 [+0.11] TEST: IPv6 fibmatch [ OK ] # 22.06 [+0.11] TEST: IPv4 no linkdown flag [ OK ] # 22.17 [+0.11] TEST: IPv6 no linkdown flag [ OK ] # 23.33 [+1.16] Carrier down # 23.45 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.56 [+0.11] TEST: IPv6 fibmatch [ OK ] # 23.68 [+0.12] TEST: IPv4 linkdown flag set [ OK ] # 23.78 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 24.00 [+0.22] Second address added with carrier down # 24.11 [+0.11] TEST: IPv4 fibmatch [ OK ] # 24.21 [+0.11] TEST: IPv6 fibmatch [ OK ] # 24.32 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 24.45 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 29.74 [+5.29] # 29.74 [+0.00] IPv4 nexthop tests # 29.74 [+0.00] <<< write me >>> # 30.04 [+0.30] # 30.04 [+0.00] IPv6 nexthop tests # 30.16 [+0.12] TEST: Directly connected nexthop, unicast address [ OK ] # 30.31 [+0.15] TEST: Directly connected nexthop, unicast address with device [ OK ] # 30.44 [+0.13] TEST: Gateway is linklocal address [ OK ] # 30.56 [+0.12] TEST: Gateway is linklocal address, no device [ OK ] # 30.68 [+0.12] TEST: Gateway can not be local unicast address [ OK ] # 30.80 [+0.13] TEST: Gateway can not be local unicast address, with device [ OK ] # 30.94 [+0.14] TEST: Gateway can not be a local linklocal address [ OK ] # 31.06 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 31.19 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 31.30 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 31.42 [+0.12] TEST: Redirect to VRF lookup [ OK ] # 31.54 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 31.65 [+0.12] TEST: VRF route, gateway can not be a local address [ OK ] # 31.78 [+0.12] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 32.95 [+1.17] # 32.95 [+0.00] FIB rule with suppress_prefixlength # 35.24 [+2.29] TEST: FIB rule suppress test [ OK ] # 37.34 [+2.10] # 37.34 [+0.00] Fib6 info length calculation in route notify test # 41.92 [+4.58] TEST: ipv6 route add notify [ OK ] # 44.02 [+2.10] # 44.02 [+0.00] Fib4 info length calculation in route notify test # 48.60 [+4.59] TEST: ipv4 route add notify [ OK ] # 54.34 [+5.74] # 54.34 [+0.00] IPv6 route add / append tests # 54.82 [+0.49] TEST: Attempt to add duplicate route - gw [ OK ] # 55.28 [+0.45] TEST: Attempt to add duplicate route - dev only [ OK ] # 55.76 [+0.48] TEST: Attempt to add duplicate route - reject route [ OK ] # 56.37 [+0.61] TEST: Append nexthop to existing route - gw [ OK ] # 56.88 [+0.50] TEST: Add multipath route [ OK ] # 57.35 [+0.48] TEST: Attempt to add duplicate multipath route [ OK ] # 57.96 [+0.60] TEST: Route add with different metrics [ OK ] # 58.22 [+0.26] TEST: Route delete with metric [ OK ] # 58.22 [+0.00] # 58.22 [+0.00] IPv6 route replace tests # 58.81 [+0.59] TEST: Single path with single path [ OK ] # 59.42 [+0.61] TEST: Single path with multipath [ OK ] # 60.01 [+0.59] TEST: Single path with single path via multipath attribute [ OK ] # 60.61 [+0.60] TEST: Invalid nexthop [ OK ] # 61.08 [+0.47] TEST: Single path - replace of non-existent route [ OK ] # 61.71 [+0.63] TEST: Multipath with multipath [ OK ] # 62.32 [+0.61] TEST: Multipath with single path [ OK ] # 62.90 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 63.52 [+0.61] TEST: Multipath with dev-only [ OK ] # 64.15 [+0.63] TEST: Multipath - invalid first nexthop [ OK ] # 64.79 [+0.64] TEST: Multipath - invalid second nexthop [ OK ] # 65.27 [+0.49] TEST: Multipath - replace of non-existent route [ OK ] # 65.28 [+0.00] # 65.28 [+0.00] IPv6 route with dsfield tests # 65.54 [+0.26] TEST: Reject route with dsfield [ OK ] # 73.25 [+7.71] # 73.25 [+0.00] IPv4 route add / append tests # 73.68 [+0.44] TEST: Attempt to add duplicate route - gw [ OK ] # 74.16 [+0.47] TEST: Attempt to add duplicate route - dev only [ OK ] # 74.59 [+0.44] TEST: Attempt to add duplicate route - reject route [ OK ] # 75.17 [+0.57] TEST: Add new nexthop for existing prefix [ OK ] # 75.77 [+0.60] TEST: Append nexthop to existing route - gw [ OK ] # 76.35 [+0.58] TEST: Append nexthop to existing route - dev only [ OK ] # 76.93 [+0.58] TEST: Append nexthop to existing route - reject route [ OK ] # 77.42 [+0.50] TEST: Append nexthop to existing reject route - gw [ OK ] # 77.87 [+0.45] TEST: Append nexthop to existing reject route - dev only [ OK ] # 78.35 [+0.47] TEST: add multipath route [ OK ] # 78.82 [+0.47] TEST: Attempt to add duplicate multipath route [ OK ] # 79.41 [+0.58] TEST: Route add with different metrics [ OK ] # 79.64 [+0.23] TEST: Route delete with metric [ OK ] # 79.64 [+0.00] # 79.64 [+0.00] IPv4 route replace tests # 80.24 [+0.60] TEST: Single path with single path [ OK ] # 80.84 [+0.59] TEST: Single path with multipath [ OK ] # 81.40 [+0.56] TEST: Single path with reject route [ OK ] # 81.98 [+0.58] TEST: Single path with single path via multipath attribute [ OK ] # 82.55 [+0.57] TEST: Invalid nexthop [ OK ] # 83.00 [+0.45] TEST: Single path - replace of non-existent route [ OK ] # 83.58 [+0.58] TEST: Multipath with multipath [ OK ] # 84.18 [+0.60] TEST: Multipath with single path [ OK ] # 84.76 [+0.58] TEST: Multipath with single path via multipath attribute [ OK ] # 85.34 [+0.58] TEST: Multipath with reject route [ OK ] # 85.90 [+0.56] TEST: Multipath - invalid first nexthop [ OK ] # 86.48 [+0.58] TEST: Multipath - invalid second nexthop [ OK ] # 86.95 [+0.47] TEST: Multipath - replace of non-existent route [ OK ] # 88.72 [+1.78] TEST: Cached route removed from VRF port device [ OK ] # 88.73 [+0.00] # 88.73 [+0.00] IPv4 route with dsfield tests # 88.97 [+0.24] TEST: Reject route with dsfield 0x01 [ OK ] # 89.08 [+0.12] TEST: Reject route with dsfield 0x02 [ OK ] # 89.19 [+0.11] TEST: Reject route with dsfield 0x03 [ OK ] # 89.55 [+0.36] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 89.66 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 89.77 [+0.11] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 89.90 [+0.13] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 90.00 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 90.11 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 90.22 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 90.35 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 90.45 [+0.10] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 90.55 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 90.65 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 90.77 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 92.80 [+2.04] # 92.80 [+0.00] IPv6 prefix route tests # 95.23 [+2.43] TEST: Default metric [ OK ] # 95.61 [+0.38] TEST: User specified metric on first device [ OK ] # 95.98 [+0.37] TEST: User specified metric on second device [ OK ] # 96.21 [+0.23] TEST: Delete of address on first device [ OK ] # 96.46 [+0.25] TEST: Modify metric of address [ OK ] # 96.85 [+0.39] TEST: Prefix route removed on link down [ OK ] # 97.09 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 97.47 [+0.38] TEST: Set metric with peer route on local side [ OK ] # 97.60 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 97.83 [+0.23] TEST: Modify metric and peer address on local side [ OK ] # 97.95 [+0.12] TEST: Modify metric and peer address on peer side [ OK ] # 99.17 [+1.22] # 99.17 [+0.00] IPv4 prefix route tests # 101.57 [+2.40] TEST: Default metric [ OK ] # 101.93 [+0.36] TEST: User specified metric on first device [ OK ] # 102.28 [+0.35] TEST: User specified metric on second device [ OK ] # 102.52 [+0.24] TEST: Delete of address on first device [ OK ] # 102.77 [+0.25] TEST: Modify metric of address [ OK ] # 103.00 [+0.22] TEST: Prefix route removed on link down [ OK ] # 103.24 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 103.74 [+0.50] TEST: Modify metric of .0/24 address [ OK ] # 104.09 [+0.36] TEST: Set metric of address with peer route [ OK ] # 104.33 [+0.23] TEST: Modify metric and peer address for peer route [ OK ] # 105.52 [+1.20] # 105.52 [+0.00] IPv6 routes with metrics # 111.43 [+5.91] TEST: Single path route with mtu metric [ OK ] # 111.82 [+0.39] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 112.19 [+0.37] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 112.45 [+0.26] TEST: MTU of second leg [ OK ] # 112.70 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 112.99 [+0.29] TEST: Using route with mtu metric [ OK ] # 113.19 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 115.26 [+2.07] # 115.26 [+0.00] IPv4 route add / append tests # 121.15 [+5.88] TEST: Single path route with mtu metric [ OK ] # 121.39 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 121.68 [+0.29] TEST: Using route with mtu metric [ OK ] # 121.88 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 123.87 [+1.99] # 123.87 [+0.00] IPv4 route with IPv6 gateway tests # 131.84 [+7.97] TEST: Single path route with IPv6 gateway [ OK ] # 132.16 [+0.31] TEST: Single path route with IPv6 gateway - ping [ OK ] # 132.28 [+0.12] TEST: Single path route delete [ OK ] # 132.50 [+0.22] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 132.73 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 132.85 [+0.13] TEST: Multipath route delete exact match [ OK ] # 132.98 [+0.12] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 133.22 [+0.24] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 133.33 [+0.11] TEST: Multipath route delete exact match [ OK ] # 135.40 [+2.07] # 135.40 [+0.00] IPv4 rp_filter tests # 142.94 [+7.54] TEST: rp_filter passes local packets [ OK ] # 143.13 [+0.19] TEST: rp_filter passes loopback packets [ OK ] # 144.09 [+0.96] # 144.09 [+0.00] IPv4 delete address route tests # 147.67 [+3.58] Regular FIB info # 147.88 [+0.21] TEST: Route removed from VRF when source address deleted [ OK ] # 147.98 [+0.10] TEST: Route in default VRF not removed [ OK ] # 148.41 [+0.43] TEST: Route removed in default VRF when source address deleted [ OK ] # 148.51 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 148.52 [+0.00] Identical FIB info with different table ID # 148.75 [+0.24] TEST: Route removed from VRF when source address deleted [ OK ] # 148.87 [+0.12] TEST: Route in default VRF not removed [ OK ] # 149.31 [+0.43] TEST: Route removed in default VRF when source address deleted [ OK ] # 149.42 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 149.42 [+0.00] Table ID 0 # 149.67 [+0.25] TEST: Route removed in default VRF when source address deleted [ OK ] # 150.92 [+1.25] # 150.92 [+0.00] IPv6 delete address route tests # 157.02 [+6.11] Single device using src address # 157.25 [+0.22] TEST: Prefsrc removed when src address removed on other device [ OK ] # 157.25 [+0.00] Two devices with the same source address # 157.46 [+0.21] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 157.68 [+0.22] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 157.68 [+0.00] VRF with single device using src address # 157.92 [+0.24] TEST: Prefsrc removed when src address removed on other device [ OK ] # 157.92 [+0.00] VRF with two devices using src address # 158.14 [+0.22] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 158.37 [+0.23] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 158.38 [+0.01] src address and nexthop dev in same VRF # 158.57 [+0.19] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 158.68 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 159.12 [+0.43] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 159.24 [+0.12] TEST: Prefsrc in default VRF removed [ OK ] # 159.24 [+0.00] src address and nexthop device in different VRF # 159.46 [+0.22] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 159.55 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 159.88 [+0.33] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 159.99 [+0.11] TEST: Prefsrc removed in default VRF [ OK ] # 159.99 [+0.00] Table ID 0 # 160.20 [+0.21] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 160.20 [+0.00] Link local source route # 160.42 [+0.22] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 160.66 [+0.24] TEST: Prefsrc removed when delete ll addr [ OK ] # 160.75 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 161.07 [+0.31] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 162.91 [+1.85] # 162.92 [+0.00] IPv4 mangling tests # 172.08 [+9.16] TEST: Connection with correct parameters [ OK ] # 172.31 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 173.42 [+1.11] TEST: Connection with correct parameters - mangling [ OK ] # 174.38 [+0.96] TEST: Connection with correct parameters - no mangling [ OK ] # 174.46 [+0.07] TEST: Connection check - server side [ OK ] # 176.96 [+2.50] # 176.96 [+0.00] IPv6 mangling tests # 186.18 [+9.21] TEST: Connection with correct parameters [ OK ] # 186.43 [+0.25] TEST: Connection with incorrect parameters [ OK ] # 187.40 [+0.97] TEST: Connection with correct parameters - mangling [ OK ] # 188.41 [+1.01] TEST: Connection with correct parameters - no mangling [ OK ] # 188.49 [+0.08] TEST: Connection check - server side [ OK ] # 191.06 [+2.57] # 191.06 [+0.00] IPv4 broadcast neighbour tests # 194.08 [+3.02] TEST: Resolved neighbour for broadcast address [ OK ] # 194.23 [+0.15] TEST: Resolved neighbour for network broadcast address [ OK ] # 194.34 [+0.12] TEST: Unresolved neighbour for broadcast address [ OK ] # 194.48 [+0.14] TEST: Unresolved neighbour for network broadcast address [ OK ] # 196.93 [+2.45] # 196.93 [+0.00] Fib6 garbage collection test # 210.53 [+13.60] TEST: ipv6 route garbage collection [ OK ] # 224.45 [+13.92] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 238.32 [+13.87] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 252.51 [+14.18] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 267.19 [+14.68] TEST: ipv6 route garbage collection (RA message) [ OK ] # 268.20 [+1.01] # 268.20 [+0.00] IPv4 multipath list receive tests # 287.59 [+19.39] TEST: Multipath route hit ratio (1.00) [ OK ] # 289.81 [+2.22] # 289.81 [+0.00] IPv6 multipath list receive tests # 308.91 [+19.10] TEST: Multipath route hit ratio (1.00) [ OK ] # 311.10 [+2.19] # 311.10 [+0.00] Tests passed: 229 # 311.10 [+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__->