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.46 [+0.98] Start point # 1.55 [+0.09] TEST: IPv4 fibmatch [ OK ] # 1.66 [+0.11] TEST: IPv6 fibmatch [ OK ] # 1.81 [+0.15] Nexthop device deleted # 1.92 [+0.10] TEST: IPv4 fibmatch - no route [ OK ] # 2.01 [+0.09] TEST: IPv6 fibmatch - no route [ OK ] # 2.60 [+0.59] # 2.60 [+0.00] Multipath route test # 4.30 [+1.71] Start point # 4.39 [+0.08] TEST: IPv4 fibmatch [ OK ] # 4.51 [+0.12] TEST: IPv6 fibmatch [ OK ] # 4.64 [+0.12] One nexthop device deleted # 4.73 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.81 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.92 [+0.11] Second nexthop device deleted # 5.01 [+0.08] TEST: IPv6 - no route [ OK ] # 5.54 [+0.54] # 5.54 [+0.00] Single path, admin down # 6.74 [+1.20] Start point # 6.82 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.93 [+0.11] TEST: IPv6 fibmatch [ OK ] # 7.02 [+0.09] Route deleted on down # 7.12 [+0.09] TEST: IPv4 fibmatch [ OK ] # 7.18 [+0.07] TEST: IPv6 fibmatch [ OK ] # 7.66 [+0.48] # 7.66 [+0.00] Admin down multipath # 9.35 [+1.69] Verify start point # 9.44 [+0.10] TEST: IPv4 fibmatch [ OK ] # 9.52 [+0.08] TEST: IPv6 fibmatch [ OK ] # 9.62 [+0.10] One device down, one up # 9.70 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.79 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 9.89 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 9.99 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.08 [+0.10] TEST: IPv4 flags on down device [ OK ] # 10.18 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.27 [+0.09] TEST: IPv4 flags on up device [ OK ] # 10.40 [+0.13] TEST: IPv6 flags on up device [ OK ] # 10.56 [+0.16] Other device down and up # 10.65 [+0.09] TEST: IPv4 fibmatch on down device [ OK ] # 10.73 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 10.82 [+0.09] TEST: IPv4 fibmatch on up device [ OK ] # 10.90 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 10.98 [+0.08] TEST: IPv4 flags on down device [ OK ] # 11.10 [+0.12] TEST: IPv6 flags on down device [ OK ] # 11.20 [+0.10] TEST: IPv4 flags on up device [ OK ] # 11.28 [+0.09] TEST: IPv6 flags on up device [ OK ] # 11.37 [+0.09] Both devices down # 11.45 [+0.08] TEST: IPv4 fibmatch [ OK ] # 11.56 [+0.11] TEST: IPv6 fibmatch [ OK ] # 12.13 [+0.57] # 12.13 [+0.00] Local carrier tests - single path # 13.34 [+1.21] Start point # 13.43 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.51 [+0.08] TEST: IPv6 fibmatch [ OK ] # 13.60 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 13.68 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 14.82 [+1.14] Carrier off on nexthop # 14.91 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.99 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.06 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 15.16 [+0.11] TEST: IPv6 - linkdown flag set [ OK ] # 15.33 [+0.17] Route to local address with carrier down # 15.41 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.50 [+0.09] TEST: IPv6 fibmatch [ OK ] # 15.57 [+0.07] TEST: IPv4 linkdown flag set [ OK ] # 15.65 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 16.09 [+0.44] # 16.09 [+0.00] Single path route carrier test # 17.35 [+1.25] Start point # 17.43 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.51 [+0.07] TEST: IPv6 fibmatch [ OK ] # 17.60 [+0.09] TEST: IPv4 no linkdown flag [ OK ] # 17.67 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 18.81 [+1.14] Carrier down # 18.89 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.98 [+0.08] TEST: IPv6 fibmatch [ OK ] # 19.07 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 19.16 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 19.33 [+0.17] Second address added with carrier down # 19.44 [+0.11] TEST: IPv4 fibmatch [ OK ] # 19.53 [+0.09] TEST: IPv6 fibmatch [ OK ] # 19.62 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 19.70 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 23.94 [+4.24] # 23.94 [+0.00] IPv4 nexthop tests # 23.94 [+0.00] <<< write me >>> # 24.18 [+0.24] # 24.18 [+0.00] IPv6 nexthop tests # 24.27 [+0.09] TEST: Directly connected nexthop, unicast address [ OK ] # 24.37 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 24.46 [+0.09] TEST: Gateway is linklocal address [ OK ] # 24.56 [+0.10] TEST: Gateway is linklocal address, no device [ OK ] # 24.65 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 24.75 [+0.10] TEST: Gateway can not be local unicast address, with device [ OK ] # 24.84 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 24.93 [+0.09] TEST: Gateway can be local address in a VRF [ OK ] # 25.04 [+0.11] TEST: Gateway can be local address in a VRF, with device [ OK ] # 25.14 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 25.23 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 25.32 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 25.41 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 25.50 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 26.52 [+1.01] # 26.52 [+0.00] FIB rule with suppress_prefixlength # 28.27 [+1.75] TEST: FIB rule suppress test [ OK ] # 29.88 [+1.61] # 29.89 [+0.00] Fib6 info length calculation in route notify test # 33.87 [+3.99] TEST: ipv6 route add notify [ OK ] # 35.48 [+1.60] # 35.48 [+0.00] Fib4 info length calculation in route notify test # 39.48 [+4.01] TEST: ipv4 route add notify [ OK ] # 43.90 [+4.42] # 43.90 [+0.00] IPv6 route add / append tests # 44.26 [+0.36] TEST: Attempt to add duplicate route - gw [ OK ] # 44.63 [+0.37] TEST: Attempt to add duplicate route - dev only [ OK ] # 44.99 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 45.45 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 45.83 [+0.38] TEST: Add multipath route [ OK ] # 46.18 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 46.64 [+0.46] TEST: Route add with different metrics [ OK ] # 46.85 [+0.21] TEST: Route delete with metric [ OK ] # 46.85 [+0.00] # 46.85 [+0.00] IPv6 route replace tests # 47.30 [+0.46] TEST: Single path with single path [ OK ] # 47.76 [+0.46] TEST: Single path with multipath [ OK ] # 48.21 [+0.45] TEST: Single path with single path via multipath attribute [ OK ] # 48.67 [+0.45] TEST: Invalid nexthop [ OK ] # 49.05 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 49.57 [+0.52] TEST: Multipath with multipath [ OK ] # 50.07 [+0.50] TEST: Multipath with single path [ OK ] # 50.55 [+0.48] TEST: Multipath with single path via multipath attribute [ OK ] # 51.01 [+0.46] TEST: Multipath with dev-only [ OK ] # 51.50 [+0.49] TEST: Multipath - invalid first nexthop [ OK ] # 51.97 [+0.47] TEST: Multipath - invalid second nexthop [ OK ] # 52.32 [+0.35] TEST: Multipath - replace of non-existent route [ OK ] # 52.33 [+0.00] # 52.33 [+0.00] IPv6 route with dsfield tests # 52.51 [+0.18] TEST: Reject route with dsfield [ OK ] # 58.92 [+6.42] # 58.93 [+0.00] IPv4 route add / append tests # 59.31 [+0.38] TEST: Attempt to add duplicate route - gw [ OK ] # 59.69 [+0.38] TEST: Attempt to add duplicate route - dev only [ OK ] # 60.05 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 60.54 [+0.48] TEST: Add new nexthop for existing prefix [ OK ] # 60.99 [+0.46] TEST: Append nexthop to existing route - gw [ OK ] # 61.46 [+0.47] TEST: Append nexthop to existing route - dev only [ OK ] # 61.97 [+0.51] TEST: Append nexthop to existing route - reject route [ OK ] # 62.33 [+0.36] TEST: Append nexthop to existing reject route - gw [ OK ] # 62.72 [+0.38] TEST: Append nexthop to existing reject route - dev only [ OK ] # 63.11 [+0.39] TEST: add multipath route [ OK ] # 63.49 [+0.39] TEST: Attempt to add duplicate multipath route [ OK ] # 63.98 [+0.49] TEST: Route add with different metrics [ OK ] # 64.17 [+0.19] TEST: Route delete with metric [ OK ] # 64.17 [+0.00] # 64.17 [+0.00] IPv4 route replace tests # 64.66 [+0.49] TEST: Single path with single path [ OK ] # 65.13 [+0.47] TEST: Single path with multipath [ OK ] # 65.62 [+0.49] TEST: Single path with reject route [ OK ] # 66.08 [+0.47] TEST: Single path with single path via multipath attribute [ OK ] # 66.55 [+0.47] TEST: Invalid nexthop [ OK ] # 66.93 [+0.37] TEST: Single path - replace of non-existent route [ OK ] # 67.38 [+0.46] TEST: Multipath with multipath [ OK ] # 67.83 [+0.45] TEST: Multipath with single path [ OK ] # 68.28 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 68.76 [+0.48] TEST: Multipath with reject route [ OK ] # 69.23 [+0.47] TEST: Multipath - invalid first nexthop [ OK ] # 69.72 [+0.48] TEST: Multipath - invalid second nexthop [ OK ] # 70.09 [+0.37] TEST: Multipath - replace of non-existent route [ OK ] # 71.59 [+1.50] TEST: Cached route removed from VRF port device [ OK ] # 71.59 [+0.00] # 71.59 [+0.00] IPv4 route with dsfield tests # 71.80 [+0.20] TEST: Reject route with dsfield 0x01 [ OK ] # 71.90 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 71.99 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 72.26 [+0.27] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 72.35 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 72.43 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 72.52 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 72.61 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 72.68 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 72.78 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 72.87 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 72.95 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 73.05 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 73.15 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 73.24 [+0.09] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 75.02 [+1.78] # 75.02 [+0.00] IPv6 prefix route tests # 77.07 [+2.05] TEST: Default metric [ OK ] # 77.37 [+0.31] TEST: User specified metric on first device [ OK ] # 77.70 [+0.32] TEST: User specified metric on second device [ OK ] # 77.89 [+0.19] TEST: Delete of address on first device [ OK ] # 78.08 [+0.19] TEST: Modify metric of address [ OK ] # 78.39 [+0.31] TEST: Prefix route removed on link down [ OK ] # 78.58 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 78.87 [+0.30] TEST: Set metric with peer route on local side [ OK ] # 78.99 [+0.12] TEST: Set metric with peer route on peer side [ OK ] # 79.19 [+0.20] TEST: Modify metric and peer address on local side [ OK ] # 79.29 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 80.33 [+1.03] # 80.33 [+0.00] IPv4 prefix route tests # 82.31 [+1.98] TEST: Default metric [ OK ] # 82.63 [+0.32] TEST: User specified metric on first device [ OK ] # 82.93 [+0.29] TEST: User specified metric on second device [ OK ] # 83.11 [+0.18] TEST: Delete of address on first device [ OK ] # 83.32 [+0.21] TEST: Modify metric of address [ OK ] # 83.50 [+0.18] TEST: Prefix route removed on link down [ OK ] # 83.70 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 84.08 [+0.38] TEST: Modify metric of .0/24 address [ OK ] # 84.36 [+0.28] TEST: Set metric of address with peer route [ OK ] # 84.55 [+0.19] TEST: Modify metric and peer address for peer route [ OK ] # 85.57 [+1.02] # 85.57 [+0.00] IPv6 routes with metrics # 90.43 [+4.86] TEST: Single path route with mtu metric [ OK ] # 90.74 [+0.31] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 91.08 [+0.34] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 91.27 [+0.19] TEST: MTU of second leg [ OK ] # 91.47 [+0.20] TEST: Multipath route with mtu metric [ OK ] # 91.69 [+0.22] TEST: Using route with mtu metric [ OK ] # 91.87 [+0.18] TEST: Invalid metric (fails metric_convert) [ OK ] # 93.68 [+1.81] # 93.68 [+0.00] IPv4 route add / append tests # 98.27 [+4.59] TEST: Single path route with mtu metric [ OK ] # 98.46 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 98.69 [+0.23] TEST: Using route with mtu metric [ OK ] # 98.85 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 100.54 [+1.69] # 100.54 [+0.00] IPv4 route with IPv6 gateway tests # 107.02 [+6.48] TEST: Single path route with IPv6 gateway [ OK ] # 107.26 [+0.24] TEST: Single path route with IPv6 gateway - ping [ OK ] # 107.35 [+0.09] TEST: Single path route delete [ OK ] # 107.52 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 107.72 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 107.81 [+0.10] TEST: Multipath route delete exact match [ OK ] # 107.90 [+0.09] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 108.10 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 108.19 [+0.09] TEST: Multipath route delete exact match [ OK ] # 109.94 [+1.76] # 109.95 [+0.00] IPv4 rp_filter tests # 115.99 [+6.05] TEST: rp_filter passes local packets [ OK ] # 116.14 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 116.91 [+0.78] # 116.92 [+0.00] IPv4 delete address route tests # 119.71 [+2.80] Regular FIB info # 119.88 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 119.97 [+0.09] TEST: Route in default VRF not removed [ OK ] # 120.29 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 120.38 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 120.38 [+0.00] Identical FIB info with different table ID # 120.55 [+0.17] TEST: Route removed from VRF when source address deleted [ OK ] # 120.64 [+0.09] TEST: Route in default VRF not removed [ OK ] # 120.97 [+0.33] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.06 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 121.06 [+0.00] Table ID 0 # 121.21 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.22 [+1.01] # 122.22 [+0.00] IPv6 delete address route tests # 126.93 [+4.71] Single device using src address # 127.09 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.09 [+0.00] Two devices with the same source address # 127.27 [+0.18] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.45 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.45 [+0.00] VRF with single device using src address # 127.62 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 127.63 [+0.00] VRF with two devices using src address # 127.78 [+0.15] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 127.95 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 127.95 [+0.00] src address and nexthop dev in same VRF # 128.11 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 128.21 [+0.10] TEST: Prefsrc in default VRF not removed [ OK ] # 128.54 [+0.33] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 128.62 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 128.62 [+0.00] src address and nexthop device in different VRF # 128.81 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 128.91 [+0.10] TEST: Prefsrc not removed in default VRF [ OK ] # 129.16 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 129.25 [+0.09] TEST: Prefsrc removed in default VRF [ OK ] # 129.25 [+0.00] Table ID 0 # 129.42 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 129.42 [+0.00] Link local source route # 129.59 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 129.75 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 129.83 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 130.08 [+0.25] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 131.61 [+1.53] # 131.61 [+0.00] IPv4 mangling tests # 139.32 [+7.72] TEST: Connection with correct parameters [ OK ] # 139.52 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 140.58 [+1.06] TEST: Connection with correct parameters - mangling [ OK ] # 141.44 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 141.50 [+0.07] TEST: Connection check - server side [ OK ] # 143.47 [+1.97] # 143.47 [+0.00] IPv6 mangling tests # 151.02 [+7.55] TEST: Connection with correct parameters [ OK ] # 151.23 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 152.10 [+0.87] TEST: Connection with correct parameters - mangling [ OK ] # 153.03 [+0.93] TEST: Connection with correct parameters - no mangling [ OK ] # 153.08 [+0.05] TEST: Connection check - server side [ OK ] # 155.12 [+2.05] # 155.12 [+0.00] IPv4 broadcast neighbour tests # 157.94 [+2.82] TEST: Resolved neighbour for broadcast address [ OK ] # 158.04 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 158.13 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 158.24 [+0.11] TEST: Unresolved neighbour for network broadcast address [ OK ] # 160.16 [+1.92] # 160.16 [+0.00] Fib6 garbage collection test # 173.82 [+13.66] TEST: ipv6 route garbage collection [ OK ] # 187.86 [+14.03] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 202.00 [+14.15] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 215.71 [+13.71] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 230.00 [+14.29] TEST: ipv6 route garbage collection (RA message) [ OK ] # 230.74 [+0.73] # 230.74 [+0.00] IPv4 multipath list receive tests # 247.32 [+16.58] TEST: Multipath route hit ratio (1.00) [ OK ] # 249.13 [+1.81] # 249.13 [+0.00] IPv6 multipath list receive tests # 266.50 [+17.37] TEST: Multipath route hit ratio (1.00) [ OK ] # 268.32 [+1.82] # 268.32 [+0.00] Tests passed: 229 # 268.32 [+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__->