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.39 [+0.39] # 0.39 [+0.00] Single path route test # 1.25 [+0.86] Start point # 1.32 [+0.07] TEST: IPv4 fibmatch [ OK ] # 1.41 [+0.09] TEST: IPv6 fibmatch [ OK ] # 1.52 [+0.11] Nexthop device deleted # 1.60 [+0.08] TEST: IPv4 fibmatch - no route [ OK ] # 1.67 [+0.07] TEST: IPv6 fibmatch - no route [ OK ] # 2.18 [+0.51] # 2.19 [+0.00] Multipath route test # 3.73 [+1.54] Start point # 3.82 [+0.09] TEST: IPv4 fibmatch [ OK ] # 3.88 [+0.07] TEST: IPv6 fibmatch [ OK ] # 4.02 [+0.13] One nexthop device deleted # 4.10 [+0.08] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.17 [+0.07] TEST: IPv6 - multipath down to single path [ OK ] # 4.28 [+0.11] Second nexthop device deleted # 4.36 [+0.08] TEST: IPv6 - no route [ OK ] # 4.86 [+0.49] # 4.86 [+0.00] Single path, admin down # 5.93 [+1.08] Start point # 6.01 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.08 [+0.07] TEST: IPv6 fibmatch [ OK ] # 6.16 [+0.08] Route deleted on down # 6.23 [+0.07] TEST: IPv4 fibmatch [ OK ] # 6.31 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.71 [+0.40] # 6.71 [+0.00] Admin down multipath # 8.23 [+1.52] Verify start point # 8.31 [+0.08] TEST: IPv4 fibmatch [ OK ] # 8.39 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.47 [+0.08] One device down, one up # 8.54 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 8.62 [+0.08] TEST: IPv6 fibmatch on down device [ OK ] # 8.69 [+0.07] TEST: IPv4 fibmatch on up device [ OK ] # 8.78 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 8.87 [+0.10] TEST: IPv4 flags on down device [ OK ] # 8.97 [+0.10] TEST: IPv6 flags on down device [ OK ] # 9.06 [+0.09] TEST: IPv4 flags on up device [ OK ] # 9.14 [+0.08] TEST: IPv6 flags on up device [ OK ] # 9.30 [+0.16] Other device down and up # 9.37 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 9.45 [+0.07] TEST: IPv6 fibmatch on down device [ OK ] # 9.53 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.61 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 9.68 [+0.07] TEST: IPv4 flags on down device [ OK ] # 9.77 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.86 [+0.08] TEST: IPv4 flags on up device [ OK ] # 9.96 [+0.10] TEST: IPv6 flags on up device [ OK ] # 10.03 [+0.08] Both devices down # 10.11 [+0.07] TEST: IPv4 fibmatch [ OK ] # 10.19 [+0.08] TEST: IPv6 fibmatch [ OK ] # 10.73 [+0.55] # 10.73 [+0.00] Local carrier tests - single path # 11.89 [+1.16] Start point # 11.97 [+0.08] TEST: IPv4 fibmatch [ OK ] # 12.05 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.12 [+0.08] TEST: IPv4 - no linkdown flag [ OK ] # 12.20 [+0.08] TEST: IPv6 - no linkdown flag [ OK ] # 13.32 [+1.12] Carrier off on nexthop # 13.40 [+0.08] TEST: IPv4 fibmatch [ OK ] # 13.49 [+0.09] TEST: IPv6 fibmatch [ OK ] # 13.56 [+0.07] TEST: IPv4 - linkdown flag set [ OK ] # 13.64 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 13.81 [+0.16] Route to local address with carrier down # 13.88 [+0.07] TEST: IPv4 fibmatch [ OK ] # 13.96 [+0.08] TEST: IPv6 fibmatch [ OK ] # 14.05 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 14.13 [+0.09] TEST: IPv6 linkdown flag set [ OK ] # 14.56 [+0.43] # 14.56 [+0.00] Single path route carrier test # 15.70 [+1.14] Start point # 15.79 [+0.08] TEST: IPv4 fibmatch [ OK ] # 15.87 [+0.08] TEST: IPv6 fibmatch [ OK ] # 15.94 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 16.02 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 17.15 [+1.13] Carrier down # 17.23 [+0.08] TEST: IPv4 fibmatch [ OK ] # 17.31 [+0.08] TEST: IPv6 fibmatch [ OK ] # 17.39 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 17.46 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 17.61 [+0.15] Second address added with carrier down # 17.70 [+0.09] TEST: IPv4 fibmatch [ OK ] # 17.77 [+0.07] TEST: IPv6 fibmatch [ OK ] # 17.85 [+0.08] TEST: IPv4 linkdown flag set [ OK ] # 17.92 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 21.96 [+4.04] # 21.96 [+0.00] IPv4 nexthop tests # 21.96 [+0.00] <<< write me >>> # 22.18 [+0.22] # 22.18 [+0.00] IPv6 nexthop tests # 22.28 [+0.10] TEST: Directly connected nexthop, unicast address [ OK ] # 22.36 [+0.08] TEST: Directly connected nexthop, unicast address with device [ OK ] # 22.46 [+0.10] TEST: Gateway is linklocal address [ OK ] # 22.55 [+0.08] TEST: Gateway is linklocal address, no device [ OK ] # 22.64 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 22.73 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 22.82 [+0.09] TEST: Gateway can not be a local linklocal address [ OK ] # 22.91 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 23.00 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 23.10 [+0.09] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 23.18 [+0.08] TEST: Redirect to VRF lookup [ OK ] # 23.27 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 23.35 [+0.08] TEST: VRF route, gateway can not be a local address [ OK ] # 23.44 [+0.09] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 24.36 [+0.92] # 24.36 [+0.00] FIB rule with suppress_prefixlength # 26.00 [+1.64] TEST: FIB rule suppress test [ OK ] # 27.48 [+1.47] # 27.48 [+0.00] Fib6 info length calculation in route notify test # 31.29 [+3.81] TEST: ipv6 route add notify [ OK ] # 32.76 [+1.47] # 32.76 [+0.00] Fib4 info length calculation in route notify test # 36.56 [+3.80] TEST: ipv4 route add notify [ OK ] # 40.68 [+4.11] # 40.68 [+0.00] IPv6 route add / append tests # 41.01 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 41.34 [+0.33] TEST: Attempt to add duplicate route - dev only [ OK ] # 41.68 [+0.34] TEST: Attempt to add duplicate route - reject route [ OK ] # 42.13 [+0.45] TEST: Append nexthop to existing route - gw [ OK ] # 42.48 [+0.35] TEST: Add multipath route [ OK ] # 42.83 [+0.35] TEST: Attempt to add duplicate multipath route [ OK ] # 43.24 [+0.42] TEST: Route add with different metrics [ OK ] # 43.42 [+0.18] TEST: Route delete with metric [ OK ] # 43.43 [+0.00] # 43.43 [+0.00] IPv6 route replace tests # 43.87 [+0.45] TEST: Single path with single path [ OK ] # 44.31 [+0.44] TEST: Single path with multipath [ OK ] # 44.75 [+0.44] TEST: Single path with single path via multipath attribute [ OK ] # 45.19 [+0.44] TEST: Invalid nexthop [ OK ] # 45.52 [+0.33] TEST: Single path - replace of non-existent route [ OK ] # 45.96 [+0.44] TEST: Multipath with multipath [ OK ] # 46.39 [+0.43] TEST: Multipath with single path [ OK ] # 46.82 [+0.42] TEST: Multipath with single path via multipath attribute [ OK ] # 47.24 [+0.43] TEST: Multipath with dev-only [ OK ] # 47.67 [+0.42] TEST: Multipath - invalid first nexthop [ OK ] # 48.12 [+0.45] TEST: Multipath - invalid second nexthop [ OK ] # 48.46 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 48.47 [+0.00] # 48.47 [+0.00] IPv6 route with dsfield tests # 48.65 [+0.18] TEST: Reject route with dsfield [ OK ] # 54.42 [+5.77] # 54.42 [+0.00] IPv4 route add / append tests # 54.74 [+0.32] TEST: Attempt to add duplicate route - gw [ OK ] # 55.09 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 55.42 [+0.33] TEST: Attempt to add duplicate route - reject route [ OK ] # 55.85 [+0.42] TEST: Add new nexthop for existing prefix [ OK ] # 56.27 [+0.42] TEST: Append nexthop to existing route - gw [ OK ] # 56.69 [+0.42] TEST: Append nexthop to existing route - dev only [ OK ] # 57.11 [+0.42] TEST: Append nexthop to existing route - reject route [ OK ] # 57.48 [+0.37] TEST: Append nexthop to existing reject route - gw [ OK ] # 57.82 [+0.34] TEST: Append nexthop to existing reject route - dev only [ OK ] # 58.17 [+0.34] TEST: add multipath route [ OK ] # 58.51 [+0.34] TEST: Attempt to add duplicate multipath route [ OK ] # 58.92 [+0.42] TEST: Route add with different metrics [ OK ] # 59.10 [+0.17] TEST: Route delete with metric [ OK ] # 59.10 [+0.00] # 59.10 [+0.00] IPv4 route replace tests # 59.53 [+0.43] TEST: Single path with single path [ OK ] # 59.95 [+0.42] TEST: Single path with multipath [ OK ] # 60.38 [+0.43] TEST: Single path with reject route [ OK ] # 60.80 [+0.42] TEST: Single path with single path via multipath attribute [ OK ] # 61.22 [+0.42] TEST: Invalid nexthop [ OK ] # 61.55 [+0.32] TEST: Single path - replace of non-existent route [ OK ] # 61.97 [+0.42] TEST: Multipath with multipath [ OK ] # 62.39 [+0.43] TEST: Multipath with single path [ OK ] # 62.80 [+0.41] TEST: Multipath with single path via multipath attribute [ OK ] # 63.24 [+0.44] TEST: Multipath with reject route [ OK ] # 63.92 [+0.68] TEST: Multipath - invalid first nexthop [ OK ] # 64.73 [+0.81] TEST: Multipath - invalid second nexthop [ OK ] # 65.37 [+0.64] TEST: Multipath - replace of non-existent route [ OK ] # 66.83 [+1.46] TEST: Cached route removed from VRF port device [ OK ] # 66.84 [+0.00] # 66.84 [+0.00] IPv4 route with dsfield tests # 67.02 [+0.18] TEST: Reject route with dsfield 0x01 [ OK ] # 67.12 [+0.10] TEST: Reject route with dsfield 0x02 [ OK ] # 67.20 [+0.08] TEST: Reject route with dsfield 0x03 [ OK ] # 67.48 [+0.28] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 67.57 [+0.09] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 67.65 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 67.73 [+0.08] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 67.82 [+0.09] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 67.94 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 68.06 [+0.12] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 68.17 [+0.11] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 68.26 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 68.38 [+0.12] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 68.49 [+0.11] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 68.61 [+0.12] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 70.57 [+1.95] # 70.57 [+0.00] IPv6 prefix route tests # 72.59 [+2.02] TEST: Default metric [ OK ] # 72.94 [+0.35] TEST: User specified metric on first device [ OK ] # 73.28 [+0.34] TEST: User specified metric on second device [ OK ] # 73.49 [+0.20] TEST: Delete of address on first device [ OK ] # 73.72 [+0.24] TEST: Modify metric of address [ OK ] # 74.09 [+0.37] TEST: Prefix route removed on link down [ OK ] # 74.32 [+0.22] TEST: Prefix route with metric on link up [ OK ] # 74.66 [+0.35] TEST: Set metric with peer route on local side [ OK ] # 74.79 [+0.13] TEST: Set metric with peer route on peer side [ OK ] # 75.04 [+0.25] TEST: Modify metric and peer address on local side [ OK ] # 75.15 [+0.11] TEST: Modify metric and peer address on peer side [ OK ] # 76.30 [+1.16] # 76.31 [+0.00] IPv4 prefix route tests # 78.60 [+2.30] TEST: Default metric [ OK ] # 78.96 [+0.36] TEST: User specified metric on first device [ OK ] # 79.35 [+0.39] TEST: User specified metric on second device [ OK ] # 79.62 [+0.27] TEST: Delete of address on first device [ OK ] # 79.88 [+0.26] TEST: Modify metric of address [ OK ] # 80.14 [+0.26] TEST: Prefix route removed on link down [ OK ] # 80.44 [+0.30] TEST: Prefix route with metric on link up [ OK ] # 80.98 [+0.54] TEST: Modify metric of .0/24 address [ OK ] # 81.39 [+0.41] TEST: Set metric of address with peer route [ OK ] # 81.69 [+0.30] TEST: Modify metric and peer address for peer route [ OK ] # 83.18 [+1.49] # 83.18 [+0.00] IPv6 routes with metrics # 89.93 [+6.75] TEST: Single path route with mtu metric [ OK ] # 90.36 [+0.43] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 90.81 [+0.45] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 91.08 [+0.26] TEST: MTU of second leg [ OK ] # 91.36 [+0.28] TEST: Multipath route with mtu metric [ OK ] # 91.69 [+0.33] TEST: Using route with mtu metric [ OK ] # 91.92 [+0.23] TEST: Invalid metric (fails metric_convert) [ OK ] # 94.22 [+2.31] # 94.22 [+0.00] IPv4 route add / append tests # 101.11 [+6.89] TEST: Single path route with mtu metric [ OK ] # 101.35 [+0.24] TEST: Multipath route with mtu metric [ OK ] # 101.71 [+0.36] TEST: Using route with mtu metric [ OK ] # 101.94 [+0.23] TEST: Invalid metric (fails metric_convert) [ OK ] # 104.11 [+2.16] # 104.11 [+0.00] IPv4 route with IPv6 gateway tests # 111.20 [+7.10] TEST: Single path route with IPv6 gateway [ OK ] # 111.46 [+0.25] TEST: Single path route with IPv6 gateway - ping [ OK ] # 111.58 [+0.12] TEST: Single path route delete [ OK ] # 111.78 [+0.19] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 111.96 [+0.18] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 112.06 [+0.10] TEST: Multipath route delete exact match [ OK ] # 112.16 [+0.10] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 112.35 [+0.20] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 112.45 [+0.10] TEST: Multipath route delete exact match [ OK ] # 114.23 [+1.78] # 114.23 [+0.00] IPv4 rp_filter tests # 120.30 [+6.07] TEST: rp_filter passes local packets [ OK ] # 120.44 [+0.15] TEST: rp_filter passes loopback packets [ OK ] # 121.23 [+0.78] # 121.23 [+0.00] IPv4 delete address route tests # 123.98 [+2.75] Regular FIB info # 124.13 [+0.16] TEST: Route removed from VRF when source address deleted [ OK ] # 124.22 [+0.08] TEST: Route in default VRF not removed [ OK ] # 124.53 [+0.31] TEST: Route removed in default VRF when source address deleted [ OK ] # 124.61 [+0.08] TEST: Route in VRF is not removed by address delete [ OK ] # 124.61 [+0.00] Identical FIB info with different table ID # 124.76 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 124.83 [+0.07] TEST: Route in default VRF not removed [ OK ] # 125.17 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 125.25 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 125.25 [+0.00] Table ID 0 # 125.42 [+0.18] TEST: Route removed in default VRF when source address deleted [ OK ] # 126.41 [+0.99] # 126.41 [+0.00] IPv6 delete address route tests # 130.99 [+4.58] Single device using src address # 131.15 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 131.15 [+0.00] Two devices with the same source address # 131.31 [+0.16] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 131.47 [+0.16] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 131.48 [+0.00] VRF with single device using src address # 131.64 [+0.16] TEST: Prefsrc removed when src address removed on other device [ OK ] # 131.64 [+0.00] VRF with two devices using src address # 131.82 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 131.99 [+0.17] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 131.99 [+0.00] src address and nexthop dev in same VRF # 132.13 [+0.14] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 132.20 [+0.07] TEST: Prefsrc in default VRF not removed [ OK ] # 132.57 [+0.37] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 132.65 [+0.08] TEST: Prefsrc in default VRF removed [ OK ] # 132.65 [+0.00] src address and nexthop device in different VRF # 132.83 [+0.18] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 132.92 [+0.09] TEST: Prefsrc not removed in default VRF [ OK ] # 133.17 [+0.26] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 133.26 [+0.08] TEST: Prefsrc removed in default VRF [ OK ] # 133.26 [+0.00] Table ID 0 # 133.41 [+0.15] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 133.42 [+0.00] Link local source route # 133.57 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 133.74 [+0.17] TEST: Prefsrc removed when delete ll addr [ OK ] # 133.85 [+0.11] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 134.11 [+0.26] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 135.69 [+1.58] # 135.69 [+0.00] IPv4 mangling tests # 143.00 [+7.31] TEST: Connection with correct parameters [ OK ] # 143.17 [+0.16] TEST: Connection with incorrect parameters [ OK ] # 144.08 [+0.92] TEST: Connection with correct parameters - mangling [ OK ] # 144.94 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 145.00 [+0.06] TEST: Connection check - server side [ OK ] # 146.94 [+1.94] # 146.94 [+0.00] IPv6 mangling tests # 154.18 [+7.24] TEST: Connection with correct parameters [ OK ] # 154.36 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 155.21 [+0.84] TEST: Connection with correct parameters - mangling [ OK ] # 156.07 [+0.86] TEST: Connection with correct parameters - no mangling [ OK ] # 156.14 [+0.07] TEST: Connection check - server side [ OK ] # 158.16 [+2.02] # 158.16 [+0.00] IPv4 broadcast neighbour tests # 160.33 [+2.17] TEST: Resolved neighbour for broadcast address [ OK ] # 160.41 [+0.08] TEST: Resolved neighbour for network broadcast address [ OK ] # 160.50 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 160.59 [+0.09] TEST: Unresolved neighbour for network broadcast address [ OK ] # 162.37 [+1.78] # 162.37 [+0.00] Fib6 garbage collection test # 175.52 [+13.15] TEST: ipv6 route garbage collection [ OK ] # 188.88 [+13.36] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 202.29 [+13.41] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 215.76 [+13.47] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 229.99 [+14.23] TEST: ipv6 route garbage collection (RA message) [ OK ] # 230.71 [+0.72] # 230.71 [+0.00] IPv4 multipath list receive tests # 247.06 [+16.34] TEST: Multipath route hit ratio (1.00) [ OK ] # 248.84 [+1.78] # 248.84 [+0.00] IPv6 multipath list receive tests # 264.89 [+16.05] TEST: Multipath route hit ratio (1.00) [ OK ] # 266.69 [+1.80] # 266.69 [+0.00] Tests passed: 229 # 266.69 [+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__->