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.56 [+0.56] # 0.56 [+0.00] Single path route test # 1.97 [+1.41] Start point # 2.08 [+0.11] TEST: IPv4 fibmatch [ OK ] # 2.19 [+0.11] TEST: IPv6 fibmatch [ OK ] # 2.33 [+0.14] Nexthop device deleted # 2.43 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.55 [+0.12] TEST: IPv6 fibmatch - no route [ OK ] # 3.29 [+0.74] # 3.29 [+0.00] Multipath route test # 5.64 [+2.34] Start point # 5.76 [+0.12] TEST: IPv4 fibmatch [ OK ] # 5.90 [+0.14] TEST: IPv6 fibmatch [ OK ] # 6.08 [+0.17] One nexthop device deleted # 6.20 [+0.12] TEST: IPv4 - multipath route removed on delete [ OK ] # 6.32 [+0.12] TEST: IPv6 - multipath down to single path [ OK ] # 6.47 [+0.15] Second nexthop device deleted # 6.59 [+0.11] TEST: IPv6 - no route [ OK ] # 7.36 [+0.77] # 7.36 [+0.00] Single path, admin down # 8.94 [+1.58] Start point # 9.04 [+0.09] TEST: IPv4 fibmatch [ OK ] # 9.15 [+0.11] TEST: IPv6 fibmatch [ OK ] # 9.27 [+0.12] Route deleted on down # 9.40 [+0.13] TEST: IPv4 fibmatch [ OK ] # 9.51 [+0.11] TEST: IPv6 fibmatch [ OK ] # 10.21 [+0.70] # 10.21 [+0.00] Admin down multipath # 12.17 [+1.96] Verify start point # 12.26 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.38 [+0.12] TEST: IPv6 fibmatch [ OK ] # 12.47 [+0.09] One device down, one up # 12.57 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 12.67 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 12.77 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 12.87 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 12.97 [+0.10] TEST: IPv4 flags on down device [ OK ] # 13.09 [+0.12] TEST: IPv6 flags on down device [ OK ] # 13.21 [+0.12] TEST: IPv4 flags on up device [ OK ] # 13.31 [+0.10] TEST: IPv6 flags on up device [ OK ] # 13.51 [+0.20] Other device down and up # 13.60 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 13.70 [+0.10] TEST: IPv6 fibmatch on down device [ OK ] # 13.80 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 13.89 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 14.01 [+0.12] TEST: IPv4 flags on down device [ OK ] # 14.12 [+0.11] TEST: IPv6 flags on down device [ OK ] # 14.24 [+0.12] TEST: IPv4 flags on up device [ OK ] # 14.36 [+0.13] TEST: IPv6 flags on up device [ OK ] # 14.46 [+0.10] Both devices down # 14.56 [+0.10] TEST: IPv4 fibmatch [ OK ] # 14.66 [+0.10] TEST: IPv6 fibmatch [ OK ] # 15.27 [+0.61] # 15.27 [+0.00] Local carrier tests - single path # 16.60 [+1.34] Start point # 16.70 [+0.10] TEST: IPv4 fibmatch [ OK ] # 16.79 [+0.09] TEST: IPv6 fibmatch [ OK ] # 16.89 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 16.99 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 18.13 [+1.14] Carrier off on nexthop # 18.22 [+0.09] TEST: IPv4 fibmatch [ OK ] # 18.31 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.40 [+0.10] TEST: IPv4 - linkdown flag set [ OK ] # 18.48 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 18.65 [+0.17] Route to local address with carrier down # 18.75 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.84 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.95 [+0.11] TEST: IPv4 linkdown flag set [ OK ] # 19.05 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 19.54 [+0.49] # 19.54 [+0.00] Single path route carrier test # 20.84 [+1.30] Start point # 20.93 [+0.09] TEST: IPv4 fibmatch [ OK ] # 21.02 [+0.09] TEST: IPv6 fibmatch [ OK ] # 21.11 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 21.22 [+0.11] TEST: IPv6 no linkdown flag [ OK ] # 22.35 [+1.13] Carrier down # 22.44 [+0.09] TEST: IPv4 fibmatch [ OK ] # 22.53 [+0.09] TEST: IPv6 fibmatch [ OK ] # 22.60 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 22.68 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 22.85 [+0.17] Second address added with carrier down # 22.93 [+0.08] TEST: IPv4 fibmatch [ OK ] # 23.01 [+0.09] TEST: IPv6 fibmatch [ OK ] # 23.09 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 23.17 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 27.47 [+4.30] # 27.47 [+0.00] IPv4 nexthop tests # 27.47 [+0.00] <<< write me >>> # 27.73 [+0.26] # 27.73 [+0.00] IPv6 nexthop tests # 27.83 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 27.92 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 28.02 [+0.10] TEST: Gateway is linklocal address [ OK ] # 28.12 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 28.23 [+0.12] TEST: Gateway can not be local unicast address [ OK ] # 28.33 [+0.10] TEST: Gateway can not be local unicast address, with device [ OK ] # 28.42 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 28.51 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 28.61 [+0.10] TEST: Gateway can be local address in a VRF, with device [ OK ] # 28.71 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 28.82 [+0.11] TEST: Redirect to VRF lookup [ OK ] # 28.92 [+0.10] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 29.02 [+0.10] TEST: VRF route, gateway can not be a local address [ OK ] # 29.11 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 30.15 [+1.04] # 30.15 [+0.00] FIB rule with suppress_prefixlength # 31.89 [+1.74] TEST: FIB rule suppress test [ OK ] # 33.44 [+1.55] # 33.45 [+0.00] Fib6 info length calculation in route notify test # 37.39 [+3.95] TEST: ipv6 route add notify [ OK ] # 38.92 [+1.52] # 38.92 [+0.00] Fib4 info length calculation in route notify test # 42.94 [+4.02] TEST: ipv4 route add notify [ OK ] # 47.25 [+4.31] # 47.25 [+0.00] IPv6 route add / append tests # 47.60 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 47.93 [+0.34] TEST: Attempt to add duplicate route - dev only [ OK ] # 48.28 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 48.75 [+0.47] TEST: Append nexthop to existing route - gw [ OK ] # 49.10 [+0.35] TEST: Add multipath route [ OK ] # 49.45 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 49.88 [+0.44] TEST: Route add with different metrics [ OK ] # 50.07 [+0.19] TEST: Route delete with metric [ OK ] # 50.07 [+0.00] # 50.07 [+0.00] IPv6 route replace tests # 50.51 [+0.44] TEST: Single path with single path [ OK ] # 50.95 [+0.44] TEST: Single path with multipath [ OK ] # 51.39 [+0.44] TEST: Single path with single path via multipath attribute [ OK ] # 51.83 [+0.44] TEST: Invalid nexthop [ OK ] # 52.17 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 52.62 [+0.45] TEST: Multipath with multipath [ OK ] # 53.06 [+0.44] TEST: Multipath with single path [ OK ] # 53.50 [+0.43] TEST: Multipath with single path via multipath attribute [ OK ] # 53.93 [+0.43] TEST: Multipath with dev-only [ OK ] # 54.37 [+0.44] TEST: Multipath - invalid first nexthop [ OK ] # 54.82 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 55.16 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 55.16 [+0.00] # 55.16 [+0.00] IPv6 route with dsfield tests # 55.33 [+0.17] TEST: Reject route with dsfield [ OK ] # 61.21 [+5.88] # 61.21 [+0.00] IPv4 route add / append tests # 61.54 [+0.33] TEST: Attempt to add duplicate route - gw [ OK ] # 61.89 [+0.34] TEST: Attempt to add duplicate route - dev only [ OK ] # 62.22 [+0.34] TEST: Attempt to add duplicate route - reject route [ OK ] # 62.66 [+0.43] TEST: Add new nexthop for existing prefix [ OK ] # 63.08 [+0.43] TEST: Append nexthop to existing route - gw [ OK ] # 63.51 [+0.43] TEST: Append nexthop to existing route - dev only [ OK ] # 63.95 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 64.30 [+0.35] TEST: Append nexthop to existing reject route - gw [ OK ] # 64.63 [+0.33] TEST: Append nexthop to existing reject route - dev only [ OK ] # 64.99 [+0.36] TEST: add multipath route [ OK ] # 65.33 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 65.75 [+0.42] TEST: Route add with different metrics [ OK ] # 65.94 [+0.18] TEST: Route delete with metric [ OK ] # 65.94 [+0.00] # 65.94 [+0.00] IPv4 route replace tests # 66.37 [+0.43] TEST: Single path with single path [ OK ] # 66.81 [+0.44] TEST: Single path with multipath [ OK ] # 67.24 [+0.43] TEST: Single path with reject route [ OK ] # 67.68 [+0.44] TEST: Single path with single path via multipath attribute [ OK ] # 68.11 [+0.43] TEST: Invalid nexthop [ OK ] # 68.45 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 68.88 [+0.43] TEST: Multipath with multipath [ OK ] # 69.30 [+0.42] TEST: Multipath with single path [ OK ] # 69.71 [+0.41] TEST: Multipath with single path via multipath attribute [ OK ] # 70.14 [+0.43] TEST: Multipath with reject route [ OK ] # 70.56 [+0.42] TEST: Multipath - invalid first nexthop [ OK ] # 70.99 [+0.43] TEST: Multipath - invalid second nexthop [ OK ] # 71.32 [+0.33] TEST: Multipath - replace of non-existent route [ OK ] # 72.73 [+1.41] TEST: Cached route removed from VRF port device [ OK ] # 72.73 [+0.00] # 72.73 [+0.00] IPv4 route with dsfield tests # 72.90 [+0.17] TEST: Reject route with dsfield 0x01 [ OK ] # 72.99 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 73.08 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 73.33 [+0.25] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 73.41 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 73.49 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 73.58 [+0.10] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 73.67 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 73.74 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 73.82 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 73.90 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 73.98 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 74.05 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 74.13 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 74.22 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 75.92 [+1.70] # 75.92 [+0.00] IPv6 prefix route tests # 77.72 [+1.80] TEST: Default metric [ OK ] # 77.99 [+0.27] TEST: User specified metric on first device [ OK ] # 78.29 [+0.30] TEST: User specified metric on second device [ OK ] # 78.48 [+0.19] TEST: Delete of address on first device [ OK ] # 78.66 [+0.18] TEST: Modify metric of address [ OK ] # 78.95 [+0.29] TEST: Prefix route removed on link down [ OK ] # 79.12 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 79.39 [+0.26] TEST: Set metric with peer route on local side [ OK ] # 79.49 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 79.67 [+0.18] TEST: Modify metric and peer address on local side [ OK ] # 79.76 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 80.63 [+0.87] # 80.63 [+0.00] IPv4 prefix route tests # 82.38 [+1.76] TEST: Default metric [ OK ] # 82.65 [+0.27] TEST: User specified metric on first device [ OK ] # 82.92 [+0.27] TEST: User specified metric on second device [ OK ] # 83.10 [+0.18] TEST: Delete of address on first device [ OK ] # 83.28 [+0.18] TEST: Modify metric of address [ OK ] # 83.43 [+0.16] TEST: Prefix route removed on link down [ OK ] # 83.63 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 83.98 [+0.35] TEST: Modify metric of .0/24 address [ OK ] # 84.25 [+0.27] TEST: Set metric of address with peer route [ OK ] # 84.43 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 85.35 [+0.92] # 85.35 [+0.00] IPv6 routes with metrics # 89.70 [+4.35] TEST: Single path route with mtu metric [ OK ] # 89.98 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 90.25 [+0.27] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 90.42 [+0.17] TEST: MTU of second leg [ OK ] # 90.60 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 90.81 [+0.21] TEST: Using route with mtu metric [ OK ] # 90.97 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 92.63 [+1.67] # 92.63 [+0.00] IPv4 route add / append tests # 96.96 [+4.33] TEST: Single path route with mtu metric [ OK ] # 97.14 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 97.36 [+0.22] TEST: Using route with mtu metric [ OK ] # 97.51 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 99.15 [+1.64] # 99.15 [+0.00] IPv4 route with IPv6 gateway tests # 105.61 [+6.46] TEST: Single path route with IPv6 gateway [ OK ] # 105.83 [+0.22] TEST: Single path route with IPv6 gateway - ping [ OK ] # 105.93 [+0.10] TEST: Single path route delete [ OK ] # 106.09 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 106.27 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.36 [+0.09] TEST: Multipath route delete exact match [ OK ] # 106.45 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 106.63 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.71 [+0.08] TEST: Multipath route delete exact match [ OK ] # 108.36 [+1.65] # 108.36 [+0.00] IPv4 rp_filter tests # 113.96 [+5.60] TEST: rp_filter passes local packets [ OK ] # 114.09 [+0.13] TEST: rp_filter passes loopback packets [ OK ] # 114.82 [+0.73] # 114.82 [+0.00] IPv4 delete address route tests # 117.46 [+2.65] Regular FIB info # 117.62 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 117.69 [+0.07] TEST: Route in default VRF not removed [ OK ] # 117.99 [+0.30] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.07 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 118.07 [+0.00] Identical FIB info with different table ID # 118.23 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 118.31 [+0.08] TEST: Route in default VRF not removed [ OK ] # 118.61 [+0.30] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.68 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 118.68 [+0.00] Table ID 0 # 118.85 [+0.17] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.78 [+0.93] # 119.78 [+0.00] IPv6 delete address route tests # 124.25 [+4.47] Single device using src address # 124.40 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 124.40 [+0.00] Two devices with the same source address # 124.56 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 124.72 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 124.72 [+0.00] VRF with single device using src address # 124.88 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 124.88 [+0.00] VRF with two devices using src address # 125.03 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 125.18 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 125.19 [+0.00] src address and nexthop dev in same VRF # 125.34 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 125.41 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 125.72 [+0.31] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 125.82 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 125.82 [+0.00] src address and nexthop device in different VRF # 125.99 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 126.07 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 126.31 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 126.39 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 126.39 [+0.00] Table ID 0 # 126.55 [+0.16] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 126.55 [+0.00] Link local source route # 126.71 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 126.87 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 126.95 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 127.17 [+0.22] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 128.66 [+1.49] # 128.66 [+0.00] IPv4 mangling tests # 136.30 [+7.64] TEST: Connection with correct parameters [ OK ] # 136.48 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 137.39 [+0.91] TEST: Connection with correct parameters - mangling [ OK ] # 138.31 [+0.92] TEST: Connection with correct parameters - no mangling [ OK ] # 138.36 [+0.05] TEST: Connection check - server side [ OK ] # 140.35 [+1.98] # 140.35 [+0.00] IPv6 mangling tests # 147.63 [+7.29] TEST: Connection with correct parameters [ OK ] # 147.82 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 148.67 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 149.52 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 149.58 [+0.06] TEST: Connection check - server side [ OK ] # 151.46 [+1.88] # 151.46 [+0.00] IPv4 broadcast neighbour tests # 153.54 [+2.08] TEST: Resolved neighbour for broadcast address [ OK ] # 153.64 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 153.72 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 153.82 [+0.11] TEST: Unresolved neighbour for network broadcast address [ OK ] # 155.56 [+1.74] # 155.56 [+0.00] Fib6 garbage collection test # 168.71 [+13.15] TEST: ipv6 route garbage collection [ OK ] # 182.05 [+13.34] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 195.41 [+13.35] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 208.88 [+13.47] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 223.10 [+14.23] TEST: ipv6 route garbage collection (RA message) [ OK ] # 223.79 [+0.69] # 223.79 [+0.00] IPv4 multipath list receive tests # 239.57 [+15.78] TEST: Multipath route hit ratio (1.00) [ OK ] # 241.35 [+1.78] # 241.35 [+0.00] IPv6 multipath list receive tests # 256.94 [+15.60] TEST: Multipath route hit ratio (1.00) [ OK ] # 258.74 [+1.80] # 258.74 [+0.00] Tests passed: 229 # 258.74 [+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__->