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.51 [+0.51] # 0.51 [+0.00] Single path route test # 1.60 [+1.09] Start point # 1.71 [+0.10] TEST: IPv4 fibmatch [ OK ] # 1.81 [+0.10] TEST: IPv6 fibmatch [ OK ] # 1.93 [+0.12] Nexthop device deleted # 2.05 [+0.12] TEST: IPv4 fibmatch - no route [ OK ] # 2.13 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.78 [+0.65] # 2.78 [+0.00] Multipath route test # 4.87 [+2.09] Start point # 4.97 [+0.10] TEST: IPv4 fibmatch [ OK ] # 5.06 [+0.09] TEST: IPv6 fibmatch [ OK ] # 5.19 [+0.13] One nexthop device deleted # 5.27 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.36 [+0.10] TEST: IPv6 - multipath down to single path [ OK ] # 5.51 [+0.15] Second nexthop device deleted # 5.64 [+0.12] TEST: IPv6 - no route [ OK ] # 6.27 [+0.63] # 6.27 [+0.00] Single path, admin down # 7.60 [+1.33] Start point # 7.70 [+0.09] TEST: IPv4 fibmatch [ OK ] # 7.79 [+0.10] TEST: IPv6 fibmatch [ OK ] # 7.89 [+0.09] Route deleted on down # 7.98 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.09 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.62 [+0.54] # 8.62 [+0.00] Admin down multipath # 10.66 [+2.04] Verify start point # 10.78 [+0.11] TEST: IPv4 fibmatch [ OK ] # 10.87 [+0.09] TEST: IPv6 fibmatch [ OK ] # 10.96 [+0.09] One device down, one up # 11.06 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 11.17 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 11.27 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 11.39 [+0.12] TEST: IPv6 fibmatch on up device [ OK ] # 11.54 [+0.15] TEST: IPv4 flags on down device [ OK ] # 11.67 [+0.13] TEST: IPv6 flags on down device [ OK ] # 11.81 [+0.13] TEST: IPv4 flags on up device [ OK ] # 11.92 [+0.11] TEST: IPv6 flags on up device [ OK ] # 12.13 [+0.21] Other device down and up # 12.23 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.33 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 12.45 [+0.12] TEST: IPv4 fibmatch on up device [ OK ] # 12.58 [+0.13] TEST: IPv6 fibmatch on up device [ OK ] # 12.69 [+0.11] TEST: IPv4 flags on down device [ OK ] # 12.81 [+0.12] TEST: IPv6 flags on down device [ OK ] # 12.94 [+0.13] TEST: IPv4 flags on up device [ OK ] # 13.05 [+0.11] TEST: IPv6 flags on up device [ OK ] # 13.19 [+0.14] Both devices down # 13.28 [+0.09] TEST: IPv4 fibmatch [ OK ] # 13.38 [+0.10] TEST: IPv6 fibmatch [ OK ] # 14.06 [+0.68] # 14.06 [+0.00] Local carrier tests - single path # 15.52 [+1.46] Start point # 15.63 [+0.11] TEST: IPv4 fibmatch [ OK ] # 15.73 [+0.10] TEST: IPv6 fibmatch [ OK ] # 15.84 [+0.12] TEST: IPv4 - no linkdown flag [ OK ] # 15.95 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 17.08 [+1.14] Carrier off on nexthop # 17.19 [+0.10] TEST: IPv4 fibmatch [ OK ] # 17.29 [+0.11] TEST: IPv6 fibmatch [ OK ] # 17.40 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 17.50 [+0.11] TEST: IPv6 - linkdown flag set [ OK ] # 17.71 [+0.21] Route to local address with carrier down # 17.81 [+0.10] TEST: IPv4 fibmatch [ OK ] # 17.91 [+0.10] TEST: IPv6 fibmatch [ OK ] # 18.05 [+0.14] TEST: IPv4 linkdown flag set [ OK ] # 18.16 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 18.76 [+0.60] # 18.76 [+0.00] Single path route carrier test # 20.39 [+1.63] Start point # 20.49 [+0.10] TEST: IPv4 fibmatch [ OK ] # 20.63 [+0.14] TEST: IPv6 fibmatch [ OK ] # 20.73 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 20.84 [+0.11] TEST: IPv6 no linkdown flag [ OK ] # 21.98 [+1.14] Carrier down # 22.11 [+0.13] TEST: IPv4 fibmatch [ OK ] # 22.23 [+0.12] TEST: IPv6 fibmatch [ OK ] # 22.32 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 22.42 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 22.61 [+0.19] Second address added with carrier down # 22.70 [+0.09] TEST: IPv4 fibmatch [ OK ] # 22.78 [+0.08] TEST: IPv6 fibmatch [ OK ] # 22.89 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 22.98 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 28.04 [+5.06] # 28.04 [+0.00] IPv4 nexthop tests # 28.04 [+0.00] <<< write me >>> # 28.36 [+0.32] # 28.36 [+0.00] IPv6 nexthop tests # 28.51 [+0.15] TEST: Directly connected nexthop, unicast address [ OK ] # 28.62 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.72 [+0.10] TEST: Gateway is linklocal address [ OK ] # 28.86 [+0.14] TEST: Gateway is linklocal address, no device [ OK ] # 28.98 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 29.09 [+0.11] TEST: Gateway can not be local unicast address, with device [ OK ] # 29.22 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 29.34 [+0.12] TEST: Gateway can be local address in a VRF [ OK ] # 29.45 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 29.55 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 29.65 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 29.77 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.87 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 29.99 [+0.12] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 31.13 [+1.13] # 31.13 [+0.00] FIB rule with suppress_prefixlength # 33.27 [+2.14] TEST: FIB rule suppress test [ OK ] # 35.14 [+1.87] # 35.14 [+0.00] Fib6 info length calculation in route notify test # 39.72 [+4.59] TEST: ipv6 route add notify [ OK ] # 41.73 [+2.01] # 41.73 [+0.00] Fib4 info length calculation in route notify test # 46.14 [+4.41] TEST: ipv4 route add notify [ OK ] # 51.30 [+5.16] # 51.30 [+0.00] IPv6 route add / append tests # 51.73 [+0.43] TEST: Attempt to add duplicate route - gw [ OK ] # 52.11 [+0.38] TEST: Attempt to add duplicate route - dev only [ OK ] # 52.52 [+0.40] TEST: Attempt to add duplicate route - reject route [ OK ] # 53.03 [+0.51] TEST: Append nexthop to existing route - gw [ OK ] # 53.45 [+0.42] TEST: Add multipath route [ OK ] # 53.86 [+0.41] TEST: Attempt to add duplicate multipath route [ OK ] # 54.37 [+0.51] TEST: Route add with different metrics [ OK ] # 54.64 [+0.26] TEST: Route delete with metric [ OK ] # 54.64 [+0.00] # 54.64 [+0.00] IPv6 route replace tests # 55.18 [+0.53] TEST: Single path with single path [ OK ] # 55.73 [+0.55] TEST: Single path with multipath [ OK ] # 56.26 [+0.53] TEST: Single path with single path via multipath attribute [ OK ] # 56.81 [+0.55] TEST: Invalid nexthop [ OK ] # 57.24 [+0.43] TEST: Single path - replace of non-existent route [ OK ] # 57.80 [+0.56] TEST: Multipath with multipath [ OK ] # 58.37 [+0.57] TEST: Multipath with single path [ OK ] # 59.00 [+0.62] TEST: Multipath with single path via multipath attribute [ OK ] # 59.59 [+0.59] TEST: Multipath with dev-only [ OK ] # 60.20 [+0.61] TEST: Multipath - invalid first nexthop [ OK ] # 60.79 [+0.59] TEST: Multipath - invalid second nexthop [ OK ] # 61.24 [+0.45] TEST: Multipath - replace of non-existent route [ OK ] # 61.24 [+0.00] # 61.24 [+0.00] IPv6 route with dsfield tests # 61.47 [+0.23] TEST: Reject route with dsfield [ OK ] # 69.11 [+7.64] # 69.11 [+0.00] IPv4 route add / append tests # 69.53 [+0.42] TEST: Attempt to add duplicate route - gw [ OK ] # 69.97 [+0.44] TEST: Attempt to add duplicate route - dev only [ OK ] # 70.38 [+0.41] TEST: Attempt to add duplicate route - reject route [ OK ] # 70.97 [+0.59] TEST: Add new nexthop for existing prefix [ OK ] # 71.50 [+0.52] TEST: Append nexthop to existing route - gw [ OK ] # 72.01 [+0.51] TEST: Append nexthop to existing route - dev only [ OK ] # 72.52 [+0.51] TEST: Append nexthop to existing route - reject route [ OK ] # 72.94 [+0.42] TEST: Append nexthop to existing reject route - gw [ OK ] # 73.37 [+0.43] TEST: Append nexthop to existing reject route - dev only [ OK ] # 73.80 [+0.43] TEST: add multipath route [ OK ] # 74.24 [+0.44] TEST: Attempt to add duplicate multipath route [ OK ] # 74.77 [+0.53] TEST: Route add with different metrics [ OK ] # 74.99 [+0.22] TEST: Route delete with metric [ OK ] # 75.00 [+0.00] # 75.00 [+0.00] IPv4 route replace tests # 75.48 [+0.48] TEST: Single path with single path [ OK ] # 76.05 [+0.57] TEST: Single path with multipath [ OK ] # 76.64 [+0.59] TEST: Single path with reject route [ OK ] # 77.21 [+0.57] TEST: Single path with single path via multipath attribute [ OK ] # 77.77 [+0.56] TEST: Invalid nexthop [ OK ] # 78.18 [+0.42] TEST: Single path - replace of non-existent route [ OK ] # 78.73 [+0.55] TEST: Multipath with multipath [ OK ] # 79.26 [+0.53] TEST: Multipath with single path [ OK ] # 79.76 [+0.50] TEST: Multipath with single path via multipath attribute [ OK ] # 80.39 [+0.63] TEST: Multipath with reject route [ OK ] # 80.92 [+0.53] TEST: Multipath - invalid first nexthop [ OK ] # 81.49 [+0.57] TEST: Multipath - invalid second nexthop [ OK ] # 81.94 [+0.45] TEST: Multipath - replace of non-existent route [ OK ] # 83.77 [+1.83] TEST: Cached route removed from VRF port device [ OK ] # 83.77 [+0.00] # 83.77 [+0.00] IPv4 route with dsfield tests # 83.99 [+0.22] TEST: Reject route with dsfield 0x01 [ OK ] # 84.11 [+0.12] TEST: Reject route with dsfield 0x02 [ OK ] # 84.25 [+0.14] TEST: Reject route with dsfield 0x03 [ OK ] # 84.64 [+0.39] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 84.75 [+0.12] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 84.89 [+0.14] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 85.02 [+0.13] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 85.12 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 85.22 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 85.31 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 85.42 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 85.54 [+0.12] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 85.67 [+0.13] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 85.78 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 85.87 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 88.00 [+2.13] # 88.00 [+0.00] IPv6 prefix route tests # 90.19 [+2.19] TEST: Default metric [ OK ] # 90.52 [+0.33] TEST: User specified metric on first device [ OK ] # 90.87 [+0.35] TEST: User specified metric on second device [ OK ] # 91.11 [+0.25] TEST: Delete of address on first device [ OK ] # 91.35 [+0.24] TEST: Modify metric of address [ OK ] # 91.72 [+0.37] TEST: Prefix route removed on link down [ OK ] # 91.96 [+0.24] TEST: Prefix route with metric on link up [ OK ] # 92.28 [+0.33] TEST: Set metric with peer route on local side [ OK ] # 92.40 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 92.62 [+0.22] TEST: Modify metric and peer address on local side [ OK ] # 92.72 [+0.10] TEST: Modify metric and peer address on peer side [ OK ] # 93.83 [+1.11] # 93.83 [+0.00] IPv4 prefix route tests # 96.08 [+2.25] TEST: Default metric [ OK ] # 96.43 [+0.36] TEST: User specified metric on first device [ OK ] # 96.78 [+0.34] TEST: User specified metric on second device [ OK ] # 97.03 [+0.25] TEST: Delete of address on first device [ OK ] # 97.25 [+0.22] TEST: Modify metric of address [ OK ] # 97.46 [+0.21] TEST: Prefix route removed on link down [ OK ] # 97.66 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 98.11 [+0.45] TEST: Modify metric of .0/24 address [ OK ] # 98.50 [+0.38] TEST: Set metric of address with peer route [ OK ] # 98.73 [+0.23] TEST: Modify metric and peer address for peer route [ OK ] # 99.98 [+1.25] # 99.98 [+0.00] IPv6 routes with metrics # 105.68 [+5.69] TEST: Single path route with mtu metric [ OK ] # 106.06 [+0.38] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 106.40 [+0.34] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 106.68 [+0.28] TEST: MTU of second leg [ OK ] # 106.93 [+0.25] TEST: Multipath route with mtu metric [ OK ] # 107.21 [+0.28] TEST: Using route with mtu metric [ OK ] # 107.41 [+0.20] TEST: Invalid metric (fails metric_convert) [ OK ] # 109.49 [+2.08] # 109.49 [+0.00] IPv4 route add / append tests # 115.05 [+5.56] TEST: Single path route with mtu metric [ OK ] # 115.31 [+0.26] TEST: Multipath route with mtu metric [ OK ] # 115.62 [+0.31] TEST: Using route with mtu metric [ OK ] # 115.83 [+0.21] TEST: Invalid metric (fails metric_convert) [ OK ] # 118.06 [+2.23] # 118.06 [+0.00] IPv4 route with IPv6 gateway tests # 125.59 [+7.53] TEST: Single path route with IPv6 gateway [ OK ] # 125.88 [+0.29] TEST: Single path route with IPv6 gateway - ping [ OK ] # 126.00 [+0.12] TEST: Single path route delete [ OK ] # 126.27 [+0.27] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 126.50 [+0.24] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 126.66 [+0.16] TEST: Multipath route delete exact match [ OK ] # 126.79 [+0.13] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 127.02 [+0.23] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 127.13 [+0.11] TEST: Multipath route delete exact match [ OK ] # 129.33 [+2.20] # 129.33 [+0.00] IPv4 rp_filter tests # 137.29 [+7.96] TEST: rp_filter passes local packets [ OK ] # 137.52 [+0.23] TEST: rp_filter passes loopback packets [ OK ] # 138.49 [+0.98] # 138.49 [+0.00] IPv4 delete address route tests # 142.16 [+3.66] Regular FIB info # 142.36 [+0.20] TEST: Route removed from VRF when source address deleted [ OK ] # 142.48 [+0.12] TEST: Route in default VRF not removed [ OK ] # 142.89 [+0.42] TEST: Route removed in default VRF when source address deleted [ OK ] # 143.02 [+0.13] TEST: Route in VRF is not removed by address delete [ OK ] # 143.02 [+0.00] Identical FIB info with different table ID # 143.27 [+0.25] TEST: Route removed from VRF when source address deleted [ OK ] # 143.39 [+0.12] TEST: Route in default VRF not removed [ OK ] # 143.83 [+0.44] TEST: Route removed in default VRF when source address deleted [ OK ] # 143.94 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 143.94 [+0.00] Table ID 0 # 144.16 [+0.22] TEST: Route removed in default VRF when source address deleted [ OK ] # 145.35 [+1.19] # 145.35 [+0.00] IPv6 delete address route tests # 151.36 [+6.02] Single device using src address # 151.55 [+0.19] TEST: Prefsrc removed when src address removed on other device [ OK ] # 151.56 [+0.00] Two devices with the same source address # 151.80 [+0.24] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 152.00 [+0.21] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 152.01 [+0.00] VRF with single device using src address # 152.21 [+0.20] TEST: Prefsrc removed when src address removed on other device [ OK ] # 152.21 [+0.00] VRF with two devices using src address # 152.41 [+0.20] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 152.60 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 152.60 [+0.00] src address and nexthop dev in same VRF # 152.81 [+0.21] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 152.92 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 153.38 [+0.46] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 153.49 [+0.10] TEST: Prefsrc in default VRF removed [ OK ] # 153.49 [+0.00] src address and nexthop device in different VRF # 153.70 [+0.21] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 153.83 [+0.13] TEST: Prefsrc not removed in default VRF [ OK ] # 154.12 [+0.29] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 154.27 [+0.14] TEST: Prefsrc removed in default VRF [ OK ] # 154.27 [+0.00] Table ID 0 # 154.51 [+0.24] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 154.51 [+0.00] Link local source route # 154.73 [+0.22] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 154.97 [+0.23] TEST: Prefsrc removed when delete ll addr [ OK ] # 155.07 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 155.45 [+0.38] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 157.30 [+1.85] # 157.30 [+0.00] IPv4 mangling tests # 166.27 [+8.97] TEST: Connection with correct parameters [ OK ] # 166.50 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 167.60 [+1.10] TEST: Connection with correct parameters - mangling [ OK ] # 168.54 [+0.95] TEST: Connection with correct parameters - no mangling [ OK ] # 168.62 [+0.08] TEST: Connection check - server side [ OK ] # 170.94 [+2.32] # 170.94 [+0.00] IPv6 mangling tests # 179.35 [+8.41] TEST: Connection with correct parameters [ OK ] # 179.61 [+0.25] TEST: Connection with incorrect parameters [ OK ] # 180.56 [+0.96] TEST: Connection with correct parameters - mangling [ OK ] # 181.47 [+0.91] TEST: Connection with correct parameters - no mangling [ OK ] # 181.54 [+0.07] TEST: Connection check - server side [ OK ] # 183.92 [+2.38] # 183.92 [+0.00] IPv4 broadcast neighbour tests # 186.68 [+2.76] TEST: Resolved neighbour for broadcast address [ OK ] # 186.79 [+0.11] TEST: Resolved neighbour for network broadcast address [ OK ] # 186.88 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 186.98 [+0.11] TEST: Unresolved neighbour for network broadcast address [ OK ] # 189.21 [+2.22] # 189.21 [+0.00] Fib6 garbage collection test # 202.67 [+13.46] TEST: ipv6 route garbage collection [ OK ] # 216.39 [+13.71] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 230.09 [+13.71] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 243.95 [+13.86] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 258.45 [+14.50] TEST: ipv6 route garbage collection (RA message) [ OK ] # 259.31 [+0.87] # 259.32 [+0.00] IPv4 multipath list receive tests # 279.20 [+19.89] TEST: Multipath route hit ratio (1.00) [ OK ] # 281.48 [+2.28] # 281.48 [+0.00] IPv6 multipath list receive tests # 300.82 [+19.34] TEST: Multipath route hit ratio (1.00) [ OK ] # 302.88 [+2.05] # 302.88 [+0.00] Tests passed: 229 # 302.88 [+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__->