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.45 [+0.45] # 0.45 [+0.00] Single path route test # 1.34 [+0.89] Start point # 1.42 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.51 [+0.10] TEST: IPv6 fibmatch [ OK ] # 1.62 [+0.11] Nexthop device deleted # 1.71 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 1.79 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.32 [+0.53] # 2.32 [+0.00] Multipath route test # 4.12 [+1.79] Start point # 4.20 [+0.08] TEST: IPv4 fibmatch [ OK ] # 4.28 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.40 [+0.12] One nexthop device deleted # 4.49 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.57 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.68 [+0.11] Second nexthop device deleted # 4.76 [+0.09] TEST: IPv6 - no route [ OK ] # 5.28 [+0.52] # 5.28 [+0.00] Single path, admin down # 6.42 [+1.14] Start point # 6.49 [+0.07] TEST: IPv4 fibmatch [ OK ] # 6.58 [+0.09] TEST: IPv6 fibmatch [ OK ] # 6.67 [+0.08] Route deleted on down # 6.75 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.84 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.28 [+0.44] # 7.28 [+0.00] Admin down multipath # 8.91 [+1.64] Verify start point # 9.00 [+0.09] TEST: IPv4 fibmatch [ OK ] # 9.08 [+0.08] TEST: IPv6 fibmatch [ OK ] # 9.17 [+0.09] One device down, one up # 9.24 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.33 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 9.41 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.49 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 9.57 [+0.08] TEST: IPv4 flags on down device [ OK ] # 9.67 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.75 [+0.09] TEST: IPv4 flags on up device [ OK ] # 9.86 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.03 [+0.17] Other device down and up # 10.11 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 10.20 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.27 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.36 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.47 [+0.11] TEST: IPv4 flags on down device [ OK ] # 10.64 [+0.17] TEST: IPv6 flags on down device [ OK ] # 10.77 [+0.13] TEST: IPv4 flags on up device [ OK ] # 10.92 [+0.15] TEST: IPv6 flags on up device [ OK ] # 11.01 [+0.09] Both devices down # 11.16 [+0.15] TEST: IPv4 fibmatch [ OK ] # 11.26 [+0.10] TEST: IPv6 fibmatch [ OK ] # 11.99 [+0.74] # 12.00 [+0.00] Local carrier tests - single path # 13.25 [+1.26] Start point # 13.33 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.41 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.50 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 13.60 [+0.10] TEST: IPv6 - no linkdown flag [ OK ] # 14.73 [+1.13] Carrier off on nexthop # 14.81 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.90 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.99 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 15.07 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 15.23 [+0.16] Route to local address with carrier down # 15.30 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.39 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.47 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 15.56 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 16.11 [+0.55] # 16.11 [+0.00] Single path route carrier test # 17.32 [+1.21] Start point # 17.40 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.47 [+0.07] TEST: IPv6 fibmatch [ OK ] # 17.57 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 17.67 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 18.81 [+1.14] Carrier down # 18.95 [+0.14] TEST: IPv4 fibmatch [ OK ] # 19.04 [+0.09] TEST: IPv6 fibmatch [ OK ] # 19.14 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 19.24 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 19.43 [+0.19] Second address added with carrier down # 19.52 [+0.09] TEST: IPv4 fibmatch [ OK ] # 19.62 [+0.10] TEST: IPv6 fibmatch [ OK ] # 19.72 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 19.86 [+0.14] TEST: IPv6 linkdown flag set [ OK ] # 25.29 [+5.43] # 25.29 [+0.00] IPv4 nexthop tests # 25.29 [+0.00] <<< write me >>> # 25.61 [+0.31] # 25.61 [+0.00] IPv6 nexthop tests # 25.72 [+0.12] TEST: Directly connected nexthop, unicast address [ OK ] # 25.83 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 25.95 [+0.12] TEST: Gateway is linklocal address [ OK ] # 26.06 [+0.11] TEST: Gateway is linklocal address, no device [ OK ] # 26.20 [+0.15] TEST: Gateway can not be local unicast address [ OK ] # 26.32 [+0.12] TEST: Gateway can not be local unicast address, with device [ OK ] # 26.46 [+0.14] TEST: Gateway can not be a local linklocal address [ OK ] # 26.56 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 26.70 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 26.81 [+0.11] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 26.93 [+0.12] TEST: Redirect to VRF lookup [ OK ] # 27.04 [+0.11] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 27.18 [+0.14] TEST: VRF route, gateway can not be a local address [ OK ] # 27.30 [+0.12] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 28.64 [+1.33] # 28.64 [+0.00] FIB rule with suppress_prefixlength # 30.94 [+2.31] TEST: FIB rule suppress test [ OK ] # 32.87 [+1.93] # 32.87 [+0.00] Fib6 info length calculation in route notify test # 37.27 [+4.39] TEST: ipv6 route add notify [ OK ] # 39.10 [+1.83] # 39.10 [+0.00] Fib4 info length calculation in route notify test # 43.28 [+4.18] TEST: ipv4 route add notify [ OK ] # 47.93 [+4.66] # 47.93 [+0.00] IPv6 route add / append tests # 48.31 [+0.38] TEST: Attempt to add duplicate route - gw [ OK ] # 48.70 [+0.39] TEST: Attempt to add duplicate route - dev only [ OK ] # 49.09 [+0.39] TEST: Attempt to add duplicate route - reject route [ OK ] # 49.58 [+0.48] TEST: Append nexthop to existing route - gw [ OK ] # 49.98 [+0.41] TEST: Add multipath route [ OK ] # 50.34 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 50.82 [+0.47] TEST: Route add with different metrics [ OK ] # 51.01 [+0.19] TEST: Route delete with metric [ OK ] # 51.01 [+0.00] # 51.01 [+0.00] IPv6 route replace tests # 51.55 [+0.54] TEST: Single path with single path [ OK ] # 52.06 [+0.51] TEST: Single path with multipath [ OK ] # 52.56 [+0.50] TEST: Single path with single path via multipath attribute [ OK ] # 53.04 [+0.48] TEST: Invalid nexthop [ OK ] # 53.44 [+0.40] TEST: Single path - replace of non-existent route [ OK ] # 53.97 [+0.52] TEST: Multipath with multipath [ OK ] # 54.51 [+0.54] TEST: Multipath with single path [ OK ] # 55.04 [+0.53] TEST: Multipath with single path via multipath attribute [ OK ] # 55.53 [+0.49] TEST: Multipath with dev-only [ OK ] # 55.99 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 56.46 [+0.47] TEST: Multipath - invalid second nexthop [ OK ] # 56.82 [+0.36] TEST: Multipath - replace of non-existent route [ OK ] # 56.83 [+0.00] # 56.83 [+0.00] IPv6 route with dsfield tests # 57.02 [+0.20] TEST: Reject route with dsfield [ OK ] # 63.26 [+6.24] # 63.26 [+0.00] IPv4 route add / append tests # 63.59 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 63.95 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 64.31 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 64.75 [+0.44] TEST: Add new nexthop for existing prefix [ OK ] # 65.19 [+0.45] TEST: Append nexthop to existing route - gw [ OK ] # 65.65 [+0.45] TEST: Append nexthop to existing route - dev only [ OK ] # 66.09 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 66.46 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 66.82 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 67.18 [+0.36] TEST: add multipath route [ OK ] # 67.55 [+0.37] TEST: Attempt to add duplicate multipath route [ OK ] # 67.99 [+0.44] TEST: Route add with different metrics [ OK ] # 68.18 [+0.18] TEST: Route delete with metric [ OK ] # 68.18 [+0.00] # 68.18 [+0.00] IPv4 route replace tests # 68.64 [+0.46] TEST: Single path with single path [ OK ] # 69.10 [+0.46] TEST: Single path with multipath [ OK ] # 69.54 [+0.45] TEST: Single path with reject route [ OK ] # 70.00 [+0.46] TEST: Single path with single path via multipath attribute [ OK ] # 70.44 [+0.44] TEST: Invalid nexthop [ OK ] # 70.80 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 71.23 [+0.44] TEST: Multipath with multipath [ OK ] # 71.69 [+0.46] TEST: Multipath with single path [ OK ] # 72.15 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 72.60 [+0.46] TEST: Multipath with reject route [ OK ] # 73.07 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 73.51 [+0.44] TEST: Multipath - invalid second nexthop [ OK ] # 73.86 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 75.30 [+1.44] TEST: Cached route removed from VRF port device [ OK ] # 75.30 [+0.00] # 75.30 [+0.00] IPv4 route with dsfield tests # 75.48 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 75.58 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 75.67 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 75.92 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 76.01 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 76.11 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 76.20 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 76.29 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 76.37 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 76.46 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 76.54 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 76.63 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 76.71 [+0.09] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 76.79 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 76.89 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 78.58 [+1.69] # 78.58 [+0.00] IPv6 prefix route tests # 80.44 [+1.86] TEST: Default metric [ OK ] # 80.75 [+0.31] TEST: User specified metric on first device [ OK ] # 81.02 [+0.28] TEST: User specified metric on second device [ OK ] # 81.21 [+0.19] TEST: Delete of address on first device [ OK ] # 81.40 [+0.19] TEST: Modify metric of address [ OK ] # 81.71 [+0.31] TEST: Prefix route removed on link down [ OK ] # 81.90 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 82.18 [+0.28] TEST: Set metric with peer route on local side [ OK ] # 82.29 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 82.47 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 82.56 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 83.50 [+0.93] # 83.50 [+0.00] IPv4 prefix route tests # 85.30 [+1.80] TEST: Default metric [ OK ] # 85.59 [+0.28] TEST: User specified metric on first device [ OK ] # 85.87 [+0.28] TEST: User specified metric on second device [ OK ] # 86.05 [+0.18] TEST: Delete of address on first device [ OK ] # 86.24 [+0.19] TEST: Modify metric of address [ OK ] # 86.42 [+0.18] TEST: Prefix route removed on link down [ OK ] # 86.60 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 86.98 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 87.27 [+0.29] TEST: Set metric of address with peer route [ OK ] # 87.46 [+0.19] TEST: Modify metric and peer address for peer route [ OK ] # 88.47 [+1.02] # 88.47 [+0.00] IPv6 routes with metrics # 93.17 [+4.70] TEST: Single path route with mtu metric [ OK ] # 93.46 [+0.29] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 93.77 [+0.31] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 93.97 [+0.20] TEST: MTU of second leg [ OK ] # 94.17 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 94.41 [+0.23] TEST: Using route with mtu metric [ OK ] # 94.57 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 96.27 [+1.70] # 96.27 [+0.00] IPv4 route add / append tests # 100.80 [+4.53] TEST: Single path route with mtu metric [ OK ] # 100.98 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 101.21 [+0.23] TEST: Using route with mtu metric [ OK ] # 101.37 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 103.07 [+1.70] # 103.07 [+0.00] IPv4 route with IPv6 gateway tests # 109.44 [+6.37] TEST: Single path route with IPv6 gateway [ OK ] # 109.66 [+0.22] TEST: Single path route with IPv6 gateway - ping [ OK ] # 109.75 [+0.09] TEST: Single path route delete [ OK ] # 109.94 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 110.11 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 110.21 [+0.10] TEST: Multipath route delete exact match [ OK ] # 110.30 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 110.50 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 110.58 [+0.08] TEST: Multipath route delete exact match [ OK ] # 112.31 [+1.73] # 112.31 [+0.00] IPv4 rp_filter tests # 118.47 [+6.16] TEST: rp_filter passes local packets [ OK ] # 118.61 [+0.15] TEST: rp_filter passes loopback packets [ OK ] # 119.37 [+0.75] # 119.37 [+0.00] IPv4 delete address route tests # 122.11 [+2.74] Regular FIB info # 122.27 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 122.35 [+0.08] TEST: Route in default VRF not removed [ OK ] # 122.68 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.76 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 122.77 [+0.00] Identical FIB info with different table ID # 122.93 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 123.03 [+0.10] TEST: Route in default VRF not removed [ OK ] # 123.36 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 123.46 [+0.10] TEST: Route in VRF is not removed by address delete [ OK ] # 123.46 [+0.00] Table ID 0 # 123.64 [+0.18] TEST: Route removed in default VRF when source address deleted [ OK ] # 124.59 [+0.95] # 124.59 [+0.00] IPv6 delete address route tests # 129.19 [+4.60] Single device using src address # 129.36 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 129.36 [+0.00] Two devices with the same source address # 129.52 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 129.70 [+0.18] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 129.70 [+0.00] VRF with single device using src address # 129.85 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 129.86 [+0.00] VRF with two devices using src address # 130.02 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 130.18 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 130.18 [+0.00] src address and nexthop dev in same VRF # 130.36 [+0.18] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 130.44 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 130.78 [+0.34] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 130.86 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 130.86 [+0.00] src address and nexthop device in different VRF # 131.01 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 131.08 [+0.07] TEST: Prefsrc not removed in default VRF [ OK ] # 131.35 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 131.44 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 131.44 [+0.00] Table ID 0 # 131.60 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 131.61 [+0.00] Link local source route # 131.78 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 131.94 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 132.02 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 132.27 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 133.78 [+1.51] # 133.78 [+0.00] IPv4 mangling tests # 141.37 [+7.59] TEST: Connection with correct parameters [ OK ] # 141.54 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 142.54 [+1.00] TEST: Connection with correct parameters - mangling [ OK ] # 143.39 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 143.44 [+0.05] TEST: Connection check - server side [ OK ] # 145.46 [+2.01] # 145.46 [+0.00] IPv6 mangling tests # 153.09 [+7.63] TEST: Connection with correct parameters [ OK ] # 153.33 [+0.23] TEST: Connection with incorrect parameters [ OK ] # 154.17 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 155.05 [+0.88] TEST: Connection with correct parameters - no mangling [ OK ] # 155.10 [+0.05] TEST: Connection check - server side [ OK ] # 157.08 [+1.98] # 157.08 [+0.00] IPv4 broadcast neighbour tests # 159.23 [+2.15] TEST: Resolved neighbour for broadcast address [ OK ] # 159.33 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 159.43 [+0.10] TEST: Unresolved neighbour for broadcast address [ OK ] # 159.52 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 161.36 [+1.84] # 161.36 [+0.00] Fib6 garbage collection test # 174.55 [+13.19] TEST: ipv6 route garbage collection [ OK ] # 187.96 [+13.41] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 201.36 [+13.40] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 215.00 [+13.63] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 229.38 [+14.38] TEST: ipv6 route garbage collection (RA message) [ OK ] # 230.15 [+0.77] # 230.15 [+0.00] IPv4 multipath list receive tests # 247.07 [+16.92] TEST: Multipath route hit ratio (1.00) [ OK ] # 248.89 [+1.83] # 248.89 [+0.00] IPv6 multipath list receive tests # 265.27 [+16.38] TEST: Multipath route hit ratio (1.00) [ OK ] # 267.05 [+1.78] # 267.05 [+0.00] Tests passed: 229 # 267.05 [+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__->