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.58 [+0.58] # 0.58 [+0.00] Single path route test # 1.77 [+1.19] Start point # 1.88 [+0.11] TEST: IPv4 fibmatch [ OK ] # 2.01 [+0.13] TEST: IPv6 fibmatch [ OK ] # 2.14 [+0.14] Nexthop device deleted # 2.25 [+0.11] TEST: IPv4 fibmatch - no route [ OK ] # 2.38 [+0.13] TEST: IPv6 fibmatch - no route [ OK ] # 3.32 [+0.94] # 3.32 [+0.00] Multipath route test # 5.63 [+2.31] Start point # 5.77 [+0.14] TEST: IPv4 fibmatch [ OK ] # 5.88 [+0.12] TEST: IPv6 fibmatch [ OK ] # 6.03 [+0.14] One nexthop device deleted # 6.13 [+0.10] TEST: IPv4 - multipath route removed on delete [ OK ] # 6.25 [+0.12] TEST: IPv6 - multipath down to single path [ OK ] # 6.41 [+0.16] Second nexthop device deleted # 6.51 [+0.10] TEST: IPv6 - no route [ OK ] # 7.19 [+0.68] # 7.19 [+0.00] Single path, admin down # 8.58 [+1.39] Start point # 8.69 [+0.11] TEST: IPv4 fibmatch [ OK ] # 8.80 [+0.11] TEST: IPv6 fibmatch [ OK ] # 8.90 [+0.10] Route deleted on down # 9.00 [+0.10] TEST: IPv4 fibmatch [ OK ] # 9.12 [+0.13] TEST: IPv6 fibmatch [ OK ] # 9.68 [+0.56] # 9.68 [+0.00] Admin down multipath # 11.72 [+2.04] Verify start point # 11.84 [+0.12] TEST: IPv4 fibmatch [ OK ] # 11.98 [+0.13] TEST: IPv6 fibmatch [ OK ] # 12.09 [+0.11] One device down, one up # 12.20 [+0.12] TEST: IPv4 fibmatch on down device [ OK ] # 12.32 [+0.12] TEST: IPv6 fibmatch on down device [ OK ] # 12.43 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 12.54 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 12.66 [+0.13] TEST: IPv4 flags on down device [ OK ] # 12.80 [+0.14] TEST: IPv6 flags on down device [ OK ] # 12.93 [+0.14] TEST: IPv4 flags on up device [ OK ] # 13.09 [+0.16] TEST: IPv6 flags on up device [ OK ] # 13.31 [+0.22] Other device down and up # 13.44 [+0.12] TEST: IPv4 fibmatch on down device [ OK ] # 13.53 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 13.64 [+0.12] TEST: IPv4 fibmatch on up device [ OK ] # 13.74 [+0.10] TEST: IPv6 fibmatch on up device [ OK ] # 13.86 [+0.12] TEST: IPv4 flags on down device [ OK ] # 13.97 [+0.12] TEST: IPv6 flags on down device [ OK ] # 14.10 [+0.12] TEST: IPv4 flags on up device [ OK ] # 14.23 [+0.13] TEST: IPv6 flags on up device [ OK ] # 14.34 [+0.11] Both devices down # 14.46 [+0.12] TEST: IPv4 fibmatch [ OK ] # 14.57 [+0.11] TEST: IPv6 fibmatch [ OK ] # 15.32 [+0.75] # 15.32 [+0.00] Local carrier tests - single path # 16.76 [+1.44] Start point # 16.86 [+0.10] TEST: IPv4 fibmatch [ OK ] # 16.96 [+0.10] TEST: IPv6 fibmatch [ OK ] # 17.12 [+0.16] TEST: IPv4 - no linkdown flag [ OK ] # 17.23 [+0.11] TEST: IPv6 - no linkdown flag [ OK ] # 18.43 [+1.19] Carrier off on nexthop # 18.52 [+0.10] TEST: IPv4 fibmatch [ OK ] # 18.63 [+0.11] TEST: IPv6 fibmatch [ OK ] # 18.72 [+0.09] TEST: IPv4 - linkdown flag set [ OK ] # 18.85 [+0.13] TEST: IPv6 - linkdown flag set [ OK ] # 19.07 [+0.22] Route to local address with carrier down # 19.19 [+0.12] TEST: IPv4 fibmatch [ OK ] # 19.30 [+0.10] TEST: IPv6 fibmatch [ OK ] # 19.42 [+0.13] TEST: IPv4 linkdown flag set [ OK ] # 19.55 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 20.05 [+0.50] # 20.05 [+0.00] Single path route carrier test # 21.47 [+1.42] Start point # 21.61 [+0.14] TEST: IPv4 fibmatch [ OK ] # 21.72 [+0.11] TEST: IPv6 fibmatch [ OK ] # 21.86 [+0.13] TEST: IPv4 no linkdown flag [ OK ] # 21.96 [+0.10] TEST: IPv6 no linkdown flag [ OK ] # 23.10 [+1.14] Carrier down # 23.22 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.32 [+0.10] TEST: IPv6 fibmatch [ OK ] # 23.40 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 23.50 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 23.69 [+0.20] Second address added with carrier down # 23.81 [+0.12] TEST: IPv4 fibmatch [ OK ] # 23.90 [+0.08] TEST: IPv6 fibmatch [ OK ] # 23.99 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 24.12 [+0.13] TEST: IPv6 linkdown flag set [ OK ] # 29.25 [+5.13] # 29.25 [+0.00] IPv4 nexthop tests # 29.25 [+0.00] <<< write me >>> # 29.56 [+0.31] # 29.56 [+0.00] IPv6 nexthop tests # 29.69 [+0.13] TEST: Directly connected nexthop, unicast address [ OK ] # 29.81 [+0.11] TEST: Directly connected nexthop, unicast address with device [ OK ] # 29.98 [+0.17] TEST: Gateway is linklocal address [ OK ] # 30.12 [+0.14] TEST: Gateway is linklocal address, no device [ OK ] # 30.23 [+0.11] TEST: Gateway can not be local unicast address [ OK ] # 30.36 [+0.13] TEST: Gateway can not be local unicast address, with device [ OK ] # 30.49 [+0.13] TEST: Gateway can not be a local linklocal address [ OK ] # 30.62 [+0.13] TEST: Gateway can be local address in a VRF [ OK ] # 30.75 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 30.89 [+0.15] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 31.05 [+0.16] TEST: Redirect to VRF lookup [ OK ] # 31.17 [+0.12] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 31.31 [+0.14] TEST: VRF route, gateway can not be a local address [ OK ] # 31.45 [+0.14] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 32.71 [+1.26] # 32.71 [+0.00] FIB rule with suppress_prefixlength # 35.00 [+2.29] TEST: FIB rule suppress test [ OK ] # 36.84 [+1.84] # 36.84 [+0.00] Fib6 info length calculation in route notify test # 40.90 [+4.07] TEST: ipv6 route add notify [ OK ] # 42.57 [+1.67] # 42.57 [+0.00] Fib4 info length calculation in route notify test # 46.60 [+4.03] TEST: ipv4 route add notify [ OK ] # 50.97 [+4.37] # 50.97 [+0.00] IPv6 route add / append tests # 51.33 [+0.36] TEST: Attempt to add duplicate route - gw [ OK ] # 51.69 [+0.36] TEST: Attempt to add duplicate route - dev only [ OK ] # 52.06 [+0.37] TEST: Attempt to add duplicate route - reject route [ OK ] # 52.57 [+0.51] TEST: Append nexthop to existing route - gw [ OK ] # 52.97 [+0.40] TEST: Add multipath route [ OK ] # 53.35 [+0.38] TEST: Attempt to add duplicate multipath route [ OK ] # 53.81 [+0.46] TEST: Route add with different metrics [ OK ] # 54.05 [+0.24] TEST: Route delete with metric [ OK ] # 54.05 [+0.00] # 54.05 [+0.00] IPv6 route replace tests # 54.52 [+0.47] TEST: Single path with single path [ OK ] # 55.01 [+0.48] TEST: Single path with multipath [ OK ] # 55.44 [+0.44] TEST: Single path with single path via multipath attribute [ OK ] # 55.90 [+0.46] TEST: Invalid nexthop [ OK ] # 56.25 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 56.71 [+0.46] TEST: Multipath with multipath [ OK ] # 57.18 [+0.47] TEST: Multipath with single path [ OK ] # 57.62 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 58.11 [+0.49] TEST: Multipath with dev-only [ OK ] # 58.58 [+0.47] TEST: Multipath - invalid first nexthop [ OK ] # 59.03 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 59.37 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 59.37 [+0.00] # 59.37 [+0.00] IPv6 route with dsfield tests # 59.57 [+0.20] TEST: Reject route with dsfield [ OK ] # 65.44 [+5.87] # 65.44 [+0.00] IPv4 route add / append tests # 65.79 [+0.35] TEST: Attempt to add duplicate route - gw [ OK ] # 66.14 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 66.48 [+0.34] TEST: Attempt to add duplicate route - reject route [ OK ] # 66.92 [+0.44] TEST: Add new nexthop for existing prefix [ OK ] # 67.35 [+0.43] TEST: Append nexthop to existing route - gw [ OK ] # 67.79 [+0.44] TEST: Append nexthop to existing route - dev only [ OK ] # 68.22 [+0.43] TEST: Append nexthop to existing route - reject route [ OK ] # 68.57 [+0.36] TEST: Append nexthop to existing reject route - gw [ OK ] # 68.93 [+0.36] TEST: Append nexthop to existing reject route - dev only [ OK ] # 69.28 [+0.35] TEST: add multipath route [ OK ] # 69.61 [+0.33] TEST: Attempt to add duplicate multipath route [ OK ] # 70.06 [+0.44] TEST: Route add with different metrics [ OK ] # 70.23 [+0.17] TEST: Route delete with metric [ OK ] # 70.23 [+0.00] # 70.23 [+0.00] IPv4 route replace tests # 70.66 [+0.43] TEST: Single path with single path [ OK ] # 71.10 [+0.43] TEST: Single path with multipath [ OK ] # 71.53 [+0.43] TEST: Single path with reject route [ OK ] # 71.95 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 72.38 [+0.43] TEST: Invalid nexthop [ OK ] # 72.72 [+0.34] TEST: Single path - replace of non-existent route [ OK ] # 73.15 [+0.43] TEST: Multipath with multipath [ OK ] # 73.57 [+0.42] TEST: Multipath with single path [ OK ] # 74.01 [+0.44] TEST: Multipath with single path via multipath attribute [ OK ] # 74.42 [+0.42] TEST: Multipath with reject route [ OK ] # 74.85 [+0.42] TEST: Multipath - invalid first nexthop [ OK ] # 75.28 [+0.43] TEST: Multipath - invalid second nexthop [ OK ] # 75.62 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 76.98 [+1.37] TEST: Cached route removed from VRF port device [ OK ] # 76.98 [+0.00] # 76.98 [+0.00] IPv4 route with dsfield tests # 77.16 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 77.25 [+0.08] TEST: Reject route with dsfield 0x02 [ OK ] # 77.33 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 77.58 [+0.24] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 77.65 [+0.07] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 77.73 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 77.81 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 77.89 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 77.96 [+0.07] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 78.04 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 78.13 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 78.19 [+0.07] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 78.27 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 78.34 [+0.07] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 78.42 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 80.05 [+1.63] # 80.05 [+0.00] IPv6 prefix route tests # 81.86 [+1.81] TEST: Default metric [ OK ] # 82.13 [+0.27] TEST: User specified metric on first device [ OK ] # 82.40 [+0.27] TEST: User specified metric on second device [ OK ] # 82.57 [+0.17] TEST: Delete of address on first device [ OK ] # 82.76 [+0.18] TEST: Modify metric of address [ OK ] # 83.04 [+0.29] TEST: Prefix route removed on link down [ OK ] # 83.22 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 83.51 [+0.28] TEST: Set metric with peer route on local side [ OK ] # 83.59 [+0.08] TEST: Set metric with peer route on peer side [ OK ] # 83.77 [+0.17] TEST: Modify metric and peer address on local side [ OK ] # 83.86 [+0.10] TEST: Modify metric and peer address on peer side [ OK ] # 84.81 [+0.94] # 84.81 [+0.00] IPv4 prefix route tests # 86.57 [+1.76] TEST: Default metric [ OK ] # 86.85 [+0.28] TEST: User specified metric on first device [ OK ] # 87.10 [+0.26] TEST: User specified metric on second device [ OK ] # 87.27 [+0.17] TEST: Delete of address on first device [ OK ] # 87.46 [+0.18] TEST: Modify metric of address [ OK ] # 87.61 [+0.16] TEST: Prefix route removed on link down [ OK ] # 87.79 [+0.18] TEST: Prefix route with metric on link up [ OK ] # 88.15 [+0.36] TEST: Modify metric of .0/24 address [ OK ] # 88.41 [+0.26] TEST: Set metric of address with peer route [ OK ] # 88.59 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 89.51 [+0.92] # 89.51 [+0.00] IPv6 routes with metrics # 93.84 [+4.33] TEST: Single path route with mtu metric [ OK ] # 94.12 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 94.40 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 94.58 [+0.18] TEST: MTU of second leg [ OK ] # 94.76 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 94.98 [+0.22] TEST: Using route with mtu metric [ OK ] # 95.14 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 96.79 [+1.65] # 96.79 [+0.00] IPv4 route add / append tests # 101.08 [+4.29] TEST: Single path route with mtu metric [ OK ] # 101.26 [+0.17] TEST: Multipath route with mtu metric [ OK ] # 101.48 [+0.22] TEST: Using route with mtu metric [ OK ] # 101.63 [+0.15] TEST: Invalid metric (fails metric_convert) [ OK ] # 103.26 [+1.63] # 103.26 [+0.00] IPv4 route with IPv6 gateway tests # 109.47 [+6.21] TEST: Single path route with IPv6 gateway [ OK ] # 109.69 [+0.23] TEST: Single path route with IPv6 gateway - ping [ OK ] # 109.77 [+0.08] TEST: Single path route delete [ OK ] # 109.94 [+0.16] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 110.12 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 110.20 [+0.09] TEST: Multipath route delete exact match [ OK ] # 110.29 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 110.49 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 110.58 [+0.09] TEST: Multipath route delete exact match [ OK ] # 112.20 [+1.62] # 112.20 [+0.00] IPv4 rp_filter tests # 117.82 [+5.63] TEST: rp_filter passes local packets [ OK ] # 117.96 [+0.14] TEST: rp_filter passes loopback packets [ OK ] # 118.73 [+0.77] # 118.73 [+0.00] IPv4 delete address route tests # 121.35 [+2.62] Regular FIB info # 121.51 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 121.57 [+0.07] TEST: Route in default VRF not removed [ OK ] # 121.89 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 121.96 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 121.97 [+0.00] Identical FIB info with different table ID # 122.14 [+0.18] TEST: Route removed from VRF when source address deleted [ OK ] # 122.22 [+0.08] TEST: Route in default VRF not removed [ OK ] # 122.53 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 122.62 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 122.62 [+0.00] Table ID 0 # 122.78 [+0.15] TEST: Route removed in default VRF when source address deleted [ OK ] # 123.72 [+0.94] # 123.72 [+0.00] IPv6 delete address route tests # 128.16 [+4.44] Single device using src address # 128.33 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 128.33 [+0.00] Two devices with the same source address # 128.49 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 128.66 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 128.66 [+0.00] VRF with single device using src address # 128.81 [+0.14] TEST: Prefsrc removed when src address removed on other device [ OK ] # 128.81 [+0.00] VRF with two devices using src address # 128.95 [+0.14] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 129.12 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 129.12 [+0.00] src address and nexthop dev in same VRF # 129.27 [+0.15] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 129.36 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 129.68 [+0.32] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 129.77 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 129.77 [+0.00] src address and nexthop device in different VRF # 129.94 [+0.17] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 130.02 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 130.26 [+0.24] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 130.34 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 130.34 [+0.00] Table ID 0 # 130.52 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 130.52 [+0.00] Link local source route # 130.68 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 130.84 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 130.92 [+0.07] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 131.14 [+0.22] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 132.57 [+1.44] # 132.57 [+0.00] IPv4 mangling tests # 139.75 [+7.18] TEST: Connection with correct parameters [ OK ] # 139.92 [+0.17] TEST: Connection with incorrect parameters [ OK ] # 140.81 [+0.89] TEST: Connection with correct parameters - mangling [ OK ] # 141.65 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 141.70 [+0.05] TEST: Connection check - server side [ OK ] # 143.64 [+1.93] # 143.64 [+0.00] IPv6 mangling tests # 150.87 [+7.23] TEST: Connection with correct parameters [ OK ] # 151.05 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 151.90 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 152.74 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 152.80 [+0.06] TEST: Connection check - server side [ OK ] # 154.65 [+1.85] # 154.65 [+0.00] IPv4 broadcast neighbour tests # 156.77 [+2.12] TEST: Resolved neighbour for broadcast address [ OK ] # 156.87 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 156.96 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 157.04 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 158.76 [+1.72] # 158.76 [+0.00] Fib6 garbage collection test # 171.89 [+13.13] TEST: ipv6 route garbage collection [ OK ] # 185.25 [+13.36] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 198.65 [+13.39] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 212.33 [+13.68] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 226.74 [+14.41] TEST: ipv6 route garbage collection (RA message) [ OK ] # 227.55 [+0.81] # 227.55 [+0.00] IPv4 multipath list receive tests # 241.95 [+14.41] TEST: Multipath route hit ratio (1.00) [ OK ] # 244.11 [+2.15] # 244.11 [+0.00] IPv6 multipath list receive tests # 258.82 [+14.71] TEST: Multipath route hit ratio (1.00) [ OK ] # 260.64 [+1.82] # 260.64 [+0.00] Tests passed: 229 # 260.64 [+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__->