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.41 [+0.41] # 0.41 [+0.00] Single path route test # 1.27 [+0.86] Start point # 1.36 [+0.08] TEST: IPv4 fibmatch [ OK ] # 1.44 [+0.08] TEST: IPv6 fibmatch [ OK ] # 1.56 [+0.12] Nexthop device deleted # 1.65 [+0.09] TEST: IPv4 fibmatch - no route [ OK ] # 1.73 [+0.08] TEST: IPv6 fibmatch - no route [ OK ] # 2.25 [+0.52] # 2.25 [+0.00] Multipath route test # 3.86 [+1.61] Start point # 3.94 [+0.09] TEST: IPv4 fibmatch [ OK ] # 4.03 [+0.09] TEST: IPv6 fibmatch [ OK ] # 4.13 [+0.10] One nexthop device deleted # 4.21 [+0.07] TEST: IPv4 - multipath route removed on delete [ OK ] # 4.29 [+0.08] TEST: IPv6 - multipath down to single path [ OK ] # 4.41 [+0.12] Second nexthop device deleted # 4.50 [+0.09] TEST: IPv6 - no route [ OK ] # 5.04 [+0.54] # 5.04 [+0.00] Single path, admin down # 6.17 [+1.13] Start point # 6.24 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.32 [+0.08] TEST: IPv6 fibmatch [ OK ] # 6.41 [+0.09] Route deleted on down # 6.49 [+0.08] TEST: IPv4 fibmatch [ OK ] # 6.57 [+0.08] TEST: IPv6 fibmatch [ OK ] # 7.03 [+0.47] # 7.03 [+0.00] Admin down multipath # 8.63 [+1.59] Verify start point # 8.71 [+0.09] TEST: IPv4 fibmatch [ OK ] # 8.79 [+0.08] TEST: IPv6 fibmatch [ OK ] # 8.88 [+0.09] One device down, one up # 8.96 [+0.08] TEST: IPv4 fibmatch on down device [ OK ] # 9.05 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 9.13 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 9.21 [+0.08] TEST: IPv6 fibmatch on up device [ OK ] # 9.31 [+0.09] TEST: IPv4 flags on down device [ OK ] # 9.40 [+0.09] TEST: IPv6 flags on down device [ OK ] # 9.51 [+0.11] TEST: IPv4 flags on up device [ OK ] # 9.60 [+0.10] TEST: IPv6 flags on up device [ OK ] # 9.78 [+0.17] Other device down and up # 9.85 [+0.07] TEST: IPv4 fibmatch on down device [ OK ] # 9.94 [+0.09] TEST: IPv6 fibmatch on down device [ OK ] # 10.02 [+0.08] TEST: IPv4 fibmatch on up device [ OK ] # 10.11 [+0.09] TEST: IPv6 fibmatch on up device [ OK ] # 10.21 [+0.10] TEST: IPv4 flags on down device [ OK ] # 10.31 [+0.10] TEST: IPv6 flags on down device [ OK ] # 10.40 [+0.09] TEST: IPv4 flags on up device [ OK ] # 10.49 [+0.08] TEST: IPv6 flags on up device [ OK ] # 10.57 [+0.08] Both devices down # 10.65 [+0.08] TEST: IPv4 fibmatch [ OK ] # 10.73 [+0.08] TEST: IPv6 fibmatch [ OK ] # 11.29 [+0.56] # 11.29 [+0.00] Local carrier tests - single path # 12.47 [+1.19] Start point # 12.57 [+0.09] TEST: IPv4 fibmatch [ OK ] # 12.65 [+0.08] TEST: IPv6 fibmatch [ OK ] # 12.74 [+0.09] TEST: IPv4 - no linkdown flag [ OK ] # 12.81 [+0.07] TEST: IPv6 - no linkdown flag [ OK ] # 13.94 [+1.13] Carrier off on nexthop # 14.03 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.12 [+0.09] TEST: IPv6 fibmatch [ OK ] # 14.20 [+0.08] TEST: IPv4 - linkdown flag set [ OK ] # 14.28 [+0.08] TEST: IPv6 - linkdown flag set [ OK ] # 14.43 [+0.16] Route to local address with carrier down # 14.52 [+0.09] TEST: IPv4 fibmatch [ OK ] # 14.59 [+0.07] TEST: IPv6 fibmatch [ OK ] # 14.69 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 14.79 [+0.10] TEST: IPv6 linkdown flag set [ OK ] # 15.28 [+0.49] # 15.28 [+0.00] Single path route carrier test # 16.56 [+1.28] Start point # 16.64 [+0.08] TEST: IPv4 fibmatch [ OK ] # 16.72 [+0.08] TEST: IPv6 fibmatch [ OK ] # 16.79 [+0.07] TEST: IPv4 no linkdown flag [ OK ] # 16.88 [+0.09] TEST: IPv6 no linkdown flag [ OK ] # 18.01 [+1.13] Carrier down # 18.09 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.17 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.26 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.35 [+0.08] TEST: IPv6 linkdown flag set [ OK ] # 18.50 [+0.16] Second address added with carrier down # 18.58 [+0.08] TEST: IPv4 fibmatch [ OK ] # 18.66 [+0.08] TEST: IPv6 fibmatch [ OK ] # 18.75 [+0.09] TEST: IPv4 linkdown flag set [ OK ] # 18.82 [+0.07] TEST: IPv6 linkdown flag set [ OK ] # 22.99 [+4.16] # 22.99 [+0.00] IPv4 nexthop tests # 22.99 [+0.00] <<< write me >>> # 23.22 [+0.23] # 23.22 [+0.00] IPv6 nexthop tests # 23.30 [+0.08] TEST: Directly connected nexthop, unicast address [ OK ] # 23.41 [+0.10] TEST: Directly connected nexthop, unicast address with device [ OK ] # 23.50 [+0.09] TEST: Gateway is linklocal address [ OK ] # 23.59 [+0.09] TEST: Gateway is linklocal address, no device [ OK ] # 23.68 [+0.09] TEST: Gateway can not be local unicast address [ OK ] # 23.77 [+0.09] TEST: Gateway can not be local unicast address, with device [ OK ] # 23.87 [+0.10] TEST: Gateway can not be a local linklocal address [ OK ] # 23.96 [+0.10] TEST: Gateway can be local address in a VRF [ OK ] # 24.06 [+0.09] TEST: Gateway can be local address in a VRF, with device [ OK ] # 24.16 [+0.10] TEST: Gateway can be local linklocal address in a VRF [ OK ] # 24.25 [+0.09] TEST: Redirect to VRF lookup [ OK ] # 24.34 [+0.09] TEST: VRF route, gateway can be local address in default VRF [ OK ] # 24.43 [+0.09] TEST: VRF route, gateway can not be a local address [ OK ] # 24.53 [+0.10] TEST: VRF route, gateway can not be a local addr with device [ OK ] # 25.56 [+1.03] # 25.56 [+0.00] FIB rule with suppress_prefixlength # 27.30 [+1.74] TEST: FIB rule suppress test [ OK ] # 28.86 [+1.56] # 28.86 [+0.00] Fib6 info length calculation in route notify test # 32.80 [+3.94] TEST: ipv6 route add notify [ OK ] # 34.37 [+1.57] # 34.37 [+0.00] Fib4 info length calculation in route notify test # 38.28 [+3.90] TEST: ipv4 route add notify [ OK ] # 42.50 [+4.22] # 42.50 [+0.00] IPv6 route add / append tests # 42.84 [+0.34] TEST: Attempt to add duplicate route - gw [ OK ] # 43.18 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 43.53 [+0.35] TEST: Attempt to add duplicate route - reject route [ OK ] # 44.04 [+0.51] TEST: Append nexthop to existing route - gw [ OK ] # 44.41 [+0.37] TEST: Add multipath route [ OK ] # 44.77 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 45.23 [+0.46] TEST: Route add with different metrics [ OK ] # 45.45 [+0.22] TEST: Route delete with metric [ OK ] # 45.45 [+0.00] # 45.45 [+0.00] IPv6 route replace tests # 45.89 [+0.44] TEST: Single path with single path [ OK ] # 46.40 [+0.50] TEST: Single path with multipath [ OK ] # 46.86 [+0.46] TEST: Single path with single path via multipath attribute [ OK ] # 47.38 [+0.52] TEST: Invalid nexthop [ OK ] # 47.77 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 48.27 [+0.51] TEST: Multipath with multipath [ OK ] # 48.80 [+0.53] TEST: Multipath with single path [ OK ] # 49.27 [+0.47] TEST: Multipath with single path via multipath attribute [ OK ] # 49.73 [+0.46] TEST: Multipath with dev-only [ OK ] # 50.21 [+0.48] TEST: Multipath - invalid first nexthop [ OK ] # 50.75 [+0.54] TEST: Multipath - invalid second nexthop [ OK ] # 51.14 [+0.39] TEST: Multipath - replace of non-existent route [ OK ] # 51.14 [+0.00] # 51.14 [+0.00] IPv6 route with dsfield tests # 51.31 [+0.18] TEST: Reject route with dsfield [ OK ] # 57.90 [+6.59] # 57.90 [+0.00] IPv4 route add / append tests # 58.29 [+0.38] TEST: Attempt to add duplicate route - gw [ OK ] # 58.64 [+0.35] TEST: Attempt to add duplicate route - dev only [ OK ] # 58.99 [+0.36] TEST: Attempt to add duplicate route - reject route [ OK ] # 59.44 [+0.45] TEST: Add new nexthop for existing prefix [ OK ] # 59.94 [+0.49] TEST: Append nexthop to existing route - gw [ OK ] # 60.41 [+0.47] TEST: Append nexthop to existing route - dev only [ OK ] # 60.84 [+0.44] TEST: Append nexthop to existing route - reject route [ OK ] # 61.23 [+0.39] TEST: Append nexthop to existing reject route - gw [ OK ] # 61.62 [+0.38] TEST: Append nexthop to existing reject route - dev only [ OK ] # 61.99 [+0.38] TEST: add multipath route [ OK ] # 62.35 [+0.36] TEST: Attempt to add duplicate multipath route [ OK ] # 62.78 [+0.43] TEST: Route add with different metrics [ OK ] # 62.96 [+0.18] TEST: Route delete with metric [ OK ] # 62.97 [+0.00] # 62.97 [+0.00] IPv4 route replace tests # 63.40 [+0.44] TEST: Single path with single path [ OK ] # 63.85 [+0.44] TEST: Single path with multipath [ OK ] # 64.29 [+0.45] TEST: Single path with reject route [ OK ] # 64.72 [+0.43] TEST: Single path with single path via multipath attribute [ OK ] # 65.18 [+0.45] TEST: Invalid nexthop [ OK ] # 65.56 [+0.39] TEST: Single path - replace of non-existent route [ OK ] # 66.00 [+0.44] TEST: Multipath with multipath [ OK ] # 66.44 [+0.44] TEST: Multipath with single path [ OK ] # 66.89 [+0.45] TEST: Multipath with single path via multipath attribute [ OK ] # 67.32 [+0.44] TEST: Multipath with reject route [ OK ] # 67.78 [+0.45] TEST: Multipath - invalid first nexthop [ OK ] # 68.29 [+0.52] TEST: Multipath - invalid second nexthop [ OK ] # 68.63 [+0.34] TEST: Multipath - replace of non-existent route [ OK ] # 70.09 [+1.46] TEST: Cached route removed from VRF port device [ OK ] # 70.09 [+0.00] # 70.09 [+0.00] IPv4 route with dsfield tests # 70.30 [+0.20] TEST: Reject route with dsfield 0x01 [ OK ] # 70.39 [+0.09] TEST: Reject route with dsfield 0x02 [ OK ] # 70.48 [+0.09] TEST: Reject route with dsfield 0x03 [ OK ] # 70.77 [+0.29] TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # 70.85 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # 70.92 [+0.08] TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # 71.01 [+0.09] TEST: IPv4 route with DSCP and ECN:CE [ OK ] # 71.11 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # 71.21 [+0.10] TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # 71.29 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # 71.37 [+0.08] TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # 71.46 [+0.09] TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # 71.54 [+0.08] TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # 71.65 [+0.10] TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # 71.75 [+0.10] TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # 73.46 [+1.71] # 73.46 [+0.00] IPv6 prefix route tests # 75.31 [+1.85] TEST: Default metric [ OK ] # 75.60 [+0.29] TEST: User specified metric on first device [ OK ] # 75.90 [+0.30] TEST: User specified metric on second device [ OK ] # 76.07 [+0.18] TEST: Delete of address on first device [ OK ] # 76.28 [+0.21] TEST: Modify metric of address [ OK ] # 76.56 [+0.28] TEST: Prefix route removed on link down [ OK ] # 76.76 [+0.19] TEST: Prefix route with metric on link up [ OK ] # 77.03 [+0.27] TEST: Set metric with peer route on local side [ OK ] # 77.13 [+0.10] TEST: Set metric with peer route on peer side [ OK ] # 77.32 [+0.19] TEST: Modify metric and peer address on local side [ OK ] # 77.41 [+0.09] TEST: Modify metric and peer address on peer side [ OK ] # 78.39 [+0.98] # 78.39 [+0.00] IPv4 prefix route tests # 80.19 [+1.80] TEST: Default metric [ OK ] # 80.46 [+0.27] TEST: User specified metric on first device [ OK ] # 80.74 [+0.27] TEST: User specified metric on second device [ OK ] # 80.91 [+0.17] TEST: Delete of address on first device [ OK ] # 81.09 [+0.17] TEST: Modify metric of address [ OK ] # 81.27 [+0.18] TEST: Prefix route removed on link down [ OK ] # 81.47 [+0.20] TEST: Prefix route with metric on link up [ OK ] # 81.83 [+0.36] TEST: Modify metric of .0/24 address [ OK ] # 82.10 [+0.27] TEST: Set metric of address with peer route [ OK ] # 82.27 [+0.18] TEST: Modify metric and peer address for peer route [ OK ] # 83.22 [+0.95] # 83.22 [+0.00] IPv6 routes with metrics # 87.67 [+4.45] TEST: Single path route with mtu metric [ OK ] # 87.95 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # 88.23 [+0.28] TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # 88.42 [+0.19] TEST: MTU of second leg [ OK ] # 88.61 [+0.18] TEST: Multipath route with mtu metric [ OK ] # 88.82 [+0.22] TEST: Using route with mtu metric [ OK ] # 88.98 [+0.16] TEST: Invalid metric (fails metric_convert) [ OK ] # 90.64 [+1.66] # 90.64 [+0.00] IPv4 route add / append tests # 94.98 [+4.34] TEST: Single path route with mtu metric [ OK ] # 95.17 [+0.19] TEST: Multipath route with mtu metric [ OK ] # 95.38 [+0.21] TEST: Using route with mtu metric [ OK ] # 95.55 [+0.17] TEST: Invalid metric (fails metric_convert) [ OK ] # 97.28 [+1.72] # 97.28 [+0.00] IPv4 route with IPv6 gateway tests # 103.59 [+6.31] TEST: Single path route with IPv6 gateway [ OK ] # 103.81 [+0.22] TEST: Single path route with IPv6 gateway - ping [ OK ] # 103.89 [+0.08] TEST: Single path route delete [ OK ] # 104.07 [+0.18] TEST: Multipath route add - v6 nexthop then v4 [ OK ] # 104.26 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 104.35 [+0.09] TEST: Multipath route delete exact match [ OK ] # 104.43 [+0.08] TEST: Multipath route add - v4 nexthop then v6 [ OK ] # 104.63 [+0.19] TEST: Multipath route delete - nexthops in wrong order [ OK ] # 104.71 [+0.09] TEST: Multipath route delete exact match [ OK ] # 106.40 [+1.69] # 106.40 [+0.00] IPv4 rp_filter tests # 112.16 [+5.76] TEST: rp_filter passes local packets [ OK ] # 112.31 [+0.15] TEST: rp_filter passes loopback packets [ OK ] # 113.05 [+0.74] # 113.05 [+0.00] IPv4 delete address route tests # 115.71 [+2.66] Regular FIB info # 115.87 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 115.94 [+0.07] TEST: Route in default VRF not removed [ OK ] # 116.28 [+0.34] TEST: Route removed in default VRF when source address deleted [ OK ] # 116.36 [+0.09] TEST: Route in VRF is not removed by address delete [ OK ] # 116.37 [+0.00] Identical FIB info with different table ID # 116.52 [+0.15] TEST: Route removed from VRF when source address deleted [ OK ] # 116.60 [+0.08] TEST: Route in default VRF not removed [ OK ] # 116.92 [+0.32] TEST: Route removed in default VRF when source address deleted [ OK ] # 117.00 [+0.07] TEST: Route in VRF is not removed by address delete [ OK ] # 117.00 [+0.00] Table ID 0 # 117.16 [+0.16] TEST: Route removed in default VRF when source address deleted [ OK ] # 118.07 [+0.91] # 118.07 [+0.00] IPv6 delete address route tests # 122.62 [+4.55] Single device using src address # 122.77 [+0.15] TEST: Prefsrc removed when src address removed on other device [ OK ] # 122.78 [+0.00] Two devices with the same source address # 122.95 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 123.09 [+0.14] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 123.10 [+0.00] VRF with single device using src address # 123.26 [+0.17] TEST: Prefsrc removed when src address removed on other device [ OK ] # 123.26 [+0.00] VRF with two devices using src address # 123.43 [+0.17] TEST: Prefsrc not removed when src address exist on other device [ OK ] # 123.58 [+0.15] TEST: Prefsrc removed when src address removed on all devices [ OK ] # 123.58 [+0.00] src address and nexthop dev in same VRF # 123.74 [+0.16] TEST: Prefsrc removed from VRF when source address deleted [ OK ] # 123.82 [+0.08] TEST: Prefsrc in default VRF not removed [ OK ] # 124.13 [+0.31] TEST: Prefsrc not removed from VRF when source address exist [ OK ] # 124.22 [+0.09] TEST: Prefsrc in default VRF removed [ OK ] # 124.22 [+0.00] src address and nexthop device in different VRF # 124.37 [+0.15] TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # 124.45 [+0.08] TEST: Prefsrc not removed in default VRF [ OK ] # 124.70 [+0.25] TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # 124.80 [+0.10] TEST: Prefsrc removed in default VRF [ OK ] # 124.81 [+0.00] Table ID 0 # 124.98 [+0.17] TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # 124.98 [+0.00] Link local source route # 125.14 [+0.16] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 125.31 [+0.16] TEST: Prefsrc removed when delete ll addr [ OK ] # 125.40 [+0.09] TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # 125.66 [+0.26] TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # 127.12 [+1.46] # 127.12 [+0.00] IPv4 mangling tests # 134.52 [+7.40] TEST: Connection with correct parameters [ OK ] # 134.69 [+0.18] TEST: Connection with incorrect parameters [ OK ] # 135.62 [+0.93] TEST: Connection with correct parameters - mangling [ OK ] # 136.46 [+0.84] TEST: Connection with correct parameters - no mangling [ OK ] # 136.53 [+0.07] TEST: Connection check - server side [ OK ] # 138.50 [+1.97] # 138.50 [+0.00] IPv6 mangling tests # 145.87 [+7.37] TEST: Connection with correct parameters [ OK ] # 146.07 [+0.19] TEST: Connection with incorrect parameters [ OK ] # 146.92 [+0.85] TEST: Connection with correct parameters - mangling [ OK ] # 147.77 [+0.85] TEST: Connection with correct parameters - no mangling [ OK ] # 147.85 [+0.07] TEST: Connection check - server side [ OK ] # 149.84 [+1.99] # 149.84 [+0.00] IPv4 broadcast neighbour tests # 152.01 [+2.17] TEST: Resolved neighbour for broadcast address [ OK ] # 152.10 [+0.10] TEST: Resolved neighbour for network broadcast address [ OK ] # 152.19 [+0.09] TEST: Unresolved neighbour for broadcast address [ OK ] # 152.27 [+0.08] TEST: Unresolved neighbour for network broadcast address [ OK ] # 154.07 [+1.80] # 154.07 [+0.00] Fib6 garbage collection test # 167.24 [+13.16] TEST: ipv6 route garbage collection [ OK ] # 180.65 [+13.41] TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # 194.05 [+13.39] TEST: ipv6 route garbage collection (replace with expires) [ OK ] # 207.56 [+13.52] TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # 221.80 [+14.24] TEST: ipv6 route garbage collection (RA message) [ OK ] # 222.52 [+0.72] # 222.52 [+0.00] IPv4 multipath list receive tests # 238.92 [+16.40] TEST: Multipath route hit ratio (1.00) [ OK ] # 240.62 [+1.70] # 240.62 [+0.00] IPv6 multipath list receive tests # 256.90 [+16.28] TEST: Multipath route hit ratio (1.00) [ OK ] # 258.74 [+1.84] # 258.74 [+0.00] Tests passed: 229 # 258.74 [+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__->