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.35 [+0.35] # 0.35 [+0.00] Single path route test # 1.13 [+0.79] Start point # 1.20 [+0.06] TEST: IPv4 fibmatch [ OK ] # 1.26 [+0.06] TEST: IPv6 fibmatch [ OK ] # 1.37 [+0.11] Nexthop device deleted # 1.44 [+0.07] TEST: IPv4 fibmatch - no route [ OK ] # 1.51 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 1.96 [+0.45] # 1.96 [+0.00] Multipath route test # 3.31 [+1.35] Start point # 3.37 [+0.06] TEST: IPv4 fibmatch [ OK ] # 3.44 [+0.07] TEST: IPv6 fibmatch [ OK ] # 3.56 [+0.13] One nexthop device deleted # 3.63 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 3.70 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 3.82 [+0.12] Second nexthop device deleted # 3.89 [+0.07] TEST: IPv6 - no route [ OK ] # 4.32 [+0.44] # 4.32 [+0.00] Single path, admin down # 5.26 [+0.94] Start point # 5.33 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.40 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.48 [+0.08] Route deleted on down # 5.55 [+0.07] TEST: IPv4 fibmatch [ OK ] # 5.62 [+0.07] TEST: IPv6 fibmatch [ OK ] # 5.98 [+0.36] # 5.98 [+0.00] Admin down multipath # 7.35 [+1.36] Verify start point # 7.41 [+0.07] TEST: IPv4 fibmatch [ OK ] # 7.49 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.56 [+0.07] One device down, one up # 7.63 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 7.70 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 7.77 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 7.83 [+0.06] TEST: IPv6 fibmatch on up device [ OK ] # 7.91 [+0.08] TEST: IPv4 flags on down device [ OK ] # 7.99 [+0.08] TEST: IPv6 flags on down device [ OK ] # 8.06 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.14 [+0.08] TEST: IPv6 flags on up device [ OK ] # 8.28 [+0.14] Other device down and up # 8.34 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.41 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 8.48 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.55 [+0.07] TEST: IPv6 fibmatch on up device [ OK ] # 8.63 [+0.07] TEST: IPv4 flags on down device [ OK ] # 8.71 [+0.08] TEST: IPv6 flags on down device [ OK ] # 8.78 [+0.07] TEST: IPv4 flags on up device [ OK ] # 8.85 [+0.07] TEST: IPv6 flags on up device [ OK ] # 8.92 [+0.07] Both devices down # 8.99 [+0.07] TEST: IPv4 fibmatch [ OK ] # 9.06 [+0.07] TEST: IPv6 fibmatch [ OK ] # 9.55 [+0.50] # 9.55 [+0.00] Local carrier tests - single path # 10.56 [+1.01] Start point # 10.63 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.70 [+0.07] TEST: IPv6 fibmatch [ OK ] # 10.77 [+0.06] TEST: IPv4 - no linkdown flag [ OK ] # 10.84 [+0.07] TEST: IPv6 - no linkdown flag [ OK ] # 11.95 [+1.12] Carrier off on nexthop # 12.03 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.10 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.17 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 12.24 [+0.07] TEST: IPv6 - linkdown flag set [ OK ] # 12.38 [+0.14] Route to local address with carrier down # 12.45 [+0.07] TEST: IPv4 fibmatch [ OK ] # 12.52 [+0.07] TEST: IPv6 fibmatch [ OK ] # 12.59 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 12.66 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 13.04 [+0.38] # 13.04 [+0.00] Single path route carrier test # 14.06 [+1.02] Start point # 14.13 [+0.07] TEST: IPv4 fibmatch [ OK ] # 14.19 [+0.06] TEST: IPv6 fibmatch [ OK ] # 14.26 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 14.34 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 15.45 [+1.11] Carrier down # 15.53 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.59 [+0.06] TEST: IPv6 fibmatch [ OK ] # 15.66 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.73 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 15.87 [+0.14] Second address added with carrier down # 15.94 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.01 [+0.07] TEST: IPv6 fibmatch [ OK ] # 16.08 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 16.15 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 19.82 [+3.67] # 19.82 [+0.00] IPv4 nexthop tests # 19.82 [+0.00] <<< write me >>> # 20.01 [+0.19] # 20.01 [+0.00] IPv6 nexthop tests # 20.08 [+0.07] TEST: Directly connected nexthop, unicast address [ OK ] # 20.16 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 20.24 [+0.08] TEST: Gateway is linklocal address [ OK ] # 20.32 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 20.40 [+0.08] TEST: Gateway can not be local unicast address [ OK ] # 20.48 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 20.55 [+0.07] TEST: Gateway can not be a local linklocal address [ OK ] # 20.64 [+0.08] TEST: Gateway can be local address in a VRF [ OK ] # 20.71 [+0.08] TEST: Gateway can be local address in a VRF, with device [ OK ] # 20.80 [+0.08] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 20.88 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 20.96 [+0.08] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 21.04 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 21.11 [+0.07] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 21.98 [+0.87] # 21.98 [+0.00] FIB rule with suppress_prefixlength # 23.47 [+1.49] TEST: FIB rule suppress test [ OK ] # 24.81 [+1.34] # 24.81 [+0.00] Fib6 info length calculation in route notify test # 28.47 [+3.67] TEST: ipv6 route add notify [ OK ] # 29.81 [+1.34] # 29.81 [+0.00] Fib4 info length calculation in route notify test # 33.43 [+3.62] TEST: ipv4 route add notify [ OK ] # 37.04 [+3.61] # 37.04 [+0.00] IPv6 route add / append tests # 37.34 [+0.30] TEST: Attempt to add duplicate route - gw [ OK ] # 37.65 [+0.31] TEST: Attempt to add duplicate route - dev only [ OK ] # 37.94 [+0.29] TEST: Attempt to add duplicate route - reject route [ OK ] # 38.33 [+0.40] TEST: Append nexthop to existing route - gw [ OK ] # 38.65 [+0.32] TEST: Add multipath route [ OK ] # 38.95 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 39.32 [+0.37] TEST: Route add with different metrics [ OK ] # 39.49 [+0.17] TEST: Route delete with metric [ OK ] # 39.50 [+0.00] # 39.50 [+0.00] IPv6 route replace tests # 39.89 [+0.39] TEST: Single path with single path [ OK ] # 40.28 [+0.39] TEST: Single path with multipath [ OK ] # 40.67 [+0.39] TEST: Single path with single path via multipath attribute [ OK ] # 41.05 [+0.38] TEST: Invalid nexthop [ OK ] # 41.36 [+0.31] TEST: Single path - replace of non-existent route [ OK ] # 41.75 [+0.39] TEST: Multipath with multipath [ OK ] # 42.12 [+0.37] TEST: Multipath with single path [ OK ] # 42.49 [+0.38] TEST: Multipath with single path via multipath attribute [ OK ] # 42.86 [+0.37] TEST: Multipath with dev-only [ OK ] # 43.27 [+0.41] TEST: Multipath - invalid first nexthop [ OK ] # 43.65 [+0.38] TEST: Multipath - invalid second nexthop [ OK ] # 43.95 [+0.30] TEST: Multipath - replace of non-existent route [ OK ] # 43.95 [+0.00] # 43.95 [+0.00] IPv6 route with dsfield tests # 44.09 [+0.14] TEST: Reject route with dsfield [ OK ] # 49.16 [+5.07] # 49.16 [+0.00] IPv4 route add / append tests # 49.44 [+0.28] TEST: Attempt to add duplicate route - gw [ OK ] # 49.74 [+0.30] TEST: Attempt to add duplicate route - dev only [ OK ] # 50.02 [+0.28] TEST: Attempt to add duplicate route - reject route [ OK ] # 50.38 [+0.36] TEST: Add new nexthop for existing prefix [ OK ] # 50.75 [+0.37] TEST: Append nexthop to existing route - gw [ OK ] # 51.11 [+0.36] TEST: Append nexthop to existing route - dev only [ OK ] # 51.48 [+0.37] TEST: Append nexthop to existing route - reject route [ OK ] # 51.79 [+0.30] TEST: Append nexthop to existing reject route - gw [ OK ] # 52.09 [+0.30] TEST: Append nexthop to existing reject route - dev only [ OK ] # 52.38 [+0.30] TEST: add multipath route [ OK ] # 52.68 [+0.29] TEST: Attempt to add duplicate multipath route [ OK ] # 53.03 [+0.36] TEST: Route add with different metrics [ OK ] # 53.19 [+0.15] TEST: Route delete with metric [ OK ] # 53.19 [+0.00] # 53.19 [+0.00] IPv4 route replace tests # 53.56 [+0.36] TEST: Single path with single path [ OK ] # 53.93 [+0.37] TEST: Single path with multipath [ OK ] # 54.30 [+0.37] TEST: Single path with reject route [ OK ] # 54.65 [+0.36] TEST: Single path with single path via multipath attribute [ OK ] # 55.02 [+0.37] TEST: Invalid nexthop [ OK ] # 55.30 [+0.28] TEST: Single path - replace of non-existent route [ OK ] # 55.69 [+0.39] TEST: Multipath with multipath [ OK ] # 56.05 [+0.36] TEST: Multipath with single path [ OK ] # 56.41 [+0.36] TEST: Multipath with single path via multipath attribute [ OK ] # 56.76 [+0.35] TEST: Multipath with reject route [ OK ] # 57.12 [+0.37] TEST: Multipath - invalid first nexthop [ OK ] # 57.49 [+0.37] TEST: Multipath - invalid second nexthop [ OK ] # 57.78 [+0.29] TEST: Multipath - replace of non-existent route [ OK ] # 58.96 [+1.18] TEST: Cached route removed from VRF port device [ OK ] # 58.96 [+0.00] # 58.96 [+0.00] IPv4 route with dsfield tests # 59.12 [+0.15] TEST: Reject route with dsfield 0x01 [ OK ] # 59.19 [+0.07] TEST: Reject route with dsfield 0x02 [ OK ] # 59.27 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 59.48 [+0.21] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 59.55 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 59.62 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 59.70 [+0.07] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 59.78 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 59.87 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 59.93 [+0.06] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 60.00 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 60.07 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 60.14 [+0.06] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 60.21 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 60.27 [+0.06] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 61.79 [+1.52] # 61.79 [+0.00] IPv6 prefix route tests # 63.36 [+1.57] TEST: Default metric [ OK ] # 63.60 [+0.25] TEST: User specified metric on first device [ OK ] # 63.84 [+0.24] TEST: User specified metric on second device [ OK ] # 64.00 [+0.15] TEST: Delete of address on first device [ OK ] # 64.15 [+0.16] TEST: Modify metric of address [ OK ] # 64.40 [+0.24] TEST: Prefix route removed on link down [ OK ] # 64.56 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 64.81 [+0.25] TEST: Set metric with peer route on local side [ OK ] # 64.88 [+0.08] TEST: Set metric with peer route on peer side [ OK ] # 65.05 [+0.16] TEST: Modify metric and peer address on local side [ OK ] # 65.13 [+0.08] TEST: Modify metric and peer address on peer side [ OK ] # 65.99 [+0.86] # 65.99 [+0.00] IPv4 prefix route tests # 67.50 [+1.51] TEST: Default metric [ OK ] # 67.73 [+0.23] TEST: User specified metric on first device [ OK ] # 67.97 [+0.24] TEST: User specified metric on second device [ OK ] # 68.13 [+0.15] TEST: Delete of address on first device [ OK ] # 68.28 [+0.15] TEST: Modify metric of address [ OK ] # 68.42 [+0.14] TEST: Prefix route removed on link down [ OK ] # 68.58 [+0.16] TEST: Prefix route with metric on link up [ OK ] # 68.88 [+0.30] TEST: Modify metric of .0/24 address [ OK ] # 69.12 [+0.23] TEST: Set metric of address with peer route [ OK ] # 69.27 [+0.15] TEST: Modify metric and peer address for peer route [ OK ] # 70.11 [+0.84] # 70.11 [+0.00] IPv6 routes with metrics # 73.84 [+3.73] TEST: Single path route with mtu metric [ OK ] # 74.08 [+0.25] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 74.33 [+0.24] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 74.47 [+0.15] TEST: MTU of second leg [ OK ] # 74.65 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 74.84 [+0.19] TEST: Using route with mtu metric [ OK ] # 74.98 [+0.14] TEST: Invalid metric (fails metric_convert) [ OK ] # 76.38 [+1.40] # 76.38 [+0.00] IPv4 route add / append tests # 80.08 [+3.70] TEST: Single path route with mtu metric [ OK ] # 80.23 [+0.15] TEST: Multipath route with mtu metric [ OK ] # 80.41 [+0.18] TEST: Using route with mtu metric [ OK ] # 80.54 [+0.13] TEST: Invalid metric (fails metric_convert) [ OK ] # 81.98 [+1.44] # 81.98 [+0.00] IPv4 route with IPv6 gateway tests # 87.68 [+5.70] TEST: Single path route with IPv6 gateway [ OK ] # 87.88 [+0.20] TEST: Single path route with IPv6 gateway - ping [ OK ] # 87.96 [+0.08] TEST: Single path route delete [ OK ] # 88.12 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 88.26 [+0.14] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 88.33 [+0.07] TEST: Multipath route delete exact match [ OK ] # 88.41 [+0.07] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 88.56 [+0.16] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 88.64 [+0.08] TEST: Multipath route delete exact match [ OK ] # 90.15 [+1.50] # 90.15 [+0.00] IPv4 rp_filter tests # 95.01 [+4.86] TEST: rp_filter passes local packets [ OK ] # 95.14 [+0.13] TEST: rp_filter passes loopback packets [ OK ] # 95.78 [+0.65] # 95.78 [+0.00] IPv4 delete address route tests # 98.14 [+2.35] Regular FIB info # 98.28 [+0.14] TEST: Route removed from VRF when source address deleted [ OK ] # 98.35 [+0.07] TEST: Route in default VRF not removed [ OK ] # 98.62 [+0.27] TEST: Route removed in default VRF when source address deleted [ OK ] # 98.68 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 98.69 [+0.00] Identical FIB info with different table ID # 98.84 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 98.91 [+0.06] TEST: Route in default VRF not removed [ OK ] # 99.20 [+0.29] TEST: Route removed in default VRF when source address deleted [ OK ] # 99.26 [+0.06] TEST: Route in VRF is not removed by address delete [ OK ] # 99.26 [+0.00] Table ID 0 # 99.40 [+0.13] TEST: Route removed in default VRF when source address deleted [ OK ] # 100.26 [+0.87] # 100.26 [+0.00] IPv6 delete address route tests # 104.18 [+3.91] Single device using src address # 104.34 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 104.34 [+0.00] Two devices with the same source address # 104.49 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 104.63 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 104.63 [+0.00] VRF with single device using src address # 104.77 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 104.77 [+0.00] VRF with two devices using src address # 104.91 [+0.13] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 105.07 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 105.08 [+0.00] src address and nexthop dev in same VRF # 105.21 [+0.13] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 105.29 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 105.56 [+0.28] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 105.64 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 105.64 [+0.00] src address and nexthop device in different VRF # 105.78 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 105.86 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 106.07 [+0.20] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 106.15 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 106.15 [+0.00] Table ID 0 # 106.28 [+0.13] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 106.28 [+0.00] Link local source route # 106.44 [+0.15] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 106.57 [+0.14] TEST: Prefsrc removed when delete ll addr [ OK ] # 106.66 [+0.08] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 106.87 [+0.21] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 108.15 [+1.28] # 108.15 [+0.00] IPv4 mangling tests # 114.84 [+6.69] TEST: Connection with correct parameters [ OK ] # 114.97 [+0.14] TEST: Connection with incorrect parameters [ OK ] # 115.83 [+0.86] TEST: Connection with correct parameters - mangling [ OK ] # 116.64 [+0.81] TEST: Connection with correct parameters - no mangling [ OK ] # 116.69 [+0.05] TEST: Connection check - server side [ OK ] # 118.41 [+1.72] # 118.41 [+0.00] IPv6 mangling tests # 125.12 [+6.71] TEST: Connection with correct parameters [ OK ] # 125.28 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 126.08 [+0.80] TEST: Connection with correct parameters - mangling [ OK ] # 126.89 [+0.81] TEST: Connection with correct parameters - no mangling [ OK ] # 126.95 [+0.06] TEST: Connection check - server side [ OK ] # 128.66 [+1.71] # 128.66 [+0.00] IPv4 broadcast neighbour tests # 130.49 [+1.82] TEST: Resolved neighbour for broadcast address [ OK ] # 130.57 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 130.65 [+0.08] TEST: Unresolved neighbour for broadcast address [ OK ] # 130.72 [+0.07] TEST: Unresolved neighbour for network broadcast address [ OK ] # 132.27 [+1.55] # 132.27 [+0.00] Fib6 garbage collection test # 145.29 [+13.02] TEST: ipv6 route garbage collection [ OK ] # 158.49 [+13.20] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 171.69 [+13.20] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 185.02 [+13.33] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 199.12 [+14.11] TEST: ipv6 route garbage collection (RA message) [ OK ] # 199.86 [+0.74] # 199.86 [+0.00] IPv4 multipath list receive tests # 212.51 [+12.65] TEST: Multipath route hit ratio (1.00) [ OK ] # 214.11 [+1.60] # 214.11 [+0.00] IPv6 multipath list receive tests # 225.80 [+11.69] TEST: Multipath route hit ratio (1.00) [ OK ] # 227.29 [+1.50] # 227.29 [+0.00] Tests passed: 229 # 227.29 [+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__->