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.48 [+0.48] # 0.48 [+0.00] Single path route test # 1.55 [+1.07] Start point # 1.64 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.74 [+0.10] TEST: IPv6 fibmatch [ OK ] # 1.87 [+0.14] Nexthop device deleted # 1.97 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.06 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.68 [+0.63] # 2.69 [+0.00] Multipath route test # 4.71 [+2.02] Start point # 4.79 [+0.09] TEST: IPv4 fibmatch [ OK ] # 4.88 [+0.09] TEST: IPv6 fibmatch [ OK ] # 5.02 [+0.14] One nexthop device deleted # 5.12 [+0.09] TEST: IPv4 - multipath route removed on delete [ OK ] # 5.25 [+0.13] TEST: IPv6 - multipath down to single path [ OK ] # 5.36 [+0.11] Second nexthop device deleted # 5.45 [+0.09] TEST: IPv6 - no route [ OK ] # 6.05 [+0.60] # 6.05 [+0.00] Single path, admin down # 7.27 [+1.22] Start point # 7.35 [+0.08] TEST: IPv4 fibmatch [ OK ] # 7.45 [+0.10] TEST: IPv6 fibmatch [ OK ] # 7.53 [+0.08] Route deleted on down # 7.61 [+0.08] TEST: IPv4 fibmatch [ OK ] # 7.70 [+0.09] TEST: IPv6 fibmatch [ OK ] # 8.15 [+0.45] # 8.15 [+0.00] Admin down multipath # 9.84 [+1.69] Verify start point # 9.92 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.01 [+0.09] TEST: IPv6 fibmatch [ OK ] # 10.10 [+0.09] One device down, one up # 10.19 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.26 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.37 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 10.45 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.55 [+0.10] TEST: IPv4 flags on down device [ OK ] # 10.64 [+0.09] TEST: IPv6 flags on down device [ OK ] # 10.74 [+0.10] TEST: IPv4 flags on up device [ OK ] # 10.83 [+0.09] TEST: IPv6 flags on up device [ OK ] # 11.00 [+0.18] Other device down and up # 11.10 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 11.18 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 11.27 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 11.36 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 11.45 [+0.10] TEST: IPv4 flags on down device [ OK ] # 11.54 [+0.09] TEST: IPv6 flags on down device [ OK ] # 11.63 [+0.09] TEST: IPv4 flags on up device [ OK ] # 11.72 [+0.09] TEST: IPv6 flags on up device [ OK ] # 11.84 [+0.11] Both devices down # 11.92 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.06 [+0.13] TEST: IPv6 fibmatch [ OK ] # 12.63 [+0.58] # 12.63 [+0.00] Local carrier tests - single path # 13.90 [+1.26] Start point # 13.97 [+0.08] TEST: IPv4 fibmatch [ OK ] # 14.07 [+0.10] TEST: IPv6 fibmatch [ OK ] # 14.16 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 14.27 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 15.40 [+1.13] Carrier off on nexthop # 15.49 [+0.09] TEST: IPv4 fibmatch [ OK ] # 15.58 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.67 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 15.77 [+0.10] TEST: IPv6 - linkdown flag set [ OK ] # 15.93 [+0.16] Route to local address with carrier down # 16.02 [+0.09] TEST: IPv4 fibmatch [ OK ] # 16.12 [+0.10] TEST: IPv6 fibmatch [ OK ] # 16.21 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 16.30 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 16.76 [+0.46] # 16.76 [+0.00] Single path route carrier test # 17.99 [+1.23] Start point # 18.07 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.15 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.24 [+0.08] TEST: IPv4 no linkdown flag [ OK ] # 18.33 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 19.45 [+1.13] Carrier down # 19.55 [+0.10] TEST: IPv4 fibmatch [ OK ] # 19.63 [+0.07] TEST: IPv6 fibmatch [ OK ] # 19.71 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 19.81 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 19.97 [+0.16] Second address added with carrier down # 20.06 [+0.09] TEST: IPv4 fibmatch [ OK ] # 20.14 [+0.08] TEST: IPv6 fibmatch [ OK ] # 20.24 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 20.31 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 24.56 [+4.25] # 24.56 [+0.00] IPv4 nexthop tests # 24.56 [+0.00] <<< write me >>> # 24.78 [+0.22] # 24.78 [+0.00] IPv6 nexthop tests # 24.88 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 24.97 [+0.09] TEST: Directly connected nexthop, unicast address with device [ OK ] # 25.07 [+0.10] TEST: Gateway is linklocal address [ OK ] # 25.16 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 25.25 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 25.35 [+0.10] TEST: Gateway can not be local unicast address, with device [ OK ] # 25.45 [+0.10] TEST: Gateway can not be a local linklocal address [ OK ] # 25.55 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 25.65 [+0.10] TEST: Gateway can be local address in a VRF, with device [ OK ] # 25.74 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 25.84 [+0.10] TEST: Redirect to VRF lookup [ OK ] # 25.93 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 26.02 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 26.11 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 27.11 [+0.99] # 27.11 [+0.00] FIB rule with suppress_prefixlength # 28.83 [+1.72] TEST: FIB rule suppress test [ OK ] # 30.40 [+1.58] # 30.40 [+0.00] Fib6 info length calculation in route notify test # 34.34 [+3.94] TEST: ipv6 route add notify [ OK ] # 36.08 [+1.74] # 36.08 [+0.00] Fib4 info length calculation in route notify test # 40.20 [+4.12] TEST: ipv4 route add notify [ OK ] # 44.67 [+4.48] # 44.67 [+0.00] IPv6 route add / append tests # 45.02 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 45.39 [+0.37] TEST: Attempt to add duplicate route - dev only [ OK ] # 45.75 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 46.20 [+0.45] TEST: Append nexthop to existing route - gw [ OK ] # 46.59 [+0.39] TEST: Add multipath route [ OK ] # 46.94 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 47.39 [+0.45] TEST: Route add with different metrics [ OK ] # 47.60 [+0.21] TEST: Route delete with metric [ OK ] # 47.60 [+0.00] # 47.60 [+0.00] IPv6 route replace tests # 48.05 [+0.45] TEST: Single path with single path [ OK ] # 48.50 [+0.46] TEST: Single path with multipath [ OK ] # 48.95 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 49.39 [+0.44] TEST: Invalid nexthop [ OK ] # 49.76 [+0.37] TEST: Single path - replace of non-existent route [ OK ] # 50.24 [+0.48] TEST: Multipath with multipath [ OK ] # 50.70 [+0.46] TEST: Multipath with single path [ OK ] # 51.15 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 51.61 [+0.46] TEST: Multipath with dev-only [ OK ] # 52.07 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 52.54 [+0.47] TEST: Multipath - invalid second nexthop [ OK ] # 52.90 [+0.36] TEST: Multipath - replace of non-existent route [ OK ] # 52.90 [+0.00] # 52.90 [+0.00] IPv6 route with dsfield tests # 53.08 [+0.18] TEST: Reject route with dsfield [ OK ] # 59.13 [+6.05] # 59.13 [+0.00] IPv4 route add / append tests # 59.49 [+0.36] TEST: Attempt to add duplicate route - gw [ OK ] # 59.85 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 60.20 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 60.66 [+0.46] TEST: Add new nexthop for existing prefix [ OK ] # 61.11 [+0.45] TEST: Append nexthop to existing route - gw [ OK ] # 61.56 [+0.44] TEST: Append nexthop to existing route - dev only [ OK ] # 62.00 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 62.37 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 62.74 [+0.37] TEST: Append nexthop to existing reject route - dev only [ OK ] # 63.11 [+0.37] TEST: add multipath route [ OK ] # 63.47 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 63.91 [+0.44] TEST: Route add with different metrics [ OK ] # 64.09 [+0.19] TEST: Route delete with metric [ OK ] # 64.10 [+0.00] # 64.10 [+0.00] IPv4 route replace tests # 64.54 [+0.45] TEST: Single path with single path [ OK ] # 65.01 [+0.46] TEST: Single path with multipath [ OK ] # 65.47 [+0.46] TEST: Single path with reject route [ OK ] # 65.92 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 66.37 [+0.45] TEST: Invalid nexthop [ OK ] # 66.77 [+0.40] TEST: Single path - replace of non-existent route [ OK ] # 67.24 [+0.47] TEST: Multipath with multipath [ OK ] # 67.69 [+0.45] TEST: Multipath with single path [ OK ] # 68.15 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 68.61 [+0.46] TEST: Multipath with reject route [ OK ] # 69.07 [+0.46] TEST: Multipath - invalid first nexthop [ OK ] # 69.52 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 69.89 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 71.35 [+1.46] TEST: Cached route removed from VRF port device [ OK ] # 71.35 [+0.00] # 71.35 [+0.00] IPv4 route with dsfield tests # 71.53 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 71.63 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 71.72 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 71.99 [+0.28] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 72.08 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 72.17 [+0.10] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 72.25 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 72.34 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 72.43 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 72.51 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 72.59 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 72.68 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 72.76 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 72.84 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 72.94 [+0.11] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 74.75 [+1.80] # 74.75 [+0.00] IPv6 prefix route tests # 76.61 [+1.86] TEST: Default metric [ OK ] # 76.93 [+0.32] TEST: User specified metric on first device [ OK ] # 77.28 [+0.35] TEST: User specified metric on second device [ OK ] # 77.46 [+0.18] TEST: Delete of address on first device [ OK ] # 77.65 [+0.19] TEST: Modify metric of address [ OK ] # 77.96 [+0.31] TEST: Prefix route removed on link down [ OK ] # 78.15 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 78.44 [+0.29] TEST: Set metric with peer route on local side [ OK ] # 78.53 [+0.09] TEST: Set metric with peer route on peer side [ OK ] # 78.72 [+0.20] TEST: Modify metric and peer address on local side [ OK ] # 78.82 [+0.10] TEST: Modify metric and peer address on peer side [ OK ] # 79.81 [+0.99] # 79.81 [+0.00] IPv4 prefix route tests # 81.65 [+1.84] TEST: Default metric [ OK ] # 81.92 [+0.28] TEST: User specified metric on first device [ OK ] # 82.23 [+0.30] TEST: User specified metric on second device [ OK ] # 82.40 [+0.18] TEST: Delete of address on first device [ OK ] # 82.59 [+0.19] TEST: Modify metric of address [ OK ] # 82.77 [+0.17] TEST: Prefix route removed on link down [ OK ] # 82.96 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 83.33 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 83.60 [+0.27] TEST: Set metric of address with peer route [ OK ] # 83.80 [+0.19] TEST: Modify metric and peer address for peer route [ OK ] # 84.80 [+1.01] # 84.80 [+0.00] IPv6 routes with metrics # 89.30 [+4.50] TEST: Single path route with mtu metric [ OK ] # 89.61 [+0.31] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 89.92 [+0.30] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 90.12 [+0.20] TEST: MTU of second leg [ OK ] # 90.31 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 90.54 [+0.23] TEST: Using route with mtu metric [ OK ] # 90.70 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 92.43 [+1.73] # 92.43 [+0.00] IPv4 route add / append tests # 97.01 [+4.58] TEST: Single path route with mtu metric [ OK ] # 97.19 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 97.43 [+0.24] TEST: Using route with mtu metric [ OK ] # 97.60 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 99.34 [+1.74] # 99.34 [+0.00] IPv4 route with IPv6 gateway tests # 105.82 [+6.48] TEST: Single path route with IPv6 gateway [ OK ] # 106.05 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 106.14 [+0.08] TEST: Single path route delete [ OK ] # 106.31 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 106.49 [+0.17] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.58 [+0.10] TEST: Multipath route delete exact match [ OK ] # 106.68 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 106.87 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 106.95 [+0.08] TEST: Multipath route delete exact match [ OK ] # 108.64 [+1.69] # 108.64 [+0.00] IPv4 rp_filter tests # 114.42 [+5.78] TEST: rp_filter passes local packets [ OK ] # 114.56 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 115.36 [+0.80] # 115.36 [+0.00] IPv4 delete address route tests # 118.10 [+2.74] Regular FIB info # 118.28 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 118.36 [+0.08] TEST: Route in default VRF not removed [ OK ] # 118.69 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.77 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 118.77 [+0.00] Identical FIB info with different table ID # 118.94 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 119.01 [+0.07] TEST: Route in default VRF not removed [ OK ] # 119.36 [+0.35] TEST: Route removed in default VRF when source address deleted [ OK ] # 119.45 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 119.46 [+0.00] Table ID 0 # 119.62 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.61 [+0.99] # 120.61 [+0.00] IPv6 delete address route tests # 125.18 [+4.57] Single device using src address # 125.34 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.34 [+0.00] Two devices with the same source address # 125.51 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 125.67 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 125.67 [+0.00] VRF with single device using src address # 125.84 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 125.85 [+0.00] VRF with two devices using src address # 126.02 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 126.18 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 126.18 [+0.00] src address and nexthop dev in same VRF # 126.34 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 126.42 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 126.73 [+0.31] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 126.80 [+0.07] TEST: Prefsrc in default VRF removed [ OK ] # 126.80 [+0.00] src address and nexthop device in different VRF # 126.97 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 127.06 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 127.31 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 127.38 [+0.07] TEST: Prefsrc removed in default VRF [ OK ] # 127.38 [+0.00] Table ID 0 # 127.56 [+0.18] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 127.56 [+0.00] Link local source route # 127.73 [+0.17] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 127.88 [+0.15] TEST: Prefsrc removed when delete ll addr [ OK ] # 127.97 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 128.24 [+0.27] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 129.74 [+1.50] # 129.74 [+0.00] IPv4 mangling tests # 137.58 [+7.84] TEST: Connection with correct parameters [ OK ] # 137.90 [+0.31] TEST: Connection with incorrect parameters [ OK ] # 139.21 [+1.31] TEST: Connection with correct parameters - mangling [ OK ] # 140.23 [+1.02] TEST: Connection with correct parameters - no mangling [ OK ] # 140.34 [+0.11] TEST: Connection check - server side [ OK ] # 143.34 [+2.99] # 143.34 [+0.00] IPv6 mangling tests # 151.02 [+7.68] TEST: Connection with correct parameters [ OK ] # 151.22 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 152.09 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 153.09 [+1.00] TEST: Connection with correct parameters - no mangling [ OK ] # 153.19 [+0.10] TEST: Connection check - server side [ OK ] # 155.60 [+2.41] # 155.60 [+0.00] IPv4 broadcast neighbour tests # 157.82 [+2.22] TEST: Resolved neighbour for broadcast address [ OK ] # 157.92 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 158.04 [+0.12] TEST: Unresolved neighbour for broadcast address [ OK ] # 158.13 [+0.10] TEST: Unresolved neighbour for network broadcast address [ OK ] # 160.37 [+2.23] # 160.37 [+0.00] Fib6 garbage collection test # 173.75 [+13.39] TEST: ipv6 route garbage collection [ OK ] # 187.57 [+13.82] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 200.98 [+13.41] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 214.53 [+13.55] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 228.90 [+14.37] TEST: ipv6 route garbage collection (RA message) [ OK ] # 229.81 [+0.91] # 229.81 [+0.00] IPv4 multipath list receive tests # 245.21 [+15.40] TEST: Multipath route hit ratio (1.00) [ OK ] # 247.14 [+1.93] # 247.14 [+0.00] IPv6 multipath list receive tests # 261.23 [+14.09] TEST: Multipath route hit ratio (.99) [ OK ] # 263.22 [+1.99] # 263.22 [+0.00] Tests passed: 229 # 263.22 [+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__->