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.40 [+0.40] # 0.40 [+0.00] Single path route test # 1.25 [+0.86] Start point # 1.34 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.41 [+0.07] TEST: IPv6 fibmatch [ OK ] # 1.53 [+0.12] Nexthop device deleted # 1.60 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.67 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 2.19 [+0.52] # 2.19 [+0.00] Multipath route test # 3.73 [+1.53] Start point # 3.81 [+0.08] TEST: IPv4 fibmatch [ OK ] # 3.89 [+0.08] TEST: IPv6 fibmatch [ OK ] # 3.99 [+0.10] One nexthop device deleted # 4.07 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.15 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.27 [+0.12] Second nexthop device deleted # 4.35 [+0.09] TEST: IPv6 - no route [ OK ] # 4.84 [+0.49] # 4.84 [+0.00] Single path, admin down # 5.92 [+1.08] Start point # 6.00 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.08 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.15 [+0.08] Route deleted on down # 6.24 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.31 [+0.07] TEST: IPv6 fibmatch [ OK ] # 6.75 [+0.44] # 6.75 [+0.00] Admin down multipath # 8.29 [+1.54] Verify start point # 8.37 [+0.08] TEST: IPv4 fibmatch [ OK ] # 8.45 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.53 [+0.08] One device down, one up # 8.60 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.68 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 8.76 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 8.84 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.94 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.02 [+0.08] TEST: IPv6 flags on down device [ OK ] # 9.10 [+0.08] TEST: IPv4 flags on up device [ OK ] # 9.19 [+0.09] TEST: IPv6 flags on up device [ OK ] # 9.35 [+0.16] Other device down and up # 9.43 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.51 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.59 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.68 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 9.76 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.86 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.93 [+0.07] TEST: IPv4 flags on up device [ OK ] # 10.02 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.12 [+0.10] Both devices down # 10.19 [+0.06] TEST: IPv4 fibmatch [ OK ] # 10.28 [+0.09] TEST: IPv6 fibmatch [ OK ] # 10.82 [+0.54] # 10.82 [+0.00] Local carrier tests - single path # 11.99 [+1.17] Start point # 12.06 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.15 [+0.09] TEST: IPv6 fibmatch [ OK ] # 12.22 [+0.07] TEST: IPv4 - no linkdown flag [ OK ] # 12.30 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 13.42 [+1.12] Carrier off on nexthop # 13.53 [+0.10] TEST: IPv4 fibmatch [ OK ] # 13.62 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.72 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 13.82 [+0.10] TEST: IPv6 - linkdown flag set [ OK ] # 14.03 [+0.21] Route to local address with carrier down # 14.13 [+0.10] TEST: IPv4 fibmatch [ OK ] # 14.22 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.33 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 14.41 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 14.86 [+0.45] # 14.86 [+0.00] Single path route carrier test # 16.04 [+1.18] Start point # 16.12 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.19 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.27 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 16.35 [+0.08] TEST: IPv6 no linkdown flag [ OK ] # 17.48 [+1.13] Carrier down # 17.57 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.64 [+0.07] TEST: IPv6 fibmatch [ OK ] # 17.73 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 17.81 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 17.96 [+0.15] Second address added with carrier down # 18.05 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.11 [+0.07] TEST: IPv6 fibmatch [ OK ] # 18.20 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.29 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 22.42 [+4.13] # 22.42 [+0.00] IPv4 nexthop tests # 22.42 [+0.00] <<< write me >>> # 22.68 [+0.27] # 22.68 [+0.00] IPv6 nexthop tests # 22.79 [+0.11] TEST: Directly connected nexthop, unicast address [ OK ] # 22.89 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.00 [+0.11] TEST: Gateway is linklocal address [ OK ] # 23.09 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 23.18 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 23.27 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.36 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 23.45 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 23.56 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.66 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 23.76 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 23.84 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 23.93 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 24.03 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.02 [+0.99] # 25.02 [+0.00] FIB rule with suppress_prefixlength # 26.88 [+1.86] TEST: FIB rule suppress test [ OK ] # 28.59 [+1.71] # 28.59 [+0.00] Fib6 info length calculation in route notify test # 32.58 [+3.99] TEST: ipv6 route add notify [ OK ] # 34.38 [+1.80] # 34.38 [+0.00] Fib4 info length calculation in route notify test # 38.83 [+4.45] TEST: ipv4 route add notify [ OK ] # 44.83 [+6.00] # 44.83 [+0.00] IPv6 route add / append tests # 45.29 [+0.46] TEST: Attempt to add duplicate route - gw [ OK ] # 45.82 [+0.53] TEST: Attempt to add duplicate route - dev only [ OK ] # 46.41 [+0.59] TEST: Attempt to add duplicate route - reject route [ OK ] # 47.15 [+0.73] TEST: Append nexthop to existing route - gw [ OK ] # 47.70 [+0.55] TEST: Add multipath route [ OK ] # 48.21 [+0.51] TEST: Attempt to add duplicate multipath route [ OK ] # 48.97 [+0.76] TEST: Route add with different metrics [ OK ] # 49.31 [+0.34] TEST: Route delete with metric [ OK ] # 49.31 [+0.00] # 49.31 [+0.00] IPv6 route replace tests # 49.96 [+0.65] TEST: Single path with single path [ OK ] # 50.66 [+0.70] TEST: Single path with multipath [ OK ] # 51.31 [+0.65] TEST: Single path with single path via multipath attribute [ OK ] # 51.90 [+0.60] TEST: Invalid nexthop [ OK ] # 52.34 [+0.44] TEST: Single path - replace of non-existent route [ OK ] # 53.06 [+0.72] TEST: Multipath with multipath [ OK ] # 53.69 [+0.63] TEST: Multipath with single path [ OK ] # 54.29 [+0.61] TEST: Multipath with single path via multipath attribute [ OK ] # 54.93 [+0.64] TEST: Multipath with dev-only [ OK ] # 55.61 [+0.68] TEST: Multipath - invalid first nexthop [ OK ] # 56.24 [+0.63] TEST: Multipath - invalid second nexthop [ OK ] # 56.68 [+0.44] TEST: Multipath - replace of non-existent route [ OK ] # 56.68 [+0.00] # 56.68 [+0.00] IPv6 route with dsfield tests # 56.91 [+0.23] TEST: Reject route with dsfield [ OK ] # 63.97 [+7.06] # 63.97 [+0.00] IPv4 route add / append tests # 64.41 [+0.44] TEST: Attempt to add duplicate route - gw [ OK ] # 64.83 [+0.43] TEST: Attempt to add duplicate route - dev only [ OK ] # 65.22 [+0.38] TEST: Attempt to add duplicate route - reject route [ OK ] # 65.70 [+0.48] TEST: Add new nexthop for existing prefix [ OK ] # 66.15 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 66.64 [+0.49] TEST: Append nexthop to existing route - dev only [ OK ] # 67.10 [+0.46] TEST: Append nexthop to existing route - reject route [ OK ] # 67.49 [+0.39] TEST: Append nexthop to existing reject route - gw [ OK ] # 67.86 [+0.38] TEST: Append nexthop to existing reject route - dev only [ OK ] # 68.23 [+0.36] TEST: add multipath route [ OK ] # 68.60 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 69.05 [+0.46] TEST: Route add with different metrics [ OK ] # 69.24 [+0.19] TEST: Route delete with metric [ OK ] # 69.25 [+0.00] # 69.25 [+0.00] IPv4 route replace tests # 69.70 [+0.45] TEST: Single path with single path [ OK ] # 70.14 [+0.44] TEST: Single path with multipath [ OK ] # 70.60 [+0.46] TEST: Single path with reject route [ OK ] # 71.04 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 71.50 [+0.46] TEST: Invalid nexthop [ OK ] # 71.85 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 72.31 [+0.45] TEST: Multipath with multipath [ OK ] # 72.75 [+0.44] TEST: Multipath with single path [ OK ] # 73.21 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 73.67 [+0.46] TEST: Multipath with reject route [ OK ] # 74.11 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 74.55 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 74.90 [+0.36] TEST: Multipath - replace of non-existent route [ OK ] # 76.38 [+1.47] TEST: Cached route removed from VRF port device [ OK ] # 76.38 [+0.00] # 76.38 [+0.00] IPv4 route with dsfield tests # 76.57 [+0.19] TEST: Reject route with dsfield 0x01 [ OK ] # 76.67 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 76.75 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 77.01 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 77.10 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 77.19 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 77.26 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 77.34 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 77.43 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 77.52 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 77.59 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 77.69 [+0.10] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 77.79 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 77.87 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 77.96 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 79.64 [+1.69] # 79.65 [+0.00] IPv6 prefix route tests # 81.45 [+1.81] TEST: Default metric [ OK ] # 81.74 [+0.29] TEST: User specified metric on first device [ OK ] # 82.01 [+0.27] TEST: User specified metric on second device [ OK ] # 82.20 [+0.19] TEST: Delete of address on first device [ OK ] # 82.40 [+0.19] TEST: Modify metric of address [ OK ] # 82.68 [+0.28] TEST: Prefix route removed on link down [ OK ] # 82.87 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 83.14 [+0.27] TEST: Set metric with peer route on local side [ OK ] # 83.22 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 83.41 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 83.49 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 84.46 [+0.97] # 84.46 [+0.00] IPv4 prefix route tests # 86.23 [+1.77] TEST: Default metric [ OK ] # 86.50 [+0.27] TEST: User specified metric on first device [ OK ] # 86.77 [+0.27] TEST: User specified metric on second device [ OK ] # 86.96 [+0.18] TEST: Delete of address on first device [ OK ] # 87.14 [+0.18] TEST: Modify metric of address [ OK ] # 87.31 [+0.17] TEST: Prefix route removed on link down [ OK ] # 87.51 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 87.87 [+0.36] TEST: Modify metric of .0/24 address [ OK ] # 88.15 [+0.28] TEST: Set metric of address with peer route [ OK ] # 88.34 [+0.20] TEST: Modify metric and peer address for peer route [ OK ] # 89.29 [+0.94] # 89.29 [+0.00] IPv6 routes with metrics # 93.73 [+4.44] TEST: Single path route with mtu metric [ OK ] # 94.00 [+0.27] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 94.28 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 94.45 [+0.17] TEST: MTU of second leg [ OK ] # 94.66 [+0.21] TEST: Multipath route with mtu metric [ OK ] # 94.89 [+0.23] TEST: Using route with mtu metric [ OK ] # 95.06 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 96.83 [+1.77] # 96.83 [+0.00] IPv4 route add / append tests # 101.22 [+4.39] TEST: Single path route with mtu metric [ OK ] # 101.39 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 101.61 [+0.22] TEST: Using route with mtu metric [ OK ] # 101.77 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 103.42 [+1.65] # 103.42 [+0.00] IPv4 route with IPv6 gateway tests # 109.70 [+6.29] TEST: Single path route with IPv6 gateway [ OK ] # 109.93 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 110.02 [+0.09] TEST: Single path route delete [ OK ] # 110.18 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 110.36 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 110.44 [+0.08] TEST: Multipath route delete exact match [ OK ] # 110.53 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 110.71 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 110.81 [+0.10] TEST: Multipath route delete exact match [ OK ] # 112.48 [+1.67] # 112.48 [+0.00] IPv4 rp_filter tests # 118.03 [+5.55] TEST: rp_filter passes local packets [ OK ] # 118.16 [+0.13] TEST: rp_filter passes loopback packets [ OK ] # 118.89 [+0.73] # 118.89 [+0.00] IPv4 delete address route tests # 121.59 [+2.70] Regular FIB info # 121.76 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 121.84 [+0.08] TEST: Route in default VRF not removed [ OK ] # 122.16 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.23 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 122.23 [+0.00] Identical FIB info with different table ID # 122.40 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 122.50 [+0.10] TEST: Route in default VRF not removed [ OK ] # 122.81 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.90 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 122.90 [+0.00] Table ID 0 # 123.08 [+0.17] TEST: Route removed in default VRF when source address deleted [ OK ] # 123.97 [+0.90] # 123.97 [+0.00] IPv6 delete address route tests # 128.42 [+4.45] Single device using src address # 128.57 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 128.57 [+0.00] Two devices with the same source address # 128.73 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 128.91 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 128.92 [+0.00] VRF with single device using src address # 129.08 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 129.08 [+0.00] VRF with two devices using src address # 129.25 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 129.44 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 129.44 [+0.00] src address and nexthop dev in same VRF # 129.61 [+0.17] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 129.72 [+0.11] TEST: Prefsrc in default VRF not removed [ OK ] # 130.04 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 130.13 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 130.13 [+0.00] src address and nexthop device in different VRF # 130.30 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 130.40 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 130.64 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 130.72 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 130.72 [+0.00] Table ID 0 # 130.89 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 130.89 [+0.00] Link local source route # 131.05 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 131.20 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 131.27 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 131.53 [+0.26] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 132.92 [+1.40] # 132.92 [+0.00] IPv4 mangling tests # 140.43 [+7.51] TEST: Connection with correct parameters [ OK ] # 140.60 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 141.51 [+0.91] TEST: Connection with correct parameters - mangling [ OK ] # 142.36 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 142.42 [+0.07] TEST: Connection check - server side [ OK ] # 144.38 [+1.96] # 144.38 [+0.00] IPv6 mangling tests # 151.64 [+7.26] TEST: Connection with correct parameters [ OK ] # 151.83 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 152.68 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 153.55 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 153.61 [+0.05] TEST: Connection check - server side [ OK ] # 155.54 [+1.94] # 155.54 [+0.00] IPv4 broadcast neighbour tests # 157.63 [+2.08] TEST: Resolved neighbour for broadcast address [ OK ] # 157.72 [+0.09] TEST: Resolved neighbour for network broadcast address [ OK ] # 157.80 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 157.88 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 159.62 [+1.74] # 159.62 [+0.00] Fib6 garbage collection test # 172.72 [+13.09] TEST: ipv6 route garbage collection [ OK ] # 186.05 [+13.34] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 199.41 [+13.35] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 212.85 [+13.45] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 227.07 [+14.21] TEST: ipv6 route garbage collection (RA message) [ OK ] # 227.73 [+0.67] # 227.74 [+0.00] IPv4 multipath list receive tests # 243.76 [+16.03] TEST: Multipath route hit ratio (1.00) [ OK ] # 245.50 [+1.74] # 245.50 [+0.00] IPv6 multipath list receive tests # 261.32 [+15.83] TEST: Multipath route hit ratio (1.00) [ OK ] # 263.13 [+1.80] # 263.13 [+0.00] Tests passed: 229 # 263.13 [+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__->