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.49 [+0.49] # 0.49 [+0.00] Single path route test # 1.61 [+1.12] Start point # 1.71 [+0.10] TEST: IPv4 fibmatch [ OK ] # 1.82 [+0.11] TEST: IPv6 fibmatch [ OK ] # 1.97 [+0.15] Nexthop device deleted # 2.08 [+0.11] TEST: IPv4 fibmatch - no route [ OK ] # 2.18 [+0.10] TEST: IPv6 fibmatch - no route [ OK ] # 2.83 [+0.65] # 2.83 [+0.00] Multipath route test # 4.44 [+1.61] Start point # 4.51 [+0.08] TEST: IPv4 fibmatch [ OK ] # 4.59 [+0.08] TEST: IPv6 fibmatch [ OK ] # 4.73 [+0.14] One nexthop device deleted # 4.80 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.89 [+0.09] TEST: IPv6 - multipath down to single path [ OK ] # 5.01 [+0.12] Second nexthop device deleted # 5.09 [+0.08] TEST: IPv6 - no route [ OK ] # 5.63 [+0.54] # 5.63 [+0.00] Single path, admin down # 6.81 [+1.17] Start point # 6.89 [+0.09] TEST: IPv4 fibmatch [ OK ] # 6.99 [+0.09] TEST: IPv6 fibmatch [ OK ] # 7.08 [+0.09] Route deleted on down # 7.17 [+0.09] TEST: IPv4 fibmatch [ OK ] # 7.28 [+0.11] TEST: IPv6 fibmatch [ OK ] # 7.83 [+0.54] # 7.83 [+0.00] Admin down multipath # 9.83 [+2.01] Verify start point # 9.94 [+0.11] TEST: IPv4 fibmatch [ OK ] # 10.05 [+0.11] TEST: IPv6 fibmatch [ OK ] # 10.16 [+0.10] One device down, one up # 10.26 [+0.11] TEST: IPv4 fibmatch on down device [ OK ] # 10.36 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 10.46 [+0.11] TEST: IPv4 fibmatch on up device [ OK ] # 10.57 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 10.68 [+0.11] TEST: IPv4 flags on down device [ OK ] # 10.82 [+0.13] TEST: IPv6 flags on down device [ OK ] # 10.97 [+0.15] TEST: IPv4 flags on up device [ OK ] # 11.09 [+0.12] TEST: IPv6 flags on up device [ OK ] # 11.31 [+0.22] Other device down and up # 11.41 [+0.10] TEST: IPv4 fibmatch on down device [ OK ] # 11.51 [+0.11] TEST: IPv6 fibmatch on down device [ OK ] # 11.61 [+0.10] TEST: IPv4 fibmatch on up device [ OK ] # 11.72 [+0.11] TEST: IPv6 fibmatch on up device [ OK ] # 11.82 [+0.10] TEST: IPv4 flags on down device [ OK ] # 11.95 [+0.13] TEST: IPv6 flags on down device [ OK ] # 12.06 [+0.12] TEST: IPv4 flags on up device [ OK ] # 12.17 [+0.11] TEST: IPv6 flags on up device [ OK ] # 12.28 [+0.12] Both devices down # 12.39 [+0.10] TEST: IPv4 fibmatch [ OK ] # 12.50 [+0.11] TEST: IPv6 fibmatch [ OK ] # 13.29 [+0.79] # 13.29 [+0.00] Local carrier tests - single path # 15.20 [+1.91] Start point # 15.34 [+0.14] TEST: IPv4 fibmatch [ OK ] # 15.48 [+0.14] TEST: IPv6 fibmatch [ OK ] # 15.63 [+0.15] TEST: IPv4 - no linkdown flag [ OK ] # 15.76 [+0.13] TEST: IPv6 - no linkdown flag [ OK ] # 16.96 [+1.20] Carrier off on nexthop # 17.11 [+0.15] TEST: IPv4 fibmatch [ OK ] # 17.23 [+0.12] TEST: IPv6 fibmatch [ OK ] # 17.34 [+0.11] TEST: IPv4 - linkdown flag set [ OK ] # 17.48 [+0.14] TEST: IPv6 - linkdown flag set [ OK ] # 17.72 [+0.24] Route to local address with carrier down # 17.85 [+0.13] TEST: IPv4 fibmatch [ OK ] # 17.96 [+0.11] TEST: IPv6 fibmatch [ OK ] # 18.14 [+0.18] TEST: IPv4 linkdown flag set [ OK ] # 18.26 [+0.12] TEST: IPv6 linkdown flag set [ OK ] # 18.95 [+0.69] # 18.95 [+0.00] Single path route carrier test # 20.30 [+1.35] Start point # 20.38 [+0.08] TEST: IPv4 fibmatch [ OK ] # 20.47 [+0.09] TEST: IPv6 fibmatch [ OK ] # 20.56 [+0.10] TEST: IPv4 no linkdown flag [ OK ] # 20.64 [+0.07] TEST: IPv6 no linkdown flag [ OK ] # 21.77 [+1.13] Carrier down # 21.86 [+0.09] TEST: IPv4 fibmatch [ OK ] # 21.94 [+0.08] TEST: IPv6 fibmatch [ OK ] # 22.03 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 22.10 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 22.33 [+0.23] Second address added with carrier down # 22.41 [+0.08] TEST: IPv4 fibmatch [ OK ] # 22.52 [+0.11] TEST: IPv6 fibmatch [ OK ] # 22.62 [+0.10] TEST: IPv4 linkdown flag set [ OK ] # 22.73 [+0.11] TEST: IPv6 linkdown flag set [ OK ] # 27.09 [+4.37] # 27.09 [+0.00] IPv4 nexthop tests # 27.10 [+0.00] <<< write me >>> # 27.34 [+0.25] # 27.34 [+0.00] IPv6 nexthop tests # 27.44 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 27.54 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 27.63 [+0.09] TEST: Gateway is linklocal address [ OK ] # 27.76 [+0.13] TEST: Gateway is linklocal address, no device [ OK ] # 27.90 [+0.14] TEST: Gateway can not be local unicast address [ OK ] # 28.01 [+0.12] TEST: Gateway can not be local unicast address, with device [ OK ] # 28.13 [+0.12] TEST: Gateway can not be a local linklocal address [ OK ] # 28.25 [+0.13] TEST: Gateway can be local address in a VRF [ OK ] # 28.39 [+0.13] TEST: Gateway can be local address in a VRF, with device [ OK ] # 28.49 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 28.60 [+0.11] TEST: Redirect to VRF lookup [ OK ] # 28.71 [+0.11] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 28.81 [+0.11] TEST: VRF route, gateway can not be a local address [ OK ] # 28.92 [+0.11] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 30.17 [+1.25] # 30.17 [+0.00] FIB rule with suppress_prefixlength # 32.20 [+2.03] TEST: FIB rule suppress test [ OK ] # 33.75 [+1.55] # 33.75 [+0.00] Fib6 info length calculation in route notify test # 37.84 [+4.09] TEST: ipv6 route add notify [ OK ] # 39.88 [+2.04] # 39.88 [+0.00] Fib4 info length calculation in route notify test # 44.06 [+4.17] TEST: ipv4 route add notify [ OK ] # 48.71 [+4.66] # 48.71 [+0.00] IPv6 route add / append tests # 49.08 [+0.37] TEST: Attempt to add duplicate route - gw [ OK ] # 49.47 [+0.39] TEST: Attempt to add duplicate route - dev only [ OK ] # 49.87 [+0.40] TEST: Attempt to add duplicate route - reject route [ OK ] # 50.45 [+0.57] TEST: Append nexthop to existing route - gw [ OK ] # 50.88 [+0.43] TEST: Add multipath route [ OK ] # 51.33 [+0.45] TEST: Attempt to add duplicate multipath route [ OK ] # 51.79 [+0.46] TEST: Route add with different metrics [ OK ] # 51.98 [+0.19] TEST: Route delete with metric [ OK ] # 51.98 [+0.00] # 51.98 [+0.00] IPv6 route replace tests # 52.43 [+0.45] TEST: Single path with single path [ OK ] # 52.91 [+0.48] TEST: Single path with multipath [ OK ] # 53.33 [+0.42] TEST: Single path with single path via multipath attribute [ OK ] # 53.77 [+0.44] TEST: Invalid nexthop [ OK ] # 54.13 [+0.36] TEST: Single path - replace of non-existent route [ OK ] # 54.66 [+0.54] TEST: Multipath with multipath [ OK ] # 55.21 [+0.54] TEST: Multipath with single path [ OK ] # 55.73 [+0.53] TEST: Multipath with single path via multipath attribute [ OK ] # 56.28 [+0.55] TEST: Multipath with dev-only [ OK ] # 56.83 [+0.55] TEST: Multipath - invalid first nexthop [ OK ] # 57.40 [+0.57] TEST: Multipath - invalid second nexthop [ OK ] # 57.83 [+0.43] TEST: Multipath - replace of non-existent route [ OK ] # 57.84 [+0.00] # 57.84 [+0.00] IPv6 route with dsfield tests # 58.09 [+0.25] TEST: Reject route with dsfield [ OK ] # 65.30 [+7.21] # 65.30 [+0.00] IPv4 route add / append tests # 65.64 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 65.99 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 66.34 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 66.80 [+0.46] TEST: Add new nexthop for existing prefix [ OK ] # 67.23 [+0.44] TEST: Append nexthop to existing route - gw [ OK ] # 67.67 [+0.44] TEST: Append nexthop to existing route - dev only [ OK ] # 68.12 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 68.47 [+0.35] TEST: Append nexthop to existing reject route - gw [ OK ] # 68.84 [+0.38] TEST: Append nexthop to existing reject route - dev only [ OK ] # 69.28 [+0.44] TEST: add multipath route [ OK ] # 69.67 [+0.39] TEST: Attempt to add duplicate multipath route [ OK ] # 70.18 [+0.50] TEST: Route add with different metrics [ OK ] # 70.38 [+0.21] TEST: Route delete with metric [ OK ] # 70.39 [+0.00] # 70.39 [+0.00] IPv4 route replace tests # 70.94 [+0.55] TEST: Single path with single path [ OK ] # 71.55 [+0.61] TEST: Single path with multipath [ OK ] # 72.14 [+0.59] TEST: Single path with reject route [ OK ] # 72.67 [+0.53] TEST: Single path with single path via multipath attribute [ OK ] # 73.14 [+0.47] TEST: Invalid nexthop [ OK ] # 73.49 [+0.35] TEST: Single path - replace of non-existent route [ OK ] # 73.93 [+0.44] TEST: Multipath with multipath [ OK ] # 74.37 [+0.44] TEST: Multipath with single path [ OK ] # 74.82 [+0.46] TEST: Multipath with single path via multipath attribute [ OK ] # 75.25 [+0.43] TEST: Multipath with reject route [ OK ] # 75.73 [+0.48] TEST: Multipath - invalid first nexthop [ OK ] # 76.27 [+0.54] TEST: Multipath - invalid second nexthop [ OK ] # 76.69 [+0.42] TEST: Multipath - replace of non-existent route [ OK ] # 78.32 [+1.63] TEST: Cached route removed from VRF port device [ OK ] # 78.32 [+0.00] # 78.32 [+0.00] IPv4 route with dsfield tests # 78.51 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 78.60 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 78.69 [+0.10] TEST: Reject route with dsfield 0x03 [ OK ] # 78.97 [+0.28] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 79.06 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 79.14 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 79.22 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 79.34 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 79.48 [+0.13] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 79.57 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 79.65 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 79.73 [+0.08] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 79.81 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 79.88 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 79.96 [+0.08] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 81.70 [+1.74] # 81.70 [+0.00] IPv6 prefix route tests # 83.83 [+2.13] TEST: Default metric [ OK ] # 84.16 [+0.33] TEST: User specified metric on first device [ OK ] # 84.51 [+0.35] TEST: User specified metric on second device [ OK ] # 84.76 [+0.25] TEST: Delete of address on first device [ OK ] # 84.97 [+0.21] TEST: Modify metric of address [ OK ] # 85.35 [+0.38] TEST: Prefix route removed on link down [ OK ] # 85.60 [+0.25] TEST: Prefix route with metric on link up [ OK ] # 85.95 [+0.35] TEST: Set metric with peer route on local side [ OK ] # 86.06 [+0.11] TEST: Set metric with peer route on peer side [ OK ] # 86.31 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 86.42 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 87.55 [+1.12] # 87.55 [+0.00] IPv4 prefix route tests # 89.39 [+1.84] TEST: Default metric [ OK ] # 89.65 [+0.27] TEST: User specified metric on first device [ OK ] # 89.94 [+0.28] TEST: User specified metric on second device [ OK ] # 90.11 [+0.17] TEST: Delete of address on first device [ OK ] # 90.30 [+0.19] TEST: Modify metric of address [ OK ] # 90.48 [+0.18] TEST: Prefix route removed on link down [ OK ] # 90.67 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 91.01 [+0.35] TEST: Modify metric of .0/24 address [ OK ] # 91.29 [+0.28] TEST: Set metric of address with peer route [ OK ] # 91.48 [+0.19] TEST: Modify metric and peer address for peer route [ OK ] # 92.62 [+1.13] # 92.62 [+0.00] IPv6 routes with metrics # 97.62 [+5.00] TEST: Single path route with mtu metric [ OK ] # 97.89 [+0.27] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 98.17 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 98.36 [+0.19] TEST: MTU of second leg [ OK ] # 98.60 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 98.84 [+0.24] TEST: Using route with mtu metric [ OK ] # 99.02 [+0.18] TEST: Invalid metric (fails metric_convert) [ OK ] # 101.07 [+2.05] # 101.07 [+0.00] IPv4 route add / append tests # 106.16 [+5.09] TEST: Single path route with mtu metric [ OK ] # 106.40 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 106.68 [+0.28] TEST: Using route with mtu metric [ OK ] # 106.91 [+0.24] TEST: Invalid metric (fails metric_convert) [ OK ] # 109.18 [+2.27] # 109.18 [+0.00] IPv4 route with IPv6 gateway tests # 116.04 [+6.86] TEST: Single path route with IPv6 gateway [ OK ] # 116.30 [+0.25] TEST: Single path route with IPv6 gateway - ping [ OK ] # 116.39 [+0.09] TEST: Single path route delete [ OK ] # 116.56 [+0.17] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 116.74 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 116.84 [+0.10] TEST: Multipath route delete exact match [ OK ] # 116.94 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 117.13 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 117.23 [+0.10] TEST: Multipath route delete exact match [ OK ] # 118.90 [+1.67] # 118.90 [+0.00] IPv4 rp_filter tests # 125.24 [+6.33] TEST: rp_filter passes local packets [ OK ] # 125.40 [+0.16] TEST: rp_filter passes loopback packets [ OK ] # 126.26 [+0.86] # 126.26 [+0.00] IPv4 delete address route tests # 129.69 [+3.43] Regular FIB info # 129.92 [+0.23] TEST: Route removed from VRF when source address deleted [ OK ] # 130.08 [+0.16] TEST: Route in default VRF not removed [ OK ] # 130.51 [+0.43] TEST: Route removed in default VRF when source address deleted [ OK ] # 130.62 [+0.11] TEST: Route in VRF is not removed by address delete [ OK ] # 130.62 [+0.00] Identical FIB info with different table ID # 130.81 [+0.19] TEST: Route removed from VRF when source address deleted [ OK ] # 130.92 [+0.10] TEST: Route in default VRF not removed [ OK ] # 131.36 [+0.44] TEST: Route removed in default VRF when source address deleted [ OK ] # 131.49 [+0.13] TEST: Route in VRF is not removed by address delete [ OK ] # 131.50 [+0.00] Table ID 0 # 131.72 [+0.22] TEST: Route removed in default VRF when source address deleted [ OK ] # 133.04 [+1.33] # 133.04 [+0.00] IPv6 delete address route tests # 138.02 [+4.97] Single device using src address # 138.17 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 138.18 [+0.00] Two devices with the same source address # 138.34 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 138.53 [+0.19] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 138.54 [+0.00] VRF with single device using src address # 138.71 [+0.18] TEST: Prefsrc removed when src address removed on other device [ OK ] # 138.72 [+0.00] VRF with two devices using src address # 138.91 [+0.19] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 139.07 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 139.07 [+0.00] src address and nexthop dev in same VRF # 139.28 [+0.21] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 139.37 [+0.09] TEST: Prefsrc in default VRF not removed [ OK ] # 139.74 [+0.37] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 139.88 [+0.14] TEST: Prefsrc in default VRF removed [ OK ] # 139.88 [+0.00] src address and nexthop device in different VRF # 140.07 [+0.19] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 140.19 [+0.12] TEST: Prefsrc not removed in default VRF [ OK ] # 140.49 [+0.31] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 140.61 [+0.12] TEST: Prefsrc removed in default VRF [ OK ] # 140.61 [+0.00] Table ID 0 # 140.80 [+0.19] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 140.81 [+0.00] Link local source route # 141.04 [+0.24] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 141.25 [+0.20] TEST: Prefsrc removed when delete ll addr [ OK ] # 141.35 [+0.10] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 141.61 [+0.27] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 143.21 [+1.59] # 143.21 [+0.00] IPv4 mangling tests # 151.69 [+8.48] TEST: Connection with correct parameters [ OK ] # 151.89 [+0.21] TEST: Connection with incorrect parameters [ OK ] # 152.83 [+0.94] TEST: Connection with correct parameters - mangling [ OK ] # 153.71 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 153.77 [+0.06] TEST: Connection check - server side [ OK ] # 155.94 [+2.18] # 155.94 [+0.00] IPv6 mangling tests # 164.18 [+8.24] TEST: Connection with correct parameters [ OK ] # 164.38 [+0.20] TEST: Connection with incorrect parameters [ OK ] # 165.29 [+0.91] TEST: Connection with correct parameters - mangling [ OK ] # 166.16 [+0.87] TEST: Connection with correct parameters - no mangling [ OK ] # 166.23 [+0.07] TEST: Connection check - server side [ OK ] # 168.21 [+1.98] # 168.21 [+0.00] IPv4 broadcast neighbour tests # 170.86 [+2.65] TEST: Resolved neighbour for broadcast address [ OK ] # 170.98 [+0.12] TEST: Resolved neighbour for network broadcast address [ OK ] # 171.10 [+0.12] TEST: Unresolved neighbour for broadcast address [ OK ] # 171.20 [+0.11] TEST: Unresolved neighbour for network broadcast address [ OK ] # 173.53 [+2.33] # 173.53 [+0.00] Fib6 garbage collection test # 186.83 [+13.30] TEST: ipv6 route garbage collection [ OK ] # 200.61 [+13.78] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 214.21 [+13.60] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 228.05 [+13.85] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 242.59 [+14.54] TEST: ipv6 route garbage collection (RA message) [ OK ] # 243.31 [+0.72] # 243.31 [+0.00] IPv4 multipath list receive tests # 257.64 [+14.33] TEST: Multipath route hit ratio (1.00) [ OK ] # 259.42 [+1.78] # 259.42 [+0.00] IPv6 multipath list receive tests # 274.62 [+15.20] TEST: Multipath route hit ratio (1.00) [ OK ] # 276.48 [+1.86] # 276.48 [+0.00] Tests passed: 229 # 276.48 [+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__->